-
1. Re: Batch processing images of various sizes
groove25 Dec 20, 2012 11:42 AM (in response to jawmusic)Wow, it was a bit tricky to follow your question!
Check out the "Scale to Fit Area" option within the Batch Process Scale command. Another user recently reported problems with this option being unable to upsample small images, but as long as you're using it to downsample large images, it should work as an effective substitute for the first step of the two-step process you've outlined. The idea would be to set Max Height to 125px and then set Max Width to a dimension larger than the photos you're processing, so that image height will be 125px and width will simply be scaled in proportion.
-
2. Re: Batch processing images of various sizes
jawmusic Dec 20, 2012 2:21 PM (in response to groove25)Thanks for the reply. I'm able to get the scaling to work properly using the method you suggested (I actually figured that out a few moments before your response). However, now I can't get it to crop the pictures properly. Once the pictures are at 125 pixels in one of the two dimensions (125x200, for example), I want to crop the image so it's 125 square as well. When I open one of the resized images and set the canvas size to 125x125, it works for that image. When I try to run that command as a batch, it just resizes the image again (to say 80x125) and fills the empty canvas space with white instead of actually cropping the images.
Sent from my Verizon Wireless 4G LTE DROID
-
3. Re: Batch processing images of various sizes
groove25 Dec 20, 2012 9:19 PM (in response to jawmusic)It seems tricker than one might expect to create square thumbnails!
I'm a little confused by the results you're describing. When I try using Modify > Canvas > Canvas Size to crop a document, the result appears in the History panel as "Crop Document". If I select that step and choose "Copy Steps to Clipboard", then paste the results in a text file, I get something like this:
fw.getDocumentDOM().setDocumentCanvasSize({left:16, top:0, right:141, bottom:125}, true);
This reveals that the canvas is being cropped according to a specific bounding rectangle that may or may not be a great fit for all the other images being processed (depending on their widths). For a more foolproof result, a rectangle like {left:0, top:0, right:125, bottom:125} would be a better choice; however, aesthetically, I'd personally prefer that images be cropped from the center, not the left side.
If I had something better to suggest here, I would. It might be worth checking out Photoshop to see if this type of operation is any easier. Here's one online tutorial on the subject: http://demosthenes.info/blog/347/PhotoShop-Batch-Processing-Generating-Image-Thumbnails-vi a-Automated-Crop-&-Resize
-
4. Re: Batch processing images of various sizes
jawmusic Dec 20, 2012 9:38 PM (in response to groove25)Yeah, that explains the problem I’m having. When I crop a portrait-oriented image, and then use that command on a landscape image, it’s actually cutting the top off, not doing what I described. So for example if it’s cutting 20 pixels off the top of the portrait image, it’s doing the same thing in the landscape image and filling the remaining pixels at the bottom with white. I don’t know enough about the javascript fix what’s happening, but I can tell from those coordinates what it’s actually doing. I was hoping that it would remember precisely what I asked it to do (crop from the center, making the image 125x125) rather than remembering it from how far from each edge it did the cropping. I appreciate your help. I was hoping to avoid having to use Photoshop because I’m much more comfortable with Fireworks, and I’ve read horror stories about batch processing in Photoshop. I’ll see if I can find a solution or maybe somehow alter the javascript of the existing function to work properly. Thanks again for your suggestions.
JAW
-
5. Re: Batch processing images of various sizes
tonycampbell Sep 25, 2014 7:51 PM (in response to jawmusic)Hi Jaw
I had the same problem and I thought I was going mad. I am not a trained Photoshop expert but this is what I did to generate same sized thumbnails with images of various aspect ratios and different file sizes without ending up with the large white canvas fill as you experienced.
Lets say I am making 600 x 450 px thumbnails.
Record and run the following actions:
- Image | Image size
- Check Resample image and choose Bicubic Sharper
- In Pixel Dimensions, change height to 450 pixels
- Press OK
- Image | Canvas size
- Set width in 600 pixels
- Choose your anchor point
Tony
- Image | Image size


