Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Christian Hansen 28 posts 168 karma points
    29 days ago
    Christian Hansen
    0

    Rotated images after upload from iphone

    Hello, i have a problem.

    I have a Umbraco site with members where a member can set a profile image. But when a member sets a image from an Iphone the image on the desktop and Umbraco are rotated. But when showed on iphone it seems fine. But when shown from desktop it is rotated 90 degrees to the left.

    I have read thats it´s because the image´s EXIF information. But have not found a solution. Can someone help with a solution?

  • Søren Mastrup 110 posts 495 karma points c-trib
    29 days ago
    Søren Mastrup
    100

    Hi Christian,

    A simple fix could be to install tooorangey.uSpinMeRightRound.

    The package let’s you rotate the image from the backoffice.

  • Christian Hansen 28 posts 168 karma points
    29 days ago
    Christian Hansen
    0

    Hello Søren,

    Thanks for reply.

    I have tried to install that. But then i get the following error:

    enter image description here

  • Marc Goodson 984 posts 6533 karma points MVP 4x c-trib
    29 days ago
    Marc Goodson
    0

    Hi Christian

    In the configuration for Image Processor /config/imageprocessor/processing.config

    there is a preserveExifMetaData option

    <processing preserveExifMetaData="true" fixGamma="false" interceptAllRequests="false" allowCacheBuster="true">
    

    and a plugin for AutoRotate:

    <plugin name="AutoRotate" type="ImageProcessor.Web.Processors.AutoRotate, ImageProcessor.Web" enabled="true" />
    

    but it depends if it's useful on other images to have the exif data preserved...

    ... so yes, uSpinMeRightRound allows you to rotate the image from the backoffice...

    regards

    Marc

  • Marc Goodson 984 posts 6533 karma points MVP 4x c-trib
    29 days ago
    Marc Goodson
    0

    Do you have the tooorangey.uSpinMeRightRound dll in your bin folder?

  • Christian Hansen 28 posts 168 karma points
    29 days ago
    Christian Hansen
    0

    Hmm nope, its not there.

  • Marc Goodson 984 posts 6533 karma points MVP 4x c-trib
    29 days ago
    Marc Goodson
    0

    Did you install via Nuget or via backoffice?

    The dll is in the git repo:

    https://github.com/marcemarc/uSpinMeRightRound/tree/master/release0.1/nuget/lib

  • Christian Hansen 28 posts 168 karma points
    29 days ago
    Christian Hansen
    0

    I installed via Nuget: install-package tooorangey.uSpinMeRightRound

  • Christian Hansen 28 posts 168 karma points
    29 days ago
    Christian Hansen
    0

    I downloaded the dll from git. Works now, will test with image rotate now. For now thank you very much! :-)

  • Marc Goodson 984 posts 6533 karma points MVP 4x c-trib
    29 days ago
    Marc Goodson
    0

    That's strange!

    if I download the package from Nuget manually, and unzip the nupkg file.. it appears to be there in the /lib folder... but I'm not sure why that hasn't installed for you :-(

    ahh cool you've got rid of the error!

  • Christian Hansen 28 posts 168 karma points
    29 days ago
    Christian Hansen
    0

    It works, after rotate in backend the image shows fine both on mobile and desktop, just a little problem we have to rotate in backend.

    Best scenario would be if it could work instead of the need to rotate. But this i can use for now. Thanks to both of you! :-)

Please Sign in or register to post replies

Write your reply to:

Draft