• Hi, when commenting and attaching an image an iPhone the image rotates on to it’s side if it has been taken vertically. I have searched/tried numerous plugins to fix this issue – apparently it is something to do with the EXIF data?

    Is there anyway this can be fixed, as many people will be using this plugin from their mobiles…

    Many thanks.

    https://www.ads-software.com/plugins/comment-image/

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Stefano Lissa

    (@satollo)

    Usually correction is made by external tools like imagemagik (I do it on some servers). I’ll should find a PHP library to rotate images using the orientation inside the exif data.

    Thread Starter charlton_68

    (@charlton_68)

    Your post doesn’t quite make sense? What do I need to do to fix the problem?

    Many thanks.

    Plugin Author Stefano Lissa

    (@satollo)

    Actually nothing, only server side the image can be corrected, so the serve must have the right tools or libraries. And the plugin does not have such libraries, while the server usually even with the correct packages installed doesn’t allow the execution of commands.

    Have you a personal server or your blog is in a shared hosting?

    Thread Starter charlton_68

    (@charlton_68)

    Unfortunately I’m only on shared hosting. Would I need to contact my server admin? And what would I request if so?

    Many thanks.

    Hi Stefano,
    thank you for writing the plugin and sharing it. I wrote a few plugins and know the pains and joys.

    Hi @charlton_68,
    have you found a solution yet? The hosting server should have a php function such as exif_read_data so that a plugin can retrieve the orientation of a photo taken from iPhone, and use a library such as GD to rotate it if necessary. these modules need to be included on the server. some hosting server may not enable exif module when compiling PHP. If this feature is important to you, you may need to look for a hosting server that enables exif and GD.

    Plugin Author Stefano Lissa

    (@satollo)

    Actually I have no resources to start experimenting with php and exif data and image rotation. If you find someone which has a piece of working code I can try to add it to the plugin.

    Thread Starter charlton_68

    (@charlton_68)

    Hi @visualdata,

    After contacting my hosting they confirmed that “both exif and gd modules are installed and active on the server”.

    The rotation issue is still a problem ??

    Plugin Author Stefano Lissa

    (@satollo)

    The plugin has not the ability to rotate images. That modules could be useful to build such a library.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Attaching images from iPhone’ is closed to new replies.