How to make an input file loads the original image file instead of forcibly converting to jpeg on iOS

When you try to download an image file stored on an iPhone running iOS 7 in Safari, regardless of the format of the original image, the selected image files are always converted to JPEG.

<input type="file" accept="image/*"> 

I tried to be more specific with an accept attribute like image/png with this fiddle , but no luck.

Are there any known solutions, hacks, or workarounds to save the original image file at boot time?

+8
html ios mobile-safari image-uploading
source share
1 answer

You can not. Mobile Safari for iOS is very limited when it comes to downloads. Your image will always be converted to JPEG with lower quality than the original image.

"Solutions":

The transition to the native language is obvious (which probably surpasses the goal of this question, but I thought I would drop it anyway.)

A more β€œsmart” solution is to ask the user to give you a link to the original image (for example, dropbox) or something like that. However, this is actually not a solution, but, as I said, there are currently no good solutions to this problem.

+5
source share

All Articles