python-gcs-image icon indicating copy to clipboard operation
python-gcs-image copied to clipboard

googleusercontent resize return wrong image

Open hungplatfox opened this issue 5 years ago • 3 comments

Hi, I am using the API - and convert an image:

http://lh3.googleusercontent.com/_e2TmTw-YsUE89Zt0UXT6UCjwVzTC7lyAi5EvyBrZq7h7t6Z7Dy0rAvCgEdMs8sVKQJ3pWEWHxcri65vPA

Tried resize this image by add the "s=PixelValue" in the end of URL.

Example :

http://lh3.googleusercontent.com/_e2TmTw-YsUE89Zt0UXT6UCjwVzTC7lyAi5EvyBrZq7h7t6Z7Dy0rAvCgEdMs8sVKQJ3pWEWHxcri65vPA=s100 -> worked

http://lh3.googleusercontent.com/_e2TmTw-YsUE89Zt0UXT6UCjwVzTC7lyAi5EvyBrZq7h7t6Z7Dy0rAvCgEdMs8sVKQJ3pWEWHxcri65vPA=s200 -> worked

http://lh3.googleusercontent.com/_e2TmTw-YsUE89Zt0UXT6UCjwVzTC7lyAi5EvyBrZq7h7t6Z7Dy0rAvCgEdMs8sVKQJ3pWEWHxcri65vPA=s300 -> worked

But from s=600 :

http://lh3.googleusercontent.com/_e2TmTw-YsUE89Zt0UXT6UCjwVzTC7lyAi5EvyBrZq7h7t6Z7Dy0rAvCgEdMs8sVKQJ3pWEWHxcri65vPA=s600 -> Google return wrong image, it's different image but same URL

This bug is random, sometime it happends. Tried debug but can not fixed it, please help.

hungplatfox avatar Feb 26 '20 11:02 hungplatfox

this is crazy... in this upload, anything up to 512 it shows one image, above 512 it shows another image.

how often are you facing issues like that? was this the only image?

zvictor avatar Mar 01 '20 13:03 zvictor

I got alot images, have to delete images and re-upload to get new link. Its random bugs, about 5% images got issue.

hungplatfox avatar Mar 05 '20 08:03 hungplatfox

I'm getting a 403 on that now. Let me do some more testing. This may have been fixed.

JayGoldberg avatar Feb 04 '23 20:02 JayGoldberg