WordPress.org

Ready to get started?Download WordPress

Forums

Imsanity
Image Rotation on Upload (11 posts)

  1. UaMV
    Member
    Posted 1 year ago #

    Thank you for a wonderful plugin. Upon my initial testing, i found that when uploading images where height > width, the image is properly resized, but is also rotated 90 degrees counter-clockwise. Is this a known issue? Thanks!

    http://wordpress.org/plugins/imsanity/

  2. derbYstar
    Member
    Posted 10 months ago #

    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?

  3. mrjarbenne
    Member
    Posted 10 months ago #

    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

  4. mrjarbenne
    Member
    Posted 9 months ago #

    Can I give this a gentle bump?

  5. derbYstar
    Member
    Posted 2 months ago #

    same problem.

  6. Jason
    Member
    Plugin Author

    Posted 2 months ago #

    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.

  7. Jason
    Member
    Plugin Author

    Posted 2 months ago #

    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.

  8. derbYstar
    Member
    Posted 2 months ago #

    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.

  9. Jason
    Member
    Plugin Author

    Posted 1 month ago #

    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!

  10. mrjarbenne
    Member
    Posted 1 month ago #

    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 4000x3000 and 3000x4000 down to 1024x768 and 768x1024.

    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.

  11. Jason Lemahieu (MadtownLems)
    Member
    Posted 1 month ago #

    > 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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic