Copy link to clipboard
Copied
How to get the storage space size of pictures through javascript in photoshop?
And what storage space + file format?
You could save a file somewhere temporarily and then read the filesize from that temporary location before moving it to where you want it to go eventually.
This is the filesize part:
#target photoshop;
var fileRef = "C:/myImage.jpg";
var x = new File( fileRef ) ;
alert(x.length);
On windows, if you have an image at this location C:/myImage.jpg it will work.
Copy link to clipboard
Copied
Which pictures?
Copy link to clipboard
Copied
The info does not exist for a picture you are editing. It can only be known by saving it.
Copy link to clipboard
Copied
What do you mean by Storage Space size? What kind storage disk storage. Photoshop ram requitements Pictures can be quite complex they can have up to 8,000 layers.
Copy link to clipboard
Copied
And what storage space + file format?
You could save a file somewhere temporarily and then read the filesize from that temporary location before moving it to where you want it to go eventually.
This is the filesize part:
#target photoshop;
var fileRef = "C:/myImage.jpg";
var x = new File( fileRef ) ;
alert(x.length);
On windows, if you have an image at this location C:/myImage.jpg it will work.
Copy link to clipboard
Copied