Skip to main content

Portrait image saved as a landscape image orientation




  • Nadav Soferman

    Certain browsers automatically rotate images based on the camera orientation info. You can set the 'angle' transformation parameter to 'exif' either for dynamic transformations or as incoming transformation while uploading. See the following article for more details

    In addition, it is recommended to use our PHP client library that handles signature generation, upload calls and transformation generation:


  • Andrew Lam

    Dear Nadav

    I'm trying to access the link that you provided  but I received "You're not authorized to access this page.

    May I know how can I access to the page as I'm facing the same orientation issue.




  • Raz Ziv

    Hi Lam,

    Thank you for notifying us about the issue you are experiencing when trying to access this link. We will look into it.

    In the meanwhile, please find below the content of the article you were trying to access:

    Cloudinary does not rotate the images in default upon upload, we display the original image. Your local viewer is probably rotating these images automatically. In order to solve this you can use the EXIF-based auto rotation (camera information). Setting the 'angle' parameter ('a' for URLs) to 'exif' does the trick.

    The a_exif transformation can also be applied as an incoming transformation while uploading (so the file stored in Cloudinary is already auto rotated), so you can automatically rotate images based on camera orientation info, by setting the 'angle' parameter to 'exif' or adding 'a_exif' to transformation URLs. (e.g., :angle => :exif in Ruby on Rails and similarly in other development frameworks).

    For example: The original image (scaled down):



    The resulting image with automatic rotation:,a_exif/exif_sample.jpg

    Auto rotated


Post is closed for comments.