Topic: Plupload not autorotating

Hi all!

I'm kinda at my wits end here, the docs claim that plupload will autorotate my images if there's orientation data in the exif metadata, but it's just not happening. Any pointers? here's my code:

        
var uploader = new plupload.Uploader({
            runtimes : 'html5,flash,html4',
            flash_swf_url: 'https://rawgithub.com/moxiecode/moxie/master/bin/flash/Moxie.cdn.swf',
            drop_element : 'plupload-target',
            browse_button : 'plupload-target',
            url : "/file/post",
            autostart: true,
            filters: [
                {title: 'Images', extensions: 'jpg,jpeg,png'}
            ],
            resize: {
                height: 800,
                preserve_headers: false
            }
        });

Any help would be greatly appreciated!

Re: Plupload not autorotating

Could you please share problematic image?

If you want to see your issue fixed, do not report it here, do it on - GitHub.

Re: Plupload not autorotating

For sure!

https://s21.postimg.org/ip8l2ccfn/image.jpg

Thanks smile

Re: Plupload not autorotating

Hey there,

Does anyone have any ideas on where I could look for answers, or any suggestions on where to start debugging? I just can't seem to get to the bottom of this one...

Best,
Theo

Re: Plupload not autorotating

Did you ever fix this problem, i'm in the same boat?
Something to do with the exif orientation field not being taken into account when the image is converted and uploaded?
It says if you set the "preserve_headers: false" it should automatically rotate based on the files rotation field in the exif, but it doesn't seem to make any difference if i set it to true or false!

Re: Plupload not autorotating

@void-- Orientation tag in that image has value of 1, which mean it doesn't require any manipulation.

@a.york this might be the reason in your case as well.

If you want to see your issue fixed, do not report it here, do it on - GitHub.

Re: Plupload not autorotating

Here's the basic script that dumps Exif data present in the image: http://play.plupload.com/g6-J_.

If you want to see your issue fixed, do not report it here, do it on - GitHub.

Re: Plupload not autorotating

@davit the original photo has an orientation value of 6, it must have gotten altered on upload. Here's a screen shot of the results of running it through your script:

https://s21.postimg.org/4gnb2laxz/Screen_Shot_2016_10_30_at_1_59_29_AM.png

Re: Plupload not autorotating

Can you zip it and share via file sharing service of some kind?

If you want to see your issue fixed, do not report it here, do it on - GitHub.

10 (edited by void-- 2016-10-30 19:38:20)

Re: Plupload not autorotating

For sure:

https://www.dropbox.com/s/r21lit98lqxzh … g.zip?dl=0

Re: Plupload not autorotating

Welp, it started working for some reason. Haven't touched the plupload code, no idea why. But here's proof I'm not full of it:

https://s16.postimg.org/6zyo7ynrp/Screen_Shot_2016_10_30_at_12_17_54_PM.png

@davit thanks for the help!

sorry to anyone w/ similar problems... I guess just wait long enough and it'll start working?

Re: Plupload not autorotating

Cute cat there smile

If you want to see your issue fixed, do not report it here, do it on - GitHub.

Re: Plupload not autorotating

same here, I am having the same problem, hope you can help me too. thank you

บาคาร่า