Skip to main content
Participant
March 15, 2018
Question

Batch resize to canvas from different ratio images

  • March 15, 2018
  • 2 replies
  • 3810 views

I need to resize a huge library of product photos but they are all cropped to fit the product with no extra space on the sides/tops.

I've read a lot of tutorials on resizing an image to fit a canvas but my problem is I need a solution that fits for images that are originally cropped as either portrait or landscape to resize into a 1024x768 canvas at maximum size. So if I have a portrait image, I want the height to resize to 768 and keep its original width and not get distorted. If its landscape but oddly cropped e.g. think of a toothbrush cropped to the point of having no space around it. I need that image inserted into that same 1024x768 canvas so its width is 1024 but its height remains the same.

Is there a way to handle both situations with one batch? I have thousands of images and it would be difficult to sort out the portrait from the landscape and the run a different script.

    This topic has been closed for replies.

    2 replies

    D Fosse
    Community Expert
    Community Expert
    March 16, 2018

    It will enlarge too, there is a checkbox to "don't enlarge". This is probably on by default.

    D Fosse
    Community Expert
    Community Expert
    March 15, 2018

    File > Automate > Fit Image

    bondi99Author
    Participant
    March 16, 2018

    Is there a bug in the current release? This doesn't work for me. I create a new document 1024x768, place embedded image and select File?Automate?Fit Image and nothing happens.

    My understanding is that the image should scale up to match the width or height of the canvas, correct? No resizing is happening at all. I should note, the image I'm embedding is coming in smaller than the canvas. Does this require a different technique?

    D Fosse
    Community Expert
    Community Expert
    March 16, 2018

    if I have a portrait image, I want the height to resize to 768 and keep its original width and not get distorted. If its landscape but oddly cropped e.g. think of a toothbrush cropped to the point of having no space around it. I need that image inserted into that same 1024x768 canvas so its width is 1024 but its height remains the same.

    Yes, this is exactly what "Fit Image" will do. No idea why it's not working for you.

    It will scale the image down to fit into that rectangle you have defined, undistorted.