简体   繁体   English

blueimp jQuery-File-Upload库在调整大小后将GIF图像转换为PNG

[英]blueimp jQuery-File-Upload library convert GIF image to PNG after resizing

I have set options provided by library like below: 我已设置库提供的选项,如下所示:

    disableImageResize: /Android(?!.*Chrome)|Opera/
        .test(window.navigator && navigator.userAgent),
    imageMaxWidth: 1440,
    imageMaxHeight: 1080,
    imageQuality: 0.95,
    imageCrop: false, // Force cropped images
    maxFileSize: 10000000,
    disableExifThumbnail: true,
    disableExifSub: true,
    disableExifGps: true,
    disableImagePreview: true,

Can anyone help to resolve this issue? 任何人都可以帮忙解决这个问题吗?

I want to retain the original image type as it is like if it's a GIF image it should be uploaded as GIF not PNG after resizing. 我希望保留原始图像类型,如果它是GIF图像,它应该在调整大小后上传为GIF而不是PNG。

Set disableImageResize = true; 设置disableImageResize = true; When it's false the plugin read locally the image and create and image/png blob... that is sent to the HTTP request 当它为false时,插件会在本地读取图像并创建和发送到HTTP请求的image / png blob ....

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM