|
Author |
Message |
maxwolfie
Joined: 25 Mar 2010
Posts: 2
|
Posted: Thu Mar 25, 2010 5:32 pm Post subject: Batch resizing images - Bit of a twist |
|
|
OK, I've got a lot of pictures of safes that I basically need to be resized from their original to be square (ie.. make the long side the same as the shorter side) BUT without distorting the image and without de-centering the image!
This image is very typical, as an example:
It's dimensions are currently 291px × 468px. The dimensions need to be 291px x 291px. If I did a normal resize, the safe will become very "fat" or squished, as you can imagine, as the vertical height is reduced. I basically need the safe to reduce in size both height and width wise as the height is reduced in order to maintain the original aspect ratio (if that's the right word). As well as keeping the safe centered in the middle of the image. For references sake, I've editted this one such that it's 291 x 291, and the safe is in the middle (by my eye anyways - I assume there's an automated/calculated way of doing this)
I have about 200-250 photos. Now I can either hire a slave and tie them to my computer for weeks on end, or perhaps theres another way?  |
|
|
|
 |
thehermit
Joined: 05 Mar 2003
Posts: 3987
Location: Cheltenham, UK
|
Posted: Thu Mar 25, 2010 6:15 pm Post subject: |
|
|
You can make the images of safes square but it will interfere with their aspect ratio (imagine what the centre part will look like "squished").
If you want the images to fit into a 291x291px square then something has got to give.
I don't know your output, but if for web, you could provide thumbnails and then link to the proper images. _________________ If life serves you lemons, make lemonade! |
|
|
|
 |
maxwolfie
Joined: 25 Mar 2010
Posts: 2
|
Posted: Thu Mar 25, 2010 6:20 pm Post subject: |
|
|
That's exactly the intended use - The 291x291 images (or whatever - it doesn't matter what the res is, as long as it's square!) will be used as thumbnails, and will actually be scaled down to 128 x 128 and even 96 x 96.
Having said that, I guess the images could be scaled down to 128 x 128, but it still poses the same issues.
The original images (i.e. the 291px × 468px image) will open up once you click on the photo to "zoom in" (display the "high res" version!)
You can see what I'm talking about here
http://www.reliablelockandsafe.com.au/site/new-safes/commercial/ |
|
|
|
 |
Zonexl

Joined: 17 Mar 2010
Posts: 61
|
Posted: Fri Mar 26, 2010 3:47 am Post subject: |
|
|
thehermit wrote: | You can make the images of safes square but it will interfere with their aspect ratio (imagine what the centre part will look like "squished"). If you want the images to fit into a 291x291px square then something has got to give. |
It all depends on the image. If all images look like this one (object on a neutral background), then you can easily turn it into a square image without interfering with the aspect ratio, because basically all you do is extending the canvas with that neutral color and as far as I can tell, that's exactly what he wants.  |
|
|
|
 |
thehermit
Joined: 05 Mar 2003
Posts: 3987
Location: Cheltenham, UK
|
Posted: Fri Mar 26, 2010 5:17 am Post subject: |
|
|
|
|
|
|
 |
|