Batch processing images of various sizes

I'm trying to create 125 pixel square thumbnail images using a batch process and I'm having trouble getting it to work consistently with images that have different aspect ratios. I think I know why it's working the way it is, but I don't know how to work around the function. Here is what I'm doing that doesn't work when the image proportions change:
1. Resize image to 125 pixels high using the "constrain proportions" option.
2. Resize canvas to 125 pixels wide, thus cropping the sides to create the square image.
Then I have another process that does the same thing with images in portrait orientation. The problem is, I have some images that are 640x480, for example, and some that are 640x360. If I create the command using a 640x480 image, the 640x360 images are skewed when run through the batch because the "resize image" step is actually setting the dimensions of the image, rather than maintaining the proportions of that particular image. I thought about setting the canvas to a square first, but since not all my images are the same dimensions, I'm not sure how to account for that.
Anyone have any thoughts? I also have Photoshop, but as a novice, I've found Fireworks to be a little more intuitive for some of these basic commands, particularly batch processes.
Any help would be appreciated. Thanks so much!
Jeremy

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

Similar Messages

  • Need a script for squaring images of various sizes please

    Hello, new to this group but have been using photoshop for years doing basic editing. I have never done any sripting. I have a project on my hands. I have a lot of image of various sizes with some taller or wider than others. I need to make all these images exactly square though. Currently they vary and are wider or taller etc.
    I was wondering what process I could use hopefully with batch editing but was told scripting might be the answer to automate this process as I have about 8,000 images.
    So for example one image might be 200 pixels wide and 400 pixels high and another is 100 pixels high and 600 pixels wide and so on. I would need the
    1st example to be 400 x 400 and the 2nd example 600 x 600.
    I am using photoshop 5.5
    The software for a shopping cart is using a feature that allows you to zoom in on the image but if it is not perfectly square the image doesn't appear
    well in the software. Using magento e-commerce.
    Thanks for your help and any thoughts on this project of mine.
    Dave

    Here a simple script the does what I think you want.
    // squares the canvas. uses the background color
    var doc = activeDocument;
    var maxDim = Math.max( doc.width, doc.height );
    doc.resizeCanvas( maxDim, maxDim, AnchorPosition.MIDDLECENTER );

  • HOW TO: Action to resize & center crop images of various sizes

    Hello,
    I've gotten a lot of help here over the years so I wanted to share an action I created. I needed to resize and automatically center crop images of various sizes for my company's website. For example: All images needed to be 900px x 460px 72dpi - and because input images were from many different sources, the dimensions were different for each image. It seemed straight forward at first (sort of) but I couldn't find a way of doing this without a script or some third party program - so I came up with the following action. Hope someone gets some use out of it.
    Note: Change action as needed to suit your needs.
    Resize and Center Crop (Auto)
    Fit Image
         height: 900px
         width: 900px
         With Don't Enlarge
    Canvas Size
         height: 460px
         vertical: center
         extension color: white
    Image Size
         width: 900px
         resolution: 72 per inch
         with scale styles
         with constrain proportions
    Save (optional)
         As: JPEG
         Quality: 12
         Scans: 5 (for web images)
    This assumes that the images are at least horizontal, but if you have photoshop CC you can create a conditional action that will work with vertical and horizontal images. If you are square cropping, this action makes it a breeze. I also have an action that uses the same basic logic, but lets me manually move the crop box. The only real issue I have encountered is when the original image ratio is very narrow, which leads to some white space on the top and bottom (I'm working on updating the action to address this). But it has worked on about 95% of my images. Again, you will probably need to adjust all of the variables depending on what you are trying to do, but it should be possible with the same steps. And of course this can also be used to batch process.
    Feel free to let me know if anyone comes up with improvements! Thanks

    Hmm thanks Mylenium, I got that response a lot when I was searching before. But if you re-read above, I am explaining a method of doing it without a script. So it wasn't really a question, just a tip in case anyone else wanted to do the same.

  • In Bridge CS6, the "Tools" tab is missing the "Photoshop" option to batch process image

    Hello!
    Does anyone know why in Bridge cs6 under the "Tools" tab, my "Photoshop" option is missing?  That is how I have always batch processed images.  In Bridge, I choose the images to process, go to the "Tools" tab, down to the "Photoshop" option then to "Image Processor" and process.  Now when I go into my "Tools" tab it only has the options: Batch Rename, 4 kinds of Metadata related options and Cache.  Can someone tell me why this has happened and how to fix it?  Thank you!!!
    Eric

    Hello Omke,
    This problem lasted for two days.  I tried many suggestions but nothing worked immediately.  Suddenly I turned my computer on last night and it was fixed...inexplicably.  Not sure what worked but something did.  I appreciate you taking the time to offer advice. 
    Best,
    Eric

  • Photoshop cs6 batching process change the canvas size

    I am looking to change some images from 320x? to 320x320 without distoration.  The way to do that would be to change the canvas size to 320x? to 320x320 and have the product stay in the middle.  Can CS6 do that in a batch process?

    I am sorry is that a yes or a no.  I do not own this version of Photoshop but would upgrade if I can do this as I have several images to reformat.
    Sent from Windows Mail

  • Batch processing images with different dimensions

    Hi all!
    I've been trying to do this for a while and I'm stumped, so I'd like to know if it's even possible. I'm trying to fathom out how to create an action which…
    Takes a jpg
    draws a shape
    masks the image
    adds another shape
    So I can batch process a ton of images.
    I managed to do something like what I'm after but the thing I'm having trouble with is that the original images will have different dimensions.
    I have attached (via link) an example image which would be the original (start.jpg), one which would be the desired end result (done.jpg) and the .psd
    IF there needs to be a step in the middle of the action where I need to intervene and resize the flat image slightly to fit the canvas it'll still save a load of time.
    I know that opening and saving will be taken care of using the batch feature and the result only needs to be a jpg.
    Any input will be welcomed!
    Here are the working files - http://mikeebee.com/dl/action-test.zip
    Many thanks

    That's an interesting action, but I thought the expected output was different than what this action produces. First, I didn't think image cropping would have been ok (maybe the OP expects this or is ok with cropping). Secondly, I kept getting caught up in how the right edge was going to actually be skewed (as decreasing in size perspectively off into the distance). This action appears to just visually trick the eye (again which may be what the OP wanted or is ok with). Like I said, just that aspect alone is where I kept getting stuck in how this would be possible without some manual manipulation.
    If you take this image http://www.shan-dysigns.com/userForums/photoshop/stripes.jpg and perform this action, you will see how the right side doesn't actually get skewed (as I thought was part of the visual effect wanted). Still, this action is quite nice.

  • Batch processing images with histogram info

    I am using photoshop 7; I would like to know if I can batch process a group
    of images and generate the Histogram info of the images in a different directory then the images. I have tried to make a action to do this
    procedure but with little success. When I run the automate script all that I get is the histogram info of the first image. Is there a process for doing this or am I trying achieve something that can not be done. Any advise would be appreciated.
    thank you, Mark

    That's an interesting action, but I thought the expected output was different than what this action produces. First, I didn't think image cropping would have been ok (maybe the OP expects this or is ok with cropping). Secondly, I kept getting caught up in how the right edge was going to actually be skewed (as decreasing in size perspectively off into the distance). This action appears to just visually trick the eye (again which may be what the OP wanted or is ok with). Like I said, just that aspect alone is where I kept getting stuck in how this would be possible without some manual manipulation.
    If you take this image http://www.shan-dysigns.com/userForums/photoshop/stripes.jpg and perform this action, you will see how the right side doesn't actually get skewed (as I thought was part of the visual effect wanted). Still, this action is quite nice.

  • ACR use of workdisk and scratchdisk when batch processing images

    I am setting up a new PC optimized for PS, and I and pondering on the optimal disk setup for ACR when I batch process several images:
    Alternative 1
    2 physical disk in raid 0 with 2 partitions, partition 1 for scratch and the second for images to work on.
    The question is if there ever will be a conflict in the sence that PS/ACR wants to access both scratch- and work partitions at the same time? If this should occure, I guess the following is a better setup??:
    Alternative 2
    1 physical disk for scratch
    1 physical disk for images to work on
    Christopher

    Thank you Ramón,
    I am not limited to 2 drives. I am planning on having OS and programs on a third separate disk.
    The point of using alternative 1 would be to use RAID 0 to obtain faster read/write (both for scratch and for reading and saving images on the work partition. However, if scratch usage competes with read/write to the work partition, I'm probably better off with alternative 2. If I work on one image this is simple, however I frequently batch process several RAW images. How does ACR/PS handle this? If all the images initially are read from the work partition and loaded into RAM + scratch and processed there, there will be no competition between the two partitions and I will benefit from the RAID solution. However, if the images are read one or just a few at a time, processed in RAM/scratch and then saved to the work partition, I imagine scratch and work partition could be competing for the the disks read/write head when finished images are being saved and ACR is "waiting" for more images to process??

  • PSE 4 -- batch processing images

    I just returned from a sailing trip and I want to send some of my photos to friends. It their original form, the pics are huge. I want to resized 150 photos to a single photo size and dpi. Do I have to do each individually or does PSE 4.0 have a "batch" processing feature where I can resize many photos with one command set? Thanks

    If you are on Windows, you can use File/Export in Organizer or you can use the File/Process Multiple Files facility in Editor. On Mac, you only have the latter option.
    You say you want to set the "dpi". Actually it is "ppi". Why do you need to set that? Are you sending them for printing? If they are only for screen viewing, PPI is irrelevant.

  • I need to batch process images to 800x800px without cropping off any part of the images.  Is this possible in photoshop?

    I have tried processing these through Bridge and image processor, but can only limit either of the height or width to the 800px size.  I need the final images to be 800x800px, and don't mind if they have a white border to achieve this.

    thanks for that I've cracked it

  • Where is it possible to batch process the size of images?--I am able to change pixel dimensions in image processor but not image size in inches.

    Hi- I need to batch process images for video project.  I am able to change the pixel dimensions in the image processor but don't seem to have the option to change image size in inches.  Please advise!  Thanks

    You don't need inches for video (or screen viewing in general). It all goes by pixel count. Inches is for print, nothing else.
    But to answer the question, you can run actions in the Image Processor, and this is where you set size in inches. Just bring up Image Size, uncheck "resample image", and specify size. You'll notice resolution changes to reflect the fact that the existing image pixels are now redistributed over the new print size.
    But again, screen doesn't care about size or resolution. It only counts pixels.

  • Reducing file size in batch processes (multiple files)

    I am now using a canon XTi 10.5 megapixel camera. I'm loving it, taking tons and pics, and see my memory on my computer shrinking rapidly. I'm not too worried about hard drive space as I can simply buy another hard drive. Where I'm running into problems is on my iPod. I have an 80gb video iPod. It is suddenly full, Almost 1/2 with audio, 1/2 with photos. I'm realizing that I need take the 5-7 megabyte files each (photos) in iPhoto and reduce them down a bit in dimensions and/or jpeg compression.
    I use photoshop elements and am familiar with the multiple files option. I've used that a bit, nice feature.
    Heres my question:
    I know iPhoto is sensitive to manipulation of photos/changes if the changes aren't done through its interface. How can I go about taking the original pics for a number of events (talking about perhaps 2000 pics right now) and batch process them down in size a bit without weirding out iPhoto?
    Does iPhoto have an option to batch change files in such a fashion? Is it as simple as finding the originals in the finder and simpy reducing them in size and making iPhoto update its thumbnails?
    and how do I make iPhoto update its thumbnails, I forget...
    Thanks

    If you just want displayable image files on the iPod and not the full sized files then a very good solution, IMO, is to export those photos you want on the iPod to a folder on the Desktop. Then use Resize! to batch change the pixel dimension and the jpg compression level of the files. For my iPod Nano I use 640 x 480 and have Resize! compress them to medium. That gives me files in the 100 KB size range. If you want a smaller file just increase the compressions level a bit. Resize! automatically creates a new folder for the resized images so you can try different levels on the same folder. You can get a lot of photos on your iPod at that size. I then put that folder of resized files in my Pictures folder and have iTunes use it instead of using iPhoto.
    Do you Twango?
    TIP: For insurance against the iPhoto database corruption that many users have experienced I recommend making a backup copy of the Library6.iPhoto database file and keep it current. If problems crop up where iPhoto suddenly can't see any photos or thinks there are no photos in the library, replacing the working Library6.iPhoto file with the backup will often get the library back. By keeping it current I mean backup after each import and/or any serious editing or work on books, slideshows, calendars, cards, etc. That insures that if a problem pops up and you do need to replace the database file, you'll retain all those efforts. It doesn't take long to make the backup and it's good insurance.
    I've created an Automator workflow application (requires Tiger), iPhoto dB File Backup, that will copy the selected Library6.iPhoto file from your iPhoto Library folder to the Pictures folder, replacing any previous version of it. It's compatible with iPhoto 08 libraries. iPhoto does not have to be closed to run the application, just idle. You can download it at Toad's Cellar. Be sure to read the Read Me pdf file.

  • Fireworks CS4: Batch-processing fails

    Dear Helpers,  I need your advice for solving a problem concerning the batch-processing with Fireworks CS4 on WinXP. A few days before there was no problem witch "batching". But now, after choosing the image files, the batch process stops by closing the "batch"-window.  Can anybody help?  Thanks for your answers.  Oli

    Hey... solved it! Changed the background color in almost 2,000 jpegs. Heres how:
    Photoshop CS4, first define a color in an AXT file:
    Open test image, image, adjustments, replace color. use eye dropper to sample the background color, bring hue, saturation, and lightness bars all the way to the right (background color now turnd white), click save (save the definition AXT file, you will need to reference it later).
    Now create a new action called "replace color", have test image open (with original background that you want to change), start record and do this to record the action:
    Image, adjustments, replace color. Click load and select the AXT file, click load (the background color now turns white with the loaded AXT definition). Click ok. save file. Stop record action.
    Now run a batch command and use that action you just recorded: File, automate, batch, select your new action in the play section, select the folder of files to process and the destination... click ok to run the batch.
    I changed the "background" color in 2,000 estore product images of various sizes (thumbnail, medium, and large sizes) in about 15 minutes. Wow! I knew there had to be a way.
    Hope it helps lots of people, 'cause it sure is a common need.
    Cheers,
    Carl

  • Disable all informations (popups, alerts etc.) during batch process

    Hey! I'm using Acrobat 6.0 and the open all batch process to convert various office documents. For each document I have to agree to some alerts like "The document was changed. Do you want to save it" or "Acrobat can't save bookmarks beacause..." - or something like that... I think everybody can imagine what I mean and it doesn't matter what exactly is the content of these popups...
    My question: Is there a posibility to turn off all these messages? Maybe with some lines of JavaScript Code? Or pipe these messages to a text file instead of showing it on the screen?

    Thanks for your answer. I mean both things, although I haven't yet a JS function so I prefer the feature Batch Processing which is part of Acrobat 6.0
    Unfortunately the "Save warnings and errors in log file" preference doesn't work. I think the problem is, that these errors are special Batch Error. But this isn't what I mean...
    I will now describe exactly my problem. I'm using Acrobat 6.0 and MS Excel 2003. With several Makros I created special Excel files. With some (not all) tables in the Excel file I made a group (because I want to convert only these tables...)
    When I start the batch processing, the following messages appears (which I have to accept or deny... this is exactly what I want to disappear because with these messages I haven't any automatism or real "batch processing"....)
    1. After starting the batch process, first message...
    ::Acrobat PDFMaker::
    Acrobat PDFMaker have to save the document before continue. Should PDFMaker save this document and continue?
    2. ...and then after some seconds...
    ::Acrobat PDFMaker::
    'Name of my table' - Acrobat PDFMaker can make Tags, Bookmarks and Links only for tables with the printable area "Whole Table". Delete in the section "Page settings" the field "printable are" to avoid this problem.
    Would you like to continue and create a PDF File without Tags?
    3. .. and finally Excel also have a message for me:
    ::Microsoft Excel::
    Save all changes in 'Name of my Excel file'?
    After that the first PDF is successfully created. Then it happens something really strange. I can see in my Acrobat the little window with:
    'Name of my Excel File', 2 from 2
    (-a progress bar is shown with 50%-)
    Please wait. Adobe PDF is making.: 100%
    and then i can wait and wait and wait... But nothing more wil happens! :(
    Any idea to solve these problems?
    To implement the batch processing feature in an own JS function... How difficult is it? Are there any examples/experiences? And the most important thing: can i really disappear the popup messages?
    Thanks and sorry for my english... ;)

  • Problems Batch Processing...I've never encountered this before..Help!

    I just built a new machine, so I have a fresh install of
    everything (Windows XP Pro, Fireworks MX, Dreamweaver MX, ect).
    Whenever I try to batch process images (jpg format from my camera)
    Fireworks hangs. Anyone have any ideas? The machine is way fast
    enough and has plenty of memory. Thanks in advance for the
    help.

Maybe you are looking for