Batch resizing to a specific ratio. Hoping for a solution to be created

  • 1
  • Idea
  • Updated 2 months ago
Our photographer gave us 1000 images that I need to resize to a specific size ratio. The originals are all different ratios, back and forth portrait and landscape, and they're all varying sizes from the start. For the end result, all images need to go to 2000x2000 at 300dpi.

I did the batch resize to fit, but it either does the height or the width and doesn't change the ratio. So i wrote a script to crop them to a specific ratio and it crops them too far on almost all images. Idk what step I'm missing. 

I talked to adobe customer support and was told "Work on the portrait image separately in a batch and the landscape image in a different batch" I told them that I tried that as well and it did not fix the problem and then support told me "I would also like to let you know that from Adobe we do not provide support for custom script. If the original images are of different proportion, then the end result cannot be same for all the images as they will follow the original aspect ratio of the image." I asked if there was a way to create a base template and do a batch that way and he told me "Not in this case."

Surely I'm not the only designer who needed a specific ratio and needed to do a batch run of it. Having to do this manually is pretty overwhelming, especially at this quantity. Please, for the love of design and my sanity, create a solution for this.
Photo of Chelsi Van Slyke

Chelsi Van Slyke

  • 8 Posts
  • 4 Reply Likes
  • FRUSTRATED, IRRITATED, OVERWHELMED

Posted 11 months ago

  • 1
Photo of Ronald Chambers

Ronald Chambers

  • 53 Posts
  • 5 Reply Likes
I think that you should talk to your photographer again to make sure you are understanding the request. I would expect that what has been requested is scale images are 2000px on the longest side then the dimension is filled out to 2000px with either some color or transparency. Doing what you described will distort the image.
RONC
Photo of Chelsi Van Slyke

Chelsi Van Slyke

  • 8 Posts
  • 4 Reply Likes
They always do send them in at the size requested. The original files just had their clipping path on them still. A big retailer (as in the #2 retailer in the world) requested that we send all of the clipping masks, with that file size. We assumed just resizing the originals with the clipping mask would have been faster than recreating a clipping mask for all of them. This is by no means the photographer's fault. We will ask that they leave the clipping mask on the resized images moving forward, but it doesn't help for my current scenario.
Photo of Glenbo

Glenbo

  • 81 Posts
  • 11 Reply Likes
Why not record an action and save it as a droplet?
Photo of Chelsi Van Slyke

Chelsi Van Slyke

  • 8 Posts
  • 4 Reply Likes
I've recorded 10 different actions and none of them worked. I'm running a resize canvas script at the moment. It's working on about half of them. I just feel like this should be a part of the automated batch resize to fit options.
Photo of Glenbo

Glenbo

  • 81 Posts
  • 11 Reply Likes
I've made an action that I think will work for you, it works on my test, you need to make a folder on your desktop named Test, with a subfolder named DONE, and then it should rock and roll, try 3 files first in case it locks anything up... http://glensaville.com/ps_test/Resize_2000.zip
Photo of Max Johnson

Max Johnson, Champion

  • 450 Posts
  • 208 Reply Likes
To offer a workaround, in case this feature isn't adopted... have you tried using Lightroom for this? You can set the crop to 1:1 for a single image, then sync that setting across all 1000 images. Then export the whole batch at whatever settings you need.  It would be minutes instead of hours, assuming it works like you need it to.

Failing that, what exactly is your script doing?  Cause this should do exactly what you describe.

#target Photoshop
var doc = app.activeDocument; // assign shortest edge to be crop size... var cropSize = ( doc.height > doc.width)? doc.width : doc.height; doc.resizeCanvas(cropSize,cropSize, AnchorPosition.MIDDLECENTER); doc.resizeImage(2000,2000,300); // Uncomment these if you want to save over your file and close in the script //app.save(); //app.close();
(Edited)
Photo of Max Johnson

Max Johnson, Champion

  • 450 Posts
  • 208 Reply Likes
If you needed to letter-box with a color on the expanded edges, just select the correct background color and reverse the ">" in the script...
Photo of Chelsi Van Slyke

Chelsi Van Slyke

  • 8 Posts
  • 4 Reply Likes
I have never used lightroom, to be entirely honest. I'm mostly a photoshop, illustrator, indesign kind of gal. I'll see if I can get what you're suggesting to work.
Photo of eartho

eartho

  • 814 Posts
  • 198 Reply Likes
What about File/Automate/Fit?
Photo of Chelsi Van Slyke

Chelsi Van Slyke

  • 8 Posts
  • 4 Reply Likes
I ended up having a multi-step solution that worked. I just brought it up as an idea because the customer service individual  told me there was nothing that could be done on their end and suggested I add it to this forum as a "wish list idea". Thank you all for your help. I appreciate it greatly.
Photo of HotelSwaps Ltd

HotelSwaps Ltd

  • 1 Post
  • 0 Reply Likes
Hi Chelsi. I am banging my head with the same issue. What was your multi-step solution?
Photo of eartho

eartho

  • 814 Posts
  • 198 Reply Likes
in the future, you can use: File/Automate/Fit Image
Photo of Chelsi Van Slyke

Chelsi Van Slyke

  • 8 Posts
  • 4 Reply Likes
Unfortunately that is inaccurate. As mentioned above I messaged adobe about it. I explained all of that in the OP. I did the batch fit image and since they were all different ratios it did not create a new ratio. It just made the largest side resized to the new size requested. There is not an automated process for what I'm mentioning as per 4 different adobe employees. I found a solution to get it to work for what I needed, but as mentioned I feel like this should be an automated process with adobe so I started it purely as an idea thread as requested by its staff members.
Photo of Chelsi Van Slyke

Chelsi Van Slyke

  • 8 Posts
  • 4 Reply Likes
Photo of eartho

eartho

  • 814 Posts
  • 198 Reply Likes
I guess i'm not understanding what you needed then. You're saying you wanted to trim all the images to squares even though they're rectangles? How would Ps know what part you wanted to crop?

If you just needed everything on a square canvas, then you'd run fit @2000, then another script to resize the canvas to 2000x2000. And i can think of a few other ways to accomplish this...

So yes, this process is already automated. All you need to do is write the appropriate action, and then run a batch with that action.
Photo of Chelsi Van Slyke

Chelsi Van Slyke

  • 8 Posts
  • 4 Reply Likes
I'm not sure what to tell you. This is an idea thread. I don't need assistance anymore as I got the problem worked out, though I appreciate your time. I was asked by adobe employees to start the thread so that they can take it into consideration for future versions as they specifically stated that they don't offer assistance or guidance with scripts or actions. I'm sorry for the confusion.