Support » Plugins » get iPhone EXIF and rotate

  • Hi all,

    I’ve been struggling for the past 2 weeks trying to figure out how to do this. I run a community based site for a client where people upload images and the images are then posted to the blog. My client wants the iPhone pics their users upload to automatically be rotated (like facebook does, and other sites)

    I would like to hook into attachment function(?) and rotate. I would like to use something like this without downloading a plugin.

    I’ve tried rtMedia, and unfortunately it does not work at all(wont process or upload any pics, it appears broken), and other plugins that rotate images but nothing seems to work.

    Honestly don’t want a plugin with all the bloat anyway. I just need to hook into attachment_upload and run a script similar to what was linked above. I just don’t understand how. My problem is, not sure which hook to use (which one is before upload? also is there any conflict with wp exif processing?)

    Sorry for the long post Please share your thoughts.. Using wp 3.6.

    TL;DR: how to grab iPhone exif data and fix image orientation? preferably creating a hook in functions.php to do it. dont want bloated plugin, should be just a function, cant find a way to do it, help.

    Thanks,
    Matt

  • The topic ‘get iPhone EXIF and rotate’ is closed to new replies.