Support » Plugin: Imsanity » Image Rotation on Upload

Viewing 10 replies - 1 through 10 (of 10 total)
  • i have the same problem.
    first i use the “Resize images before upload” plugin, it was ok, but the picture-resizing was in very bad quality without anti alasing. today i test this plugin, this works more nice, but if i head an upright-picture, the tool turns it into the wrong position (about 90 degrees).

    that means i can’t use this plugin too. is that a bug?

    I can confirm this. I’m seeing the same issue when using the bulk resize option. The pictures are getting rotated 90 degrees counterclockwise. It does seem to be related to pictures that have been taken in portrait aspect (height greater than width), rather than landscape

    mrjarbenne

    (@mrjarbenne)

    Can I give this a gentle bump?

    same problem.

    Plugin Contributor Jason

    (@verysimple)

    hmm any chance the EXIF data on the photos is off (like cameraphone didn’t register orientation correctly) ?

    This is really odd, I have never seen it before. If somebody want’s to upload an image that is problematic, I can try it on my system and see if I get the same results.

    Plugin Contributor Jason

    (@verysimple)

    Imsanity doesn’t have any code that rotates images, but it does rely on either GD (default) or ImageMagick to do the actual image manipulation. Those libraries may be trying to “fix” the image by rotating it because of something that is in the EXIF data in the photo.

    Do any of you have WordPress configured to use ImageMagick instead of GD? I read some versions of ImageMagick do not handle photo orientation correctly.

    There’s a little more info here: http://stackoverflow.com/questions/5301006/image-getting-rotated-automatically-on-upload

    If somebody can send me an image that is getting rotated I can try to see if I can reproduce it and see whether there is any way to deal with it.

    sure. for example:
    http://we.tl/LognyOtv9w

    the bad thing is, if i rotate in wordpress, then the picture is to small in width. and it works not until three times….

    i dont use imagemagick.

    Plugin Contributor Jason

    (@verysimple)

    I got the same thing. Would you mind trying out this patch for a bit and see if it works for you?

    This file should go in wp-content/plugins/imsanity/libs

    https://gist.github.com/jasonhinkle/e4b6fe911f0e039764de

    I know this solves the issue with the example image that you sent me, but I’m not sure it might cause problems with other images. So if some other people can test out a variety of images that would be a huge help. Thanks!

    I’ve tested this on a few different sites and it seems to have fixed the rotation issue on Bulk Resize. I haven’t seen any impact on other images. I resized about 200 images that were a mix of 4000×3000 and 3000×4000 down to 1024×768 and 768×1024.

    I’m not seeing the change on the dashboard in regards to Space Used, once the bulk resize is complete, but that might be a separate issue fit for a different thread. For what it’s worth I’m also running WP 4.0Beta2 which could either infer future readiness, or taint the sample depending on if you are a glass half full or glass half empty kinda person.

    > I’m not seeing the change on the dashboard in regards to Space Used, once the bulk resize is complete, but that might be a separate issue fit for a different thread.

    Yup – addressed and resolved in another thread. I’m sure his next version with incorporate the update.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Image Rotation on Upload’ is closed to new replies.