What's new
Photoshop Gurus Forum

Welcome to Photoshop Gurus forum. Register a free account today to become a member! It's completely free. Once signed in, you'll enjoy an ad-free experience and be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

how to resize an image file into different sizes


Messages
12
Likes
0
pls help
sizes are
640x640
640x480
600x600
505x190
500x500
480x640
400x800
400x400
400x340
390x390
360x640
360x480
352x416
350x380
320x480
320x320
320x240
320x239
300x300
240x320
208x320
208x208
208x144
176x220
176x208
176x205
176x200
176x190
176x176
176x144
176x128
144x176
128x160
128x146
128x145
128x144
128x132
128x128
128x114
128x97
128x96
128x64
120x128
120x56
104x49
102x80
101x80
100x100
100x60
100x50
96x65
96x64
96x34
74x53
60x60
50x50
45x47
40x40
 

Tom Mann

Guru
Messages
7,223
Likes
4,343
Don't post the same question into different forums. Instead, use your time to describe (in one forum) your problem more completely, e.g, which version of PS do you have / know - elements, one of the full versions, a "creative cloud" membership, etc.? Are you familiar with actions, command line programming, etc.

Tom M
Moderator, Photography Section.
 
Last edited:

Tom Mann

Guru
Messages
7,223
Likes
4,343
To be honest, I would use Adobe Lightroom for this, not PS. In LR, you can set up all the different export profiles (sizes) that you need, select your entire set of 100 images, and hit a button 58 times to get all 100 images exported into each of the 58 different sizes.

If you know command line programming, Image Magik would be able to zip right through this.

T
 

Tom Mann

Guru
Messages
7,223
Likes
4,343
Sorry, but let's keep the discussion in this forum. People in the future reading this thread may profit from it.

Also, unfortunately, I need to go to work soon.

T
 

Tom Mann

Guru
Messages
7,223
Likes
4,343
It would be very easy to do in LR. However, if you don't know the basic concepts and methods of using LR, it might take u a bit of time/ reading to get up to speed.

The short version is that you would first need to "import" all of your master images into LR. Then, as I said, you would need to make 58 different export profiles (one for each size). You would start with one, and then simply change the dimensions, give it a new name, and then save it under that new name. This should go very fast.

Then, in "Library" mode (grid view), select all 100 pix (ie, using control A), and then start going through your list of export profiles. Each time you hit the "export" button, you'll get all 100 pix resized and saved to your HD.

HTH,

Tom M
 

Paul MR

The Script Master
Messages
382
Likes
206
The OP hasn't stated what format the files should be! Here is an example of using a script in Photoshop saving the files as PNG.
Save the script as plain text into Photoshops Presets/Scripts folder with an extension of jsx, restart Photoshop so it will pick up the new script.
Open your document the File - Script and select the script.

Code:
#target photoshop
main();
function main(){
if(!documents.length) return;
try{
var Path = app.activeDocument.path;
}catch(e){
    alert("This document needs to be saved before runnig this script!");
    return;
    }
var outputFolder = Folder(Path + "/Out");
var Name = app.activeDocument.name.replace(/\.[^\.]+$/, '');
if(!outputFolder.exists) outputFolder.create();
var Sizes =["640x480","600x600","505x190","500x500","480x640","400x800","400x400","400x340","390x390","360x640","360x480","352x416","350x380",
"320x480","320x320","320x240","320x239","300x300","240x320","208x320","208x208","208x144","176x220","176x208","176x205,","176x200","176x190",
"176x176","176x144","176x128","144x176","128x160","128x146","128x145","128x144","128x132","128x128","128x114","128x97","128x96","128x64",
"120x128","120x56","104x49","102x80","101x80","100x100","100x60","100x50","96x65","96x64","96x34","74x53","60x60"];
var startRulerUnits = preferences.rulerUnits;
preferences.rulerUnits = Units.PIXELS;
doc = app.activeDocument;
app.displayDialogs = DialogModes.NO;
for(var a in Sizes){
var savedState = doc.activeHistoryState;
var rSize = Sizes[a].split('x');
doc.resizeImage(Number(rSize[0]), Number(rSize[1]), undefined, ResampleMethod.BICUBIC);
saveFile = new File(outputFolder + "/" + Name + Sizes[a].toString() +".png");
SavePNG(saveFile)
doc.activeHistoryState = savedState;
}
preferences.rulerUnits = startRulerUnits;
};
function SavePNG(saveFile){
    pngSaveOptions = new PNGSaveOptions(); 
activeDocument.saveAs(saveFile, pngSaveOptions, true, Extension.LOWERCASE); 
}
 

Matias Kiviniemi

New Member
Messages
2
Likes
0
I second ImageMagick just because your aspect ratios are all over the place. I.e. you need some logic of cropping/adding borders and imagemagick is pretty good in that.

Google ImageMagick resize example and first link will show you several examples
 

Top