Imagemin-pngquant不会压缩大图像

时间:2016-03-16 05:04:25

标签: image optimization gulp gulp-imagemin

我使用带有gulp的imagemin-pngquant,当我保存大png文件(可能超过500kB)时,它会写[DataContract(Name = "Envelope", Namespace = "http://schemas.xmlsoap.org/soap/envelope/")] public class Envelope { [DataMember(Name = "Body", Order = 0)] public EnvelopeBody Body; } [DataContract(Name = "Body", Namespace = "http://www.opentravel.org/OTA/2003/05/beta")] public class EnvelopeBody { [DataMember(Name = "OTA_HotelResNotifRQ")] public NotifRQ NotifRQ; } [DataContract(Name = "NotifRQ", Namespace = "http://www.opentravel.org/OTA/2003/05/beta")] public class NotifRQ { [DataMember(Name = "Status")] public string Status; [DataMember(Name = "value")] public string value; } [ServiceContract] public interface IPush { [OperationContract] [WebInvoke(Method = "POST", UriTemplate = "Details", RequestFormat = WebMessageFormat.Json, ResponseFormat = WebMessageFormat.Json, BodyStyle = WebMessageBodyStyle.Bare)] Ackn GetBookingDetails(Details obj); [OperationContract] [WebInvoke(Method = "POST", UriTemplate = "Response", RequestFormat = WebMessageFormat.Xml, ResponseFormat = WebMessageFormat.Xml, BodyStyle = WebMessageBodyStyle.Bare)] Response GetResponse(Envelope respxml); } ,图像大小不会改变。所以我必须去tinypng.com并在那里压缩它:( 查看imagemin文档,但无法找到有关文件大小限制的任何内容。

在Windows 8.1上运行

0 个答案:

没有答案