nevhornsey
Technical User
Hello all,
my question is:
is it possible to create a script for photoshop which resizes individual images or batches of images which:-
a) resizes constrains proportionaly
b) resamples bicubic
c) the only input variable is the output size in megabytes
I would like to resize a lot of images and I want them all to be a 50mb file at the end of the process.
The images have all been captured on high end digital backs but they vary in pixel dimensions.
They are all presently 60mb+ and the agency I want to supply them to only wants images that are 48mb - 50mb
In Photoshop you can specify width, height, resolution but you can not just tell it resize to eg. 48mb etc.
I have had a bit of luck with finding parts of a script but I have no idea how to put the whole lot together in a simple god like Photoshop Script.
The variables I have found so far are:
var x_pixels;
var x_inches;
var x_cm;
var dpi = 72;
var output_memory_size = 51200 * 1024; // 50mb output wanted
x_pixels = Math.sqrt(output_memory_size / 3);
x_inches = x_pixels / dpi;
x_cm = x_inches * 2.54;
If anyone can put these elements into a script that would be fantastic...
cheers,
Nev
my question is:
is it possible to create a script for photoshop which resizes individual images or batches of images which:-
a) resizes constrains proportionaly
b) resamples bicubic
c) the only input variable is the output size in megabytes
I would like to resize a lot of images and I want them all to be a 50mb file at the end of the process.
The images have all been captured on high end digital backs but they vary in pixel dimensions.
They are all presently 60mb+ and the agency I want to supply them to only wants images that are 48mb - 50mb
In Photoshop you can specify width, height, resolution but you can not just tell it resize to eg. 48mb etc.
I have had a bit of luck with finding parts of a script but I have no idea how to put the whole lot together in a simple god like Photoshop Script.
The variables I have found so far are:
var x_pixels;
var x_inches;
var x_cm;
var dpi = 72;
var output_memory_size = 51200 * 1024; // 50mb output wanted
x_pixels = Math.sqrt(output_memory_size / 3);
x_inches = x_pixels / dpi;
x_cm = x_inches * 2.54;
If anyone can put these elements into a script that would be fantastic...
cheers,
Nev