Something that we've discovered is that there is more to the crazy URL string that you get when uploading to Picasa then meets the eye. In fact, you can use that crazy URL to your advantage, having it automatically resize images (uploading a large size than having it generate small, optimized versions to your page needs) and automatically thumbnail images to a specified square dimension.
For example, this is the link to the full size image that I upload through Blogger:
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjIWzTh5RoI5-IYlobcB67qsWtNvWdRNKRDnjOvWKjswZ-_YHCVCf72TgDOXZ4oc2RI79BWe0G24BOr30_jwut2B_GrjsihZTDcT5i-BK6du36gw-hmP5soN0Eqc5CV8dHa_CshoKnmrtFR/s320/%255BUNSET%255D
Changing the s-value
By adding a value (s150) before the filename, I can get the image returned but resized to a specified dimension with a maximum dimension of 150 pixels:
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjIWzTh5RoI5-IYlobcB67qsWtNvWdRNKRDnjOvWKjswZ-_YHCVCf72TgDOXZ4oc2RI79BWe0G24BOr30_jwut2B_GrjsihZTDcT5i-BK6du36gw-hmP5soN0Eqc5CV8dHa_CshoKnmrtFR/s150/%255BUNSET%255D
Changing the optional flag
Other variations on this include adding -c, -p and -d to this string, each with different results, and there are others that have specific uses from other Google applications, but the below examples have been the ones that we've found ourselves using for various projects.
Optional -c flag
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjIWzTh5RoI5-IYlobcB67qsWtNvWdRNKRDnjOvWKjswZ-_YHCVCf72TgDOXZ4oc2RI79BWe0G24BOr30_jwut2B_GrjsihZTDcT5i-BK6du36gw-hmP5soN0Eqc5CV8dHa_CshoKnmrtFR/s200-c/%255BUNSET%255D
This returns a square crop of the image to the specified dimension. If the image is a rectangle it returns the largest square of that rectangular image, then returns it in the specified dimensions.
Optional -p flag
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjIWzTh5RoI5-IYlobcB67qsWtNvWdRNKRDnjOvWKjswZ-_YHCVCf72TgDOXZ4oc2RI79BWe0G24BOr30_jwut2B_GrjsihZTDcT5i-BK6du36gw-hmP5soN0Eqc5CV8dHa_CshoKnmrtFR/s200-p/%255BUNSET%255D
This returns a center-square of the original image with the specified dimension. You'll notice how this is different than the -c flag above.
Optional -d flag
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjIWzTh5RoI5-IYlobcB67qsWtNvWdRNKRDnjOvWKjswZ-_YHCVCf72TgDOXZ4oc2RI79BWe0G24BOr30_jwut2B_GrjsihZTDcT5i-BK6du36gw-hmP5soN0Eqc5CV8dHa_CshoKnmrtFR/s200-d/%255BUNSET%255D
This prompts to download the image.
Popular
-
Tip: How do I remove the Blogger bar at the top of my site?This is, far and away, the #1 question we're asked when people see the work we've done with…
-
Tip: Updated way to remove the Blogger NavbarIt's been a while since we took a look at the Blogger navbar, mainly because we simply got in t…
-
Tip: Make effective use the post title, URL and permalinkYou've done it. You've finished a long, thoughtful blog post, spell-checked it a few times,…
-
Tip: Understanding the Atom/RSS feeds created by BloggerIf you've heard of RSS feeds, you probably know that they're a way for your site's fans…
-
Featured Blogger Site: Rebekah Brooks JewelryRebekah Brooks is a small handmade jewelry company based in Massachusetts. Fulfilling a lifelong i…
-
Transforming Blogger's Popular Posts widget into a slideshowWhy didn't we think of this sooner?!?!? Most blogs on +Blogger take advantage of the Popular …
-
Is Wordpress better than Blogger for SEO? No answer.If only we had a dollar for each time we were asked this question, or were told that everyone shoul…
Post a Comment
Post a Comment