CMS Photo Gallery - resizing to exact pixel dimensions

5 posts by 5 authors in: Forums > CMS Builder
Last Post: February 24, 2010   (RSS)

By meg - February 19, 2010

I know you can set max pixel dimensions for thumbnails, but is there a way for the image to resize to exact pixel dimensions (width and height) without distortion? Is there a plugin for this?

Also have you considered getting rights to use a third party image croppers like these and integrate them into your photo gallery tools?

http://kroppr.rborn.info/
http://uvumitools.com/crop.html
http://deepliquid.com/content/Jcrop.html

Re: [meg] CMS Photo Gallery - resizing to exact pixel dimensions

Hi Meg,

Since changing the aspect ratio during the cropping process is a creative choice, I personally think that it would be hard to "automate" that process.

What exactly are you trying to accomplish by specifying exact pixel dimensions?

BTW The integration question is not in my scope, since I'm just a user, like you, but thanks for the links to those tools.

Best,

Jerry Kornbluth
The first CMS Builder reference book is now available on-line!







Take advantage of a free 3 month trial subscription, only for CMSB users, at: http://www.thecmsbcookbook.com/trial.php

Re: [gkornbluth] CMS Photo Gallery - resizing to exact pixel dimensions

By Chris - February 22, 2010

Hi meg,

I believe you can crop images using CSS, but I'm not sure if that would satisfy your requirements.

Having CMS Builder crop your images for you isn't possible without some custom programming. We could definitely build a custom plugin to do this. Please let me know if you're interested in that.

I hope this helps! Please let me know if you have any questions.
All the best,
Chris

Re: [meg] CMS Photo Gallery - resizing to exact pixel dimensions

By Codee - February 22, 2010

I know you can set max pixel dimensions for thumbnails, but is there a way for the image to resize to exact pixel dimensions (width and height) without distortion?


"Resizing" an image and cropping are different graphic functions. With resizing only, the function is a vector-based or ratio function. As long as the original larger size is an exact perfect ratio to the smaller size then there is no distortion. The moment it's not a ratio you will have distortion. It's the way it is. It's math. Typically programs, kind of like the ones you mentioned, and a really old but good one called ImageMagik use a ratio to build the different size outputs BUT the ratio is applied after choosing whether the width or the height will be the dominant factor.