ngImgCrop icon indicating copy to clipboard operation
ngImgCrop copied to clipboard

not working for mobile device or IOS

Open ankesh-m opened this issue 8 years ago • 9 comments

When i am using the plugin it is working fine in desktop but when i am using the same in mobile device or ios then it will not work

ankesh-m avatar Dec 21 '15 13:12 ankesh-m

hi @alexk111 any idea about this issue?

ankesh-m avatar Dec 22 '15 10:12 ankesh-m

Its working in my project. At least on chrome in android.

ketansp avatar Jan 04 '16 16:01 ketansp

Hi ketansp did you try and see if it works on any of your samsung devices? Im having issues with a few weeks now.

outlawbruce avatar Jan 09 '16 14:01 outlawbruce

Hi outlawbruce,

I have tested it on a variety of Android devices. Works well with all of them. I will arrange to test this on a Samsung device and confirm the same.

Regards,

Ketan Patil. -- sent from a mobile device On Jan 9, 2016 8:17 PM, "outlawbruce" [email protected] wrote:

Hi ketansp did you try and see if it works on any of your samsung devices? Im having issues with a few weeks now.

— Reply to this email directly or view it on GitHub https://github.com/alexk111/ngImgCrop/issues/117#issuecomment-170244490.

ketansp avatar Jan 09 '16 18:01 ketansp

Hi @ankesh-m (and all),

I noticed something today that I think relates to this thread. It's not really iOS per-se, but photos created by iOS perhaps? Anyways, result-image-format defaults to image/png, I believe. When I use it like that then photos taken on my iPhone don't appear when I select them. But when I change result-image-format to image/jpeg then things work as expected.

Another thing to note is that the main public demo jsfiddle suffers from this issue, whether you use Safari or Chrome on an iPhone. If I go to jsfiddle.net/alexk111/rw6q9/ on my iPhone I do not see my images in the preview or crop divs after selecting them.

I don't have my code running somewhere where I can quickly point my iPhone to it when running locally off my laptop. I'll write another note on this thread when I have more info. But for now it seems like there's something weird with iPhone

-Brian Eriksen

eriksendc avatar Jan 24 '16 13:01 eriksendc

I can provide some more feedback on this - I'm trying to use this plugin for a project, and after doing some testing on my iphone I found that the plugin broke if the images I uploaded were taken in a certain orientation (meaning my phone was rotated a certain way).

iOS stores orientation in what's called EXIF data, and if the orientation is anything but the standard (landscape with the charge plug on the left), then it breaks the plugin. Can anyone corroborate this?

jgoslow avatar Feb 06 '16 15:02 jgoslow

@jgoslow Yes! Android tablet, Android phone, Macbook Pro, and Win10 laptop all fine. However, when I select a photo that has been taken with an iPhone (5 and 6s) either via file selector or taking the photo directly, it doesn't load. I've had limited success with taking a landscape photo but it really needs to be perfect landscape orientation. It does work with photos transferred to the phone.

dazulu avatar Feb 27 '16 16:02 dazulu

There's another comment thread that answers this problem @dazulu here, and if you want to just get the gist file, that is here.

jgoslow avatar Feb 27 '16 17:02 jgoslow

Thanks for this!

dazulu avatar Feb 27 '16 23:02 dazulu