Torsten2217 / google-plus-platform

Automatically exported from code.google.com/p/google-plus-platform
0 stars 0 forks source link

Image orientation issue #143

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Get activities from the activities list API.
2. Download the image from the URL (items->object->attachments->image->url) in 
the response.
3. The images have no EXIF data and some images are wrong rotation.

What is the expected output? What do you see instead?
I expect that the image has correct rotation. But some images are wrong 
rotation.

What version of the product are you using? On what operating system?
I am using this API to get activities list:
https://www.googleapis.com/plus/v1/people/{userId}/activities/{collection}

Please provide any additional information below.

I found out that there are two types of links to the image in the
response from the Google+ API.
One link to the image has correct rotation, but another one has wrong
rotation.
They both images after downloading from the proxy have no EXIF data.
I think the proxy or Picasa don't handle the image rotation correctly
in some cases.

Here are the examples of the response from the Google+ API:
1) This image is correct.
image = {
    height = 1600;
    type = "image/jpeg";
    url = "http://images0-focus-opensocial.googleusercontent.com/
gadgets/proxy?container=focus&gadget=a&resize_h=100&url=https%3A%2F
%2Flh6.googleusercontent.com%2F-t0MCM8Rc11Q%2FTuKQ4MyvzwI
%2FAAAAAAAABL4%2FrC0ppe--9zQ%2Fs1600%2Fphoto.jpg";
    width = 1063;

};

2) This image is wrong rotation.
image = {
    type = "image/jpeg";
    url = "http://images0-focus-opensocial.googleusercontent.com/
gadgets/proxy?container=focus&gadget=a&resize_h=100&url=https%3A%2F
%2Flh6.googleusercontent.com%2F-t0MCM8Rc11Q%2FTuKQ4MyvzwI
%2FAAAAAAAABL4%2FrC0ppe--9zQ%2Fs0-d%2F11%252B-%252B1";

};

I have checked that the example image appears correctly in my photos
page in the website of the Google+ and the mobile app on iOS.

Thank you,
Takashi

Original issue reported on code.google.com by tkato0...@gmail.com on 21 Dec 2011 at 11:46

GoogleCodeExporter commented 9 years ago
It seems that the proxy doesn't rotate the image.

The original image of the second example above has an original EXIF data. The 
URL of the original image is:
https://lh6.googleusercontent.com/-t0MCM8Rc11Q/TuKQ4MyvzwI/AAAAAAAABL4/rC0ppe--9
zQ/s0-d/11%252B-%252B1

But the proxy 'http://images0-focus-opensocial.googleusercontent.com/' discards 
the EXIF data and doesn't rotate the image correctly. So the image will be 
wrong rotation.

Thank you,
Takashi

Original comment by tkato0...@gmail.com on 22 Dec 2011 at 1:54

GoogleCodeExporter commented 9 years ago

Original comment by mimm...@google.com on 10 Feb 2012 at 11:59

GoogleCodeExporter commented 9 years ago

Original comment by t...@google.com on 5 Jun 2013 at 1:36