开发者

get_serving_url question

开发者 https://www.devze.com 2023-03-02 02:34 出处:网络
Hi My question is whether I\'ve understood the usage correctly: Adding =s120 to the url will scale the image to 120 pixels and adding the parameter size=120 will behave differently: It will only shrin

Hi My question is whether I've understood the usage correctly: Adding =s120 to the url will scale the image to 120 pixels and adding the parameter size=120 will behave differently: It will only shrink images larger than 120 pixels. Is this tru开发者_开发问答e? Thank you


No.

size=120 is something you could pass as the 2nd argument to the get_serving_url method. =s120 would be something that you append to the URL returned by get_serving_url.

The effect is the same: larger images are scaled down, but smaller images are not scaled up.

0

精彩评论

暂无评论...
验证码 换一张
取 消