stomita/ios-imagefile-megapixel

Downscaling still fails for some images on iOS6 and iOS7

Closed this issue · 5 comments

It seems the downscaling is still incorrect for some images.

The subsampling and vertical squash is detected, but now the image is incorrectly horizontally downscaled by a factor of two.

http://jsfiddle.net/TmxQ8/3/embedded/result/

+1

@stomita Usually I have no problems with this lib but the example from @ziriax shows a problem.

Here is what it looks like on my iPhone 5 ios 7.1:

foto

@confile I understand the problem and confirmed it happens on my env too. However, I might not have so much time to debug and detect the cause of the problem. If you guys find the cause and hopefully get a patch, please send me the pull request.

@ziriax Did you make any progress on this problem?

z-vr commented

It is fixed with this @tinganho 's commit which deals with 0.25 subsampling.
#30
You can check here:
http://jsfiddle.net/TmxQ8/5/embedded/result/