Hoppa till huvudinnehållet

Rotating an image in HTML tag

Kommentarer

2 kommentarer

  • Permanently deleted user
    Hi Andrew,

     

    If you open the image with a basic application like MS Paint, is the orientation OK?

     

    The meta data stored with the image may be telling applications to rotate it and the few applications that support this may be causing the inconsistent results.

     

    CSS has an image orientation tag called  image-orientation but if all browsers don't support the tag it will not help you.

     

    The Image meta data is called EXIF and you can view it using a tool such as http://exifdata.com/ to see what it is set to and compare two images that behave differently.

     

    Regards,

     

    Wayne Richard

     

    Latitude Geographics Group Ltd.

     

    Head Office: 300 – 1117 Wharf Street  Victoria, BC Canada V8W 1T7

     

    Tel: (250) 381-8130 | Fax: (250) 381-8132 | wrichard@latitudegeo.com 

     

    Developers of Geocortex web-based mapping software | www.geocortex.com

     

    An Esri Platinum Business Partner

     

     
    0
  • Andrew Vitale
    Hi Wayne,

     

    Thanks for the response.  

     

    I dont have access to the raw images as they are onjects in an ESRI attachement class / attachment table.  So modifying the raw images is not possible. 

     

    However, when I did some testing there does seem to be an orientation automatically set my the device used to capture the raw image (in this case a phone or a tablet).  I had to use some rotation HTML tags to get the photo to show up ocrrectly.  The only wrinkle is that these HTML tags are browser specific.  In our case, I have been recommending Chrome for my users.  This wrinkle will now stress that preference as the HTML tag for IE is different than the one for Chrome - and the two tags cannot be used at the same time without two seperate copies of the image come up (one would be "correct" for that browser, the other one will not).  

     

    This is a bit disappointing for my users and limiting for myself as the Essentials Manager.  Would you happen to be aware of any HTML tag that can be used to rotate an image that is not browser specific?  Just curious...

     

    Andrew
    0

Du måste logga in om du vill lämna en kommentar.