Today we are making the /image/resize Robot's zoom parameter public. Up until now it was an undocumented parameter called "dont_zoom" with a default value of "false" that only few knew about. We decided it makes more sense to make it public now so everyone can profit. It is now called "zoom" and has a default value of "true" - so everybody who used it so far, please change your Templates accordingly.
The parameter contains very useful behavior, in that it leaves images that are smaller than your specified width and height untouched when resizing them. Imagine you use the pad strategy for example with a width and height setting of 100 pixels and with zoom: false. Now if one of your users uploads a 50×50 image, the image would get centered both vertically and horizontally and have a 25 pixels black border (or whatever background you specified) on each side.
Please check out the full documentation and let us know if you like this.
Share your Transloadit project to earn $300
We love seeing how our community uses Transloadit. Tweet @transloadit to get your proposal approved, share what you’ve built in the form of a blog post or a tutorial on your website, and earn a $300 Gift certificate of your choice as well as a full year of the Startup Plan, at no cost after you publish.
Follow us on Twitter:Follow @transloadit
We're SO STOKED to announce the Transloadit Community Plan! 🎉🎉🎉 Unlimited uploading, importing and exporting, 5GB of encoding/month, and access to 50 different file conversion features for all.— 🤖 Transloadit (@transloadit) July 2, 2020
Best part? It's free. Forever. 🤑 Find out more https://t.co/zXWLi3Xa0G pic.twitter.com/DlY5xz1mPG