albertcht / python-gcs-image

MIT License
69 stars 28 forks source link

googleusercontent resize return wrong image #9

Open hungplatfox opened 4 years ago

hungplatfox commented 4 years ago

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.

zvictor commented 4 years ago

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?

hungplatfox commented 4 years ago

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

JayGoldberg commented 1 year ago

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