Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Dynamically shrink an image with Google Images API, but do not enlarge

Google provides an excellent way to resize images dynamically; simply append =sXX to the image URL. This is perfect if you want to shrink an image, but if the image is smaller than the size specified, it enlarges it, giving it a pixelated effect.

Is there an easy way to say "don't enlarge, only shrink" when using serving URLs with a specified size?

UPDATE

This functionality is now a feature request at GAE. Vote it up if you'd like to see it!

like image 238
Matt Norris Avatar asked Nov 05 '22 20:11

Matt Norris


1 Answers

As stated in my comments above, this isn't possible.

Although I have no use of the image framework I can see how your request would be useful. May I suggest posting a Feature Request on the Google App Engines Issues BB?

After posting the request, update your StackOverflow question with a link to your Feature Request so that other users can +1 the request.

Here's the link to the GAE Issues Page. Although this is not a bug, you will need to click the New Issue button to request a feature.

like image 189
RLH Avatar answered Nov 09 '22 08:11

RLH