WordPress.org

Ready to get started?Download WordPress

Forums

Eazyest Gallery
[resolved] Orient images based on exif (14 posts)

  1. certainmagic
    Member
    Posted 1 year ago #

    My upload directory contains images taken by iphones and HTTP posted to the site. The pixels in the images are always stored as if the camera was in a landscape orientation; code looking at them is expected to rotate the images based on the EXIF "orientation" field to display them properly.

    Here's an example folder with pictures I took on my iphone. one in each orientation. in all cases, the world appeared right-side-up when i took the picture and it appears right-side-up when i view the image on my phone or mac. i've named the images based on what "exiftool -Orientation img.jpg" says:

    http://duelight.com/scratch/?galleryfolder=orient

    Is there a flag I can set somewhere to enable this rotation for the _cache'd images?
    If not, would it be reasonable for ezg to respect it while generating the cached images or add css to rotate the images appropriately when displaying them? Or should i just make my posting program do the rotation?

    thanks,
    ab

    wordpress: 3.5.1
    eazyest-gallery: Version 0.1.0-RC-14
    gallery folder: forScratch/

    http://wordpress.org/extend/plugins/eazyest-gallery/

  2. certainmagic
    Member
    Posted 1 year ago #

    While it might be a good generic feature to handle rotated images, I've found a simple way to rotate in my upload script, so that I can fix the images before eazygallery sees them.

    i got a copy of jhead -- http://www.sentex.net/~mwandel/jhead/
    and i run it like so:

    jhead -autorot my.jpg

  3. Marcel Brinkkemper
    Member
    Plugin Author

    Posted 1 year ago #

    I can add this to version 0.2.
    Eazyest Gallery uses the WordPress image-editor class to resize images, but I could add parts of the script that re-orients resized images as in Lazyest Gallery.

  4. certainmagic
    Member
    Posted 1 year ago #

    Cool!

    You seem to be very active on this project, which is awesome. :)
    How do you think abut 0.2? I'm not intending to pressure you;
    I'm just curious so I can decide what to do. Is 0.2 next week?
    Next month? 6 months? :)

    thanks,
    ab

  5. Marcel Brinkkemper
    Member
    Plugin Author

    Posted 1 year ago #

    I have one serious bug to fix before 0.1.0-RC becomes 0.1.0 final release.
    After that, I'll start working on 0.2.
    I expect this feature to be in Eazyest Gallery before the end of May.
    Please keep an eye on the development log.

  6. certainmagic
    Member
    Posted 1 year ago #

    Thanks for the guidance, Marcel. :)

    I've subscribed the dev log. :)

    thanks again for making a cool plugin. :)

  7. Marcel Brinkkemper
    Member
    Plugin Author

    Posted 1 year ago #

    Please try development version.

  8. certainmagic
    Member
    Posted 1 year ago #

    Thanks. I saw your checkin this morning and smiled. :)
    I'll have to give it a try.

    btw. I have mostly switched away from wordpress and this plugin in
    favor of a more full-featured forum, since i've realized I really
    need more of a discussion area, not just the cool galleries.

  9. certainmagic
    Member
    Posted 1 year ago #

    Hi Marcel --

    I went to test with the development version and realized I don't know
    where to get it from. I'm new to WordPress and, so far, I've just been
    upgrading as you publish new versions. I looked a several of the about
    pages and home pages for the plugin and I don't see instructions for
    getting the development version. I'm probably just being blind.
    Is it on github or something? Thanks for the pointer.

    ttfn,
    ab

  10. certainmagic
    Member
    Posted 1 year ago #

    Ok. I realized I can see the trac browser for the source code,
    and for this change in particular, so I'm pretty sure the code
    is hosted on wordpress, not github, but i'm still not seeing
    instructions to get the latest code (svn, http, etc...)

    http://plugins.trac.wordpress.org/changeset/695131

    thanks,
    ab

  11. Marcel Brinkkemper
    Member
    Plugin Author

    Posted 1 year ago #

    All downloads for Eazyest Gallery versions on:
    http://wordpress.org/extend/plugins/eazyest-gallery/developers/

  12. certainmagic
    Member
    Posted 1 year ago #

    Hi Marcel --

    I deactivated the old plugin, moved it's directory out of my document root, unzipped the
    "Development Version" from the developer's link, then activated it. in the dashboard, it appears as "Version 0.2.0-alpha-323".

    I also made a new directory with my orientation images and the visited Eazyest Gallery / All Images page on my dashboard. A while later it said it had found four new images.

    Unfortunately, they're not rotated. I'll email you a URL for a tar ball with the example images I'm using.

  13. Marcel Brinkkemper
    Member
    Plugin Author

    Posted 1 year ago #

    Do you have the PHP EXIF extension installed and activated on your server?

  14. certainmagic
    Member
    Posted 1 year ago #

    Nope. I don't have it installed...and I'm on a shared host, so I don't think I have much control over the extensions. Since I'm not using this right now, I think won't try to get my host company to install it (yet).

    Since I can't verify the fix myself, feel free to close this topic when you're happy with it.

    Thanks again for your help.

    ttfn,
    ab

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic