Skip to main content
Participating Frequently
May 30, 2021
Answered

Script to save different TIFF from multiple folders in original location overwriting existent

  • May 30, 2021
  • 1 reply
  • 3258 views

Hi to all 🙂

 

I'm looking for an hint or some help to creat a PS script to save different TIFF with different compression type from multiple folders in original location overwriting existent.

 

That is beacause I have to pass different folders into a droplet that has certain action in it.

These folders have lot of LZW compressed TIFF with layers, i want to have the droplet to save the TIFF with layer and ZIP compression in the same folder as the original file overwriting it.

 

I know a little about scripting so any help will be appreciated.

Thanx

Matt

 

This topic has been closed for replies.
Correct answer Stephen Marsh

Hi Stephen,

 

tried your workflow,

it works saving files in the same folder, and this is good, but it doesn't change the compression method of the TIFFs.

 

As I pass folders with uncompressed TIFFs, he saves uncompressed TIFFs.

 

I would like to pass uncompressed TIFFs and save ZIP compressed TIFF.

 

Does it make sense to you?

Thank you!

 

Matt


Record the single step action with save as, include all the compression requirements as per my screenshot.

 

Don't worry that the action records the explicit filename and filepath used in this file.

 

Use the "override" save as checkbox as shown in the screenshot. Use the save and close option in the droplet.

 

This all worked fine in my tests, I changed none and LZW to ZIP in different folders with different filenames.

 

If you are still having problems, post a screenshot of the expanded action save as step and a screenshot of the setup used for the droplet.

1 reply

Stephen Marsh
Community Expert
Community Expert
May 30, 2021

EDIT: You could use Image Processor Pro, which can batch up to 10 separate source folders in a single operation.

 

https://sourceforge.net/projects/ps-scripts/files/Image%20Processor%20Pro/v3_2%20betas/

 

Otherwise, if you know a little scripting, map out the process point by point and let for forum know which points you need help on (folder saving code, tiff saving code, batch processing code etc).

Mattia 13Author
Participating Frequently
June 20, 2021

Hi Stephen,

 

thank you for your suggestions.

 

The point is that I would like to make a PS droplet in wich i can drop several folders,

the droplet then processes some action on images and then save the tiffs in same location overwriting existent with a different compression type.

 

I don't want tu use Image Processor because the droplet has to standalone, and should be used on different machines.

 

Does it make sense to you?

 

Thanks

 

Stephen Marsh
Community Expert
Community Expert
June 20, 2021

Forgive me for asking... When you write "script", do you actually mean "action"? Many use the terms interchangeably, however, they are not the same thing.

 

EDIT: I did write Image Processor Pro, not Image Processor – as I thought you needed the same files processed into different options in different folders in a single run.