Archived from the Transloadit support forum. Originally posted on December 23, 2010; details may be outdated, see our docs for current behavior. Original thread
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?
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?
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.
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/ (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.
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!