Flickr-Foundation / flickr-photos-api

Look up information about photos and collections of photos from Flickr
Apache License 2.0
0 stars 0 forks source link

Handle photos which are rotated in the Flickr API #23

Open alexwlchan opened 9 months ago

alexwlchan commented 9 months ago

e.g. https://www.flickr.com/photos/george/53336388053/in/photostream/

<photo id="53336388053" secret="04f9cf52e7" server="65535" farm="66" dateuploaded="1700160776" isfavorite="0" license="9" safety_level="0" rotation="90" originalsecret="c5b229811a" originalformat="jpg" views="328" media="photo">
alexwlchan commented 3 months ago

In particular, when Flickr users upload a photo they can choose to apply rotation on Flickr.

This rotation is only applied to the derivative images created by Flickr – the original is left as-is. This means you can end up in a situation where the original/derivatives have different aspect ratios. e.g. the original photo is portrait, but the derivatives are landscape

It'd be useful to expose whether a photo is rotated in this API.