# Rotate image depending on the dimensions

**URL:** <https://community.transloadit.com/t/rotate-image-depending-on-the-dimensions/17824>\
**Category:** Transloadit\
**Tags:** tender-archive\
**Created:** [December 23, 2010, 2:30am UTC](https://community.transloadit.com/t/rotate-image-depending-on-the-dimensions/17824 "2010-12-23T02:30:00Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![ben](https://yyz2.discourse-cdn.com/flex032/user_avatar/community.transloadit.com/ben/32/1481_2.png) [@ben](https://community.transloadit.com/u/ben)\
**Post date:** [December 23, 2010, 2:30am UTC](https://community.transloadit.com/t/rotate-image-depending-on-the-dimensions/17824/1 "2010-12-23T02:30:00Z")

</div>

> Archived from the Transloadit support forum. Originally posted on December 23, 2010; details may be outdated, see [our docs](https://transloadit.com/docs/) for current behavior. [Original thread](https://web.archive.org/web/20120106162222/http://support.transloadit.com/discussions/suggestions/21-rotate-image-depending-on-the-dimensions)

Would it be possible to add a ‘rotate strategy’ to the resize robot which is dependant on the dimension of the image?

I’m building an application for a photo store that allows customers to print their images across the web. I’m using the ‘crop’ resize strategy cause it’s visually the most appealing. However, for vertically oriented images (so when the image height is bigger than the width), the crop is too… radical, for lack of a better word, and my thumbnails end up being a bad representation of the original image.

It would be great if I could rotate the thumbnail by 90 degrees if height \> width.

I know it’s kind of specific to my situation but what do you think?

---

<div class="post-metadata">

**Author:** ![Felix\_Geisendorfer](https://yyz2.discourse-cdn.com/flex032/user_avatar/community.transloadit.com/felix_geisendorfer/32/1463_2.png) [@Felix\_Geisendorfer](https://community.transloadit.com/u/Felix_Geisendorfer)\
**Post date:** [December 23, 2010, 11:16am UTC](https://community.transloadit.com/t/rotate-image-depending-on-the-dimensions/17824/2 "2010-12-23T11:16:00Z")

</div>

> I know it’s kind of specific to my situation but what do you think?

We have a plan for supporting this kind of logic in the future. However, it’s not going to be easy, so it’s still going to take us a little while.

Meanwhile I’d like to know more about your idea: Wouldn’t all “rotate-cropped” pictures end up rotated? How is that visually appealing? Also, would you rotate clockwise or counter-clockwise?

--fg

---

<div class="post-metadata">

**Author:** ![ben](https://yyz2.discourse-cdn.com/flex032/user_avatar/community.transloadit.com/ben/32/1481_2.png) [@ben](https://community.transloadit.com/u/ben)\
**Post date:** [December 23, 2010, 1:01pm UTC](https://community.transloadit.com/t/rotate-image-depending-on-the-dimensions/17824/3 "2010-12-23T13:01:00Z")

</div>

Well, the idea is to only rotate the thumbnail. But yes, it would end up rotated in our application. It is visually the most appealing because it fills the containing div completely (and people don’t get their heads cropped off 😉 ), instead of having to pad with whitespace. It keeps all rows/columns of images consistent, which is easy on the eyes. Just like in typography, if lines of text start at different positions horizontally, your eyes are constantly looking for the start of a line, causing strain.

Furthermore, we’ll allow users to zoom in to the images, showing the original, in its upright position.

About the clock or counter-clockwise question.. I don’t have an answer yet, I would have to try it out and see what works best.

---

<div class="post-metadata">

**Author:** ![Felix\_Geisendorfer](https://yyz2.discourse-cdn.com/flex032/user_avatar/community.transloadit.com/felix_geisendorfer/32/1463_2.png) [@Felix\_Geisendorfer](https://community.transloadit.com/u/Felix_Geisendorfer)\
**Post date:** [December 23, 2010, 1:40pm UTC](https://community.transloadit.com/t/rotate-image-depending-on-the-dimensions/17824/4 "2010-12-23T13:40:00Z")

</div>

I’d have to see this for myself, but I guess it sounds like a reasonable thing to ask for : ).

What’s the timeline for needing this in your project?

--fg

---

<div class="post-metadata">

**Author:** ![ben](https://yyz2.discourse-cdn.com/flex032/user_avatar/community.transloadit.com/ben/32/1481_2.png) [@ben](https://community.transloadit.com/u/ben)\
**Post date:** [December 23, 2010, 4:55pm UTC](https://community.transloadit.com/t/rotate-image-depending-on-the-dimensions/17824/5 "2010-12-23T16:55:00Z")

</div>

We still have a long way to go, but at the same time we plan on starting a public beta with basic functionality soon. However, this (rotation) is not exactly a show-stopper so there’s no rush, we can go with the pad strategy for the time being.

You can try it out, but it’s in dutch, at [http://www.defotoshop.be/](http://www.defotoshop.be/) (click the big green button which says “Foto’s afdrukken”), it isn’t tested for cross-browser compatibility yet, so your best bet is chrome or firefox, which I use for development.

---

<div class="post-metadata">

**Author:** ![Felix\_Geisendorfer](https://yyz2.discourse-cdn.com/flex032/user_avatar/community.transloadit.com/felix_geisendorfer/32/1463_2.png) [@Felix\_Geisendorfer](https://community.transloadit.com/u/Felix_Geisendorfer)\
**Post date:** [December 23, 2010, 5:08pm UTC](https://community.transloadit.com/t/rotate-image-depending-on-the-dimensions/17824/6 "2010-12-23T17:08:00Z")

</div>

Alright, the advanced step logic is high up on our list, so you should see it land soon. If your launch deadline is coming close and you don’t see if yet, just ping me and I’ll get it accelerated!

---

<div class="post-metadata">

**Author:** ![Felix\_Geisendorfer](https://yyz2.discourse-cdn.com/flex032/user_avatar/community.transloadit.com/felix_geisendorfer/32/1463_2.png) [@Felix\_Geisendorfer](https://community.transloadit.com/u/Felix_Geisendorfer)\
**Post date:** [December 23, 2010, 5:12pm UTC](https://community.transloadit.com/t/rotate-image-depending-on-the-dimensions/17824/7 "2010-12-23T17:12:00Z")

</div>

Btw. I also just tried our your site - looks absolutely fantastic. I love your custom upload UI - really cool to see that!

--fg

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex032/uploads/transloadit/original/1X/04ee57da0cb7ac8728a9ac5965c288164f4ce280.svg) [@system](https://community.transloadit.com/u/system)\
**Post date:** [October 7, 2026, 9:06am UTC](https://community.transloadit.com/t/rotate-image-depending-on-the-dimensions/17824/8 "2026-10-07T09:06:05Z")

</div>

Closed on October 7, 2026, 9:06am UTC


