Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flickr: photo orientation and rotation #20

Open
ChrisHardie opened this issue Jun 3, 2018 · 0 comments · May be fixed by #22
Open

Flickr: photo orientation and rotation #20

ChrisHardie opened this issue Jun 3, 2018 · 0 comments · May be fixed by #22

Comments

@ChrisHardie
Copy link

ChrisHardie commented Jun 3, 2018

In running a test import against my Flickr account, I noticed that many of the imported images are upside down. It's not currently practical to re-take all of those photos with a differently oriented camera.

In the meta information for one of these images on the Flickr page for it, it shows Orientation - Rotate 180 but that information is not available in the raw_import_data field in WordPress.

The Flickr API docs at https://www.flickr.com/services/api/flickr.photos.getInfo.htm don't mention orientation as a return value, but in using the API explorer at https://www.flickr.com/services/api/explore/flickr.photos.getInfo and a test image ID of 34000467050
I do see that information in the result: <photo ... rotation="180" ...>

So I guess unless there's a querystring param that can be appended to the fetching of an original image on the Flickr side, the importer would need to rotate an incoming image by the given amount somewhere along the way to the media library. An alternative might be to fetch the largest size on Flickr that is already auto-rotated, and use that as the main source image instead.

@ChrisHardie ChrisHardie linked a pull request Jul 5, 2018 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant