Alpha Video Training
Results 1 to 3 of 3

Thread: Uploaded images rotated

  1. #1
    Member
    Real Name
    Andrew Sullivan
    Join Date
    Sep 2008
    Location
    Guelph, ON
    Posts
    28

    Default Uploaded images rotated

    Hi All,

    I haven't experienced this before - I've uploaded plenty of images over the years and have other UX's operating on the same server working as expected. I recently created a new UX with an image upload. It automatically rotates any images which are natively portrait orientation but doesn't do it to landscape images. Any ideas?

    Thanks.

    Sully

  2. #2
    Member
    Real Name
    Sean OKelly
    Join Date
    Sep 2015
    Location
    Charleston, WV
    Posts
    205

    Default Re: Uploaded images rotated

    Hi Sully. What method are you using to upload images? Are you storing in Alpha, IIS, S3 or something else?

  3. #3
    "Certified" Alphaholic NoeticCC's Avatar
    Real Name
    Andrea Gill
    Join Date
    Nov 2007
    Location
    Golcar, West Yorkshire, UK
    Posts
    2,069

    Default Re: Uploaded images rotated

    Hi,

    Think this has something to do with EXIF information on rotation for portrait photos taken on some devices not being recognised, it goes away when you resize them to 100%

    Initial workaround was open them in an editing program, resizing by 1% then saving again - but to automate it the below worked for me (except for where photos were genuinely taken sideways like of paper documents lying on a table)

    a5_runImageMagicCommand(newpath,newpath,"-auto-orient -resize 100%")

    This took care of the issue for images that are copied in the background by a runtime app, in both reports and the image gallery on the Alpha server.

    This page has been useful to see what is going on, the offending photos taken on certain Samsung tablets were rotated 90 Degrees but the embedded images were sideways, devices without this problem had the rotation information BUT the embedded image was portrait.

    http://exif.regex.info/exif.cgi
    Last edited by NoeticCC; 12-13-2017 at 03:59 AM.

Similar Threads

  1. iPhone Image Capture is rotated 90 degrees
    By gkpurcey in forum Mobile & Browser Applications
    Replies: 0
    Last Post: 10-24-2015, 12:28 AM
  2. Internal Images ($$file) and HTML editor images not showing up
    By -Jinx- in forum Application Server Version 11 - Web/Browser Applications
    Replies: 21
    Last Post: 02-18-2014, 06:01 PM
  3. Printing uploaded images in a report
    By doula in forum Application Server Version 10 - Web/Browser Applications
    Replies: 0
    Last Post: 12-02-2011, 05:49 AM
  4. vertical/rotated column headers
    By christappan in forum Application Server Version 10 - Web/Browser Applications
    Replies: 2
    Last Post: 09-27-2010, 10:11 AM
  5. Letter layout, problem with rotated text
    By Lance Gurd in forum Alpha Five Version 7
    Replies: 4
    Last Post: 07-14-2006, 11:42 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •