Good I’m not insane. I don’t know the expected behavior but I did notice this.
I am changing some code to use this and I was pretty sure the behavior changed but I was new to the code, so yeah it may have changed.
--
You received this message because you are subscribed to the Google Groups "Google App Engine" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine/-/kQaJDPbiOVsJ.
To post to this group, send email to google-a...@googlegroups.com.
To unsubscribe from this group, send email to google-appengi...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
Sean
a 512px default size does not make sense, specially because u cant see it. the serving url does not redirect to =s512.
why did u change this?
> --
> You received this message because you are subscribed to the Google Groups "Google App Engine" group.
def get_serving_url(blob_key,
size=None,
crop=False):
......
if size:
url += "=s%s" % size
......
Guess what happens when you pass 0 as size?
Any idea other than manually adding the =s0 to the url returned?
Can you please tell the team responsible for the image service that
the first rule of an API is that you *do*not*change* the API
behavior?
Could you pass 0 as a string?url = get_serving_url(key, size="0")
--
You received this message because you are subscribed to the Google Groups "Google App Engine" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine/-/CQ1IcMtqWvkJ.
The API should not have changed behavior and the new behavior is not
logical.
Why should I have to specify the size as 0 if what I want is the
original image?
Why should the default use case, to return a resized image?
This is clearly a cost cutting measure by Google as a 512x512 image
should be smaller and cost less to serve. Google is betting most devs
wont change their code.
On Dec 9, 9:11 pm, Andreas <a.schmi...@gmail.com> wrote:
> this should not make any difference.
>
> >>> size = 0
> >>> '%s' %size
>
> '0'
>
> the problem is that the behaviour is not right to me. if i dont specify a size the original (up to a max of 1600px) should be returned and not a resized version.
> another non logic thing is that passing 0 returns a not resized image.
>
> not really straight forward.
>
> On Dec 9, 2011, at 4:05 PM, Kyle Finley wrote:
>
>
>
> > Could you pass 0 as a string?
>
> > url = get_serving_url(key, size="0")
>
> > --
> > You received this message because you are subscribed to the Google Groups "Google App Engine" group.
> > To view this discussion on the web visithttps://groups.google.com/d/msg/google-appengine/-/CQ1IcMtqWvkJ.
> --
> You received this message because you are subscribed to the Google Groups "Google App Engine" group.