简体   繁体   中英

MacOS/Safari double extensions when using ImageResizer

We are converting large PNG images to JPEG using ImageResizer ( https://imageresizing.net/ ). It's works great with?format=jpg and they are delivered with the correct content type and all.

When downloading these images they are named image.jpg in all browsers except Safari. Here it asks the user if they want to go with.jpg or with.png. It also saves the images as image.png.jpg which is confusing for some users.

I read something about Content-Disposition header, but I think that's for direct download, not for right click and choosing Save as. I also don't know if it would be possible to add it without creating some kind of middle layer and probably lose performance.

Ideas? Thanks <3

I don't think there is a solution to this, as it is in the browser's control.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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