Getting file size when saving file.

Anyone, especially newbies, asking for help with Photoshop Scripting and Photoshop Automation - as opposed to those contributing to discussion about an aspect of Photoshop Scripting

Moderators: Tom, Kukurykus

shydoff

Getting file size when saving file.

Post by shydoff »

When you save files in Photoshop through user interface, you can preview file size, depending on the parameters you choose.

Is there any way to do this in script?

For example you want to fit file size to some value.
You check file size, if it is too big, you lower the quality of the file etc.
Andrew

Getting file size when saving file.

Post by Andrew »

There have been lengthy threads about this at the Adobe scripting forum. The short answer is NO, you cannot other than reading the file size after the file has been saved. It is possible to create an iterative mechanism that keeps resaving the file until it falls into some size target range however it is likely to be very slow and inefficient.

Andrew
shydoff

Getting file size when saving file.

Post by shydoff »

Well, thanks anyway.