Hacker News new | ask | show | jobs
by heyrhett 4864 days ago
on iOS 6, iphone, I get a bug where it only shows me a fraction of the image I'm uploading in the preview.

Does anyone know why this is? I had the same issue with jQuery-File-Upload.

2 comments

I assume you mean the black bar problem? It's a bug in iOS when you try to resize images client size. There's no workaround (besides disabling client-side image processing for iOS) AFAIK.
I've heard that https://github.com/stomita/ios-imagefile-megapixel works around the issue. I haven't had a chance to try it personally, yet.
Are you talking about this issue? https://direct.ilovefreegle.org/uploads/p17935j7131t5l2ql87a...

If so, great to know that there's a fix!

Yes that's the bug in question. There isn't really a fix for it, but a very very ugly workaround. Look at ios-imagefile-megapixel to see how they fixed it if you want. Or you can wait a few days for my implementation will be better documented.
Hi, I'm the author of Dropzone. iOS has a bug (as already mentioned by other users) resizing images in canvas. There are workarounds, and I already started implementation (https://github.com/enyo/dropzone/commits/ios-squas). Unfortunately ios-imagefile-megapixel doesn't meet my coding standards so I didn't want to just take the code of their implementation. I will release my fix soon.