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 [TABLE="width: 112"]
[TR]
[TD]640x640[/TD]
[/TR]
[TR]
[TD]640x480[/TD]
[/TR]
[TR]
[TD]600x600[/TD]
[/TR]
[TR]
[TD]505x190[/TD]
[/TR]
[TR]
[TD]500x500[/TD]
[/TR]
[TR]
[TD]480x640[/TD]
[/TR]
[TR]
[TD]400x800[/TD]
[/TR]
[TR]
[TD]400x400[/TD]
[/TR]
[TR]
[TD]400x340[/TD]
[/TR]
[TR]
[TD]390x390[/TD]
[/TR]
[TR]
[TD]360x640[/TD]
[/TR]
[TR]
[TD]360x480[/TD]
[/TR]
[TR]
[TD]352x416[/TD]
[/TR]
[TR]
[TD]350x380[/TD]
[/TR]
[TR]
[TD]320x480[/TD]
[/TR]
[TR]
[TD]320x320[/TD]
[/TR]
[TR]
[TD]320x240[/TD]
[/TR]
[TR]
[TD]320x239[/TD]
[/TR]
[TR]
[TD]300x300[/TD]
[/TR]
[TR]
[TD]240x320[/TD]
[/TR]
[TR]
[TD]208x320[/TD]
[/TR]
[TR]
[TD]208x208[/TD]
[/TR]
[TR]
[TD]208x144[/TD]
[/TR]
[TR]
[TD]176x220[/TD]
[/TR]
[TR]
[TD]176x208[/TD]
[/TR]
[TR]
[TD]176x205[/TD]
[/TR]
[TR]
[TD]176x200[/TD]
[/TR]
[TR]
[TD]176x190[/TD]
[/TR]
[TR]
[TD]176x176[/TD]
[/TR]
[TR]
[TD]176x144[/TD]
[/TR]
[TR]
[TD]176x128[/TD]
[/TR]
[TR]
[TD]144x176[/TD]
[/TR]
[TR]
[TD]128x160[/TD]
[/TR]
[TR]
[TD]128x146[/TD]
[/TR]
[TR]
[TD]128x145[/TD]
[/TR]
[TR]
[TD]128x144[/TD]
[/TR]
[TR]
[TD]128x132[/TD]
[/TR]
[TR]
[TD]128x128[/TD]
[/TR]
[TR]
[TD]128x114[/TD]
[/TR]
[TR]
[TD]128x97[/TD]
[/TR]
[TR]
[TD]128x96[/TD]
[/TR]
[TR]
[TD]128x64[/TD]
[/TR]
[TR]
[TD]120x128[/TD]
[/TR]
[TR]
[TD]120x56[/TD]
[/TR]
[TR]
[TD]104x49[/TD]
[/TR]
[TR]
[TD]102x80[/TD]
[/TR]
[TR]
[TD]101x80[/TD]
[/TR]
[TR]
[TD]100x100[/TD]
[/TR]
[TR]
[TD]100x60[/TD]
[/TR]
[TR]
[TD]100x50[/TD]
[/TR]
[TR]
[TD]96x65[/TD]
[/TR]
[TR]
[TD]96x64[/TD]
[/TR]
[TR]
[TD]96x34[/TD]
[/TR]
[TR]
[TD]74x53[/TD]
[/TR]
[TR]
[TD]60x60[/TD]
[/TR]
[TR]
[TD]50x50[/TD]
[/TR]
[TR]
[TD]45x47[/TD]
[/TR]
[TR]
[TD]40x40[/TD]
[/TR]
[/TABLE]
 
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:
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
 
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
 
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
 
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); 
}
 
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
 


Write your reply...

Back
Top