Batch Resize, ppi & save as PNG

Ok so I have been experimenting around with Photoshop cs6's Actions and creating my own, but I can't perfect them. I have a little file structure where I store textures and there are many sub folders and all my images are .JPEG.
My question is:
How do I create an action that will:
Change all my JPEG images to PNG
Resize all pictures to 2048x2048
set ppi to 72
and
Retain file name and location within the folder structure.
Thanks for any help!

I prefer to do this type of batch processing work in IrfanView (faster, more consistent behaviour in my experience).
http://www.irfanview.com/
It's free, and very quick to convert images - much faster than Photoshop.
1) File-->Batch Conversion/Rename, and change option to either "batch conversion" or "batch conversion - rename result files" (select the last option if you need the files to be automatically renamed)
2) change output format to PNG (adjust option to your liking)
3) check "Use advanced options"
4) click the advanced button, and set one or both sides to 2048. Check resample function for better quality.
5) set the new DPI value to 72 (bottom left).
6) in the Misc section, check "create subfolders in destination folder".
7) click OK
8) you can change the name pattern, if you like. Depends on the first step.
9) browse to the texture folder. Check "Include subdirectories" in the left column.
10) navigate to the specific folder that contains all the subfolders. Click "Add All".
11) change the output directory.
12) Start the batch (click "start batch" button.
All images are converted, and the directory structure is retained. You may have to browse in the folder structure until you are on the level you require.

Similar Messages

  • Save as png and not psd setting?

    hi all,
    i am a long time user but have not spent enough consistent time to avoid some very bad habits. i thought i would take some time to see if i can fix some of these. apologies for the multiple posts today.
    anyway, i am sometimes in a situation where i need to save images as png at a certain size or something for a website (or just because i like to save out as png) and in many cases i am not using any optimizations in psd files.
    is there a way to have photoshop default to Save As png?
    right now i think i have to do a pulldown every time i want a png and when i am trying to do some kind of "batch processing" i am getting a bit of carpal tunnel with all my clickthroughs.
    also, any tips on where to read up on optimizations or built in batch functionality in photoshop would be great. i have been using Preview for the mac and some of the functionality there (convert all to png, resize all to XX etc, etc) is really, really great.
    TIA

    Ifanview will let you batch convert to PNG.  I've not actually used it in that respect, so can't say what options you get, but it usually does a stand out job of everything, and it's free.  Windows only AFAICT
    http://www.irfanview.com/

  • Can Photoshop Batch Resize Tiff Files?

    I have quite a number of tiff files that I want to resize in terms of page dimensions and retain the same resolution / dpi. Can Photoshop batch resize tiff files?

    Yes Photoshop ships with a plugin Fit image you can record an action to re-size an image to fit within some number of pixels.  Image resolution setting and aspect ratio are not changed however the number on pixels the image will have will be less then or equal to the pixels size set.    For example if you set width and height to 2000px the largest size image you could have after the operation would be 1:1 aspect ratio square 4MP 2000x2000.  If your image has a landscape aspect ratio the re-sized image will be 2000px wide by less then 2000px high and if Portrait the re-sized is will be 2000px high be less then 2000px wide.  Bicubic Interpolation for the re-size.
    Once you record the single step action.  You can batch the action.  You can have batch open the image files and save over the original files or have batch save the resized files in a different location. Fit Image and Batch are both found in menu File>Automate>

  • Batch convert EPS/AI to PNG using Javascript

    Hi,
    I have lots of eps and ai files which I would like to convert to PNG format. The reason for doing this is to make it easier to find the image that I want instead of opening it one by one. I know Photoshop can do the conversion but limited to JPG, PSD and TIFF only. The filesize also will be so huge and the image quality is not sharp.
    One of the preset scripts for Adobe CS3 is SaveDocsAsPDF. I tried using this and then convert the PDF to PNG using Acrobat. I would required too much time to do it. I think there might be a better way to achieve the same result.
    I am not a programmer and cant figure out how to tweak the SaveDocsAsPDF script and become SaveDocsAsPNG script.
    It would be great if I can just select the folder and all the conversion will be done in the backgroud.
    Anyone can help me?
    Thanks

    ADOBE SYSTEMS INCORPORATED
    Copyright 2005 Adobe Systems Incorporated
    All Rights Reserved
    NOTICE:  Adobe permits you to use, modify, and
    distribute this file in accordance with the terms
    of the Adobe license agreement accompanying it. 
    If you have received this file from a source
    other than Adobe, then your use, modification,
    or distribution of it requires the prior
    written permission of Adobe.
    ExportDocsAsPNG24.js
    DESCRIPTION
    This sample gets files specified by the user from the
    selected folder and batch processes them and saves them
    as PDFs in the user desired destination with the same
    file name.
    // Main Code [Execution of script begins here]
    // uncomment to suppress Illustrator warning dialogs
    // app.userInteractionLevel = UserInteractionLevel.DONTDISPLAYALERTS;
    var destFolder, sourceFolder, files, fileType, sourceDoc, targetFile, pngExportOpts;
    // Select the source folder.
    sourceFolder = Folder.selectDialog( 'Select the folder with Illustrator files you want to convert to PNG', '~' );
    // If a valid folder is selected
    if ( sourceFolder != null )
        files = new Array();
        fileType = prompt( 'Select type of Illustrator files to you want to process. Eg: *.ai', ' ' );
        // Get all files matching the pattern
        files = sourceFolder.getFiles( fileType );
        if ( files.length > 0 )
            // Get the destination to save the files
            destFolder = Folder.selectDialog( 'Select the folder where you want to save the converted PNG files.', '~' );
            for ( i = 0; i < files.length; i++ )
                sourceDoc = app.open(files[i]); // returns the document object
                // Call function getNewName to get the name and file to save the png
                targetFile = getNewName();
                // Call function getPNGOptions get the PNGExportOptions for the files
                pngExportOpts = getPNGOptions();
                // Export as PNG
                sourceDoc.exportFile( targetFile, ExportType.PNG24, pngExportOpts );
                sourceDoc.close(SaveOptions.DONOTSAVECHANGES);
            alert( 'Files are saved as PNG in ' + destFolder );
        else
            alert( 'No matching files found' );
    getNewName: Function to get the new file name. The primary
    name is the same as the source file.
    function getNewName()
        var ext, docName, newName, saveInFile, docName;
        docName = sourceDoc.name;
        ext = '.png'; // new extension for png file
        newName = "";
        for ( var i = 0 ; docName[i] != "." ; i++ )
            newName += docName[i];
        newName += ext; // full png name of the file
        // Create a file object to save the png
        saveInFile = new File( destFolder + '/' + newName );
        return saveInFile;
    getPNGOptions: Function to set the PNG saving options of the
    files using the PDFSaveOptions object.
    function getPNGOptions()
        // Create the PDFSaveOptions object to set the PDF options
        var pngExportOpts = new ExportOptionsPNG24();
        // Setting PNGExportOptions properties. Please see the JavaScript Reference
        // for a description of these properties.
        pngExportOpts.antiAliasing = true;
        pngExportOpts.artBoardClipping = true;
        //pngExportOpts.horizontalScale = 100.0;
        //pngExportOpts.matte = true;
        //pngExportOpts.matteColor = 0, 0, 0;
        pngExportOpts.saveAsHTML = false;
        pngExportOpts.transparency = false;
        //pngExportOpts.verticalScale = 100.0;
        return pngExportOpts;
    Copy the above and paste into a text editor or the ESTK and save (from the text editor be sure to save as plain text). Place it into HD/Applications/Adobe Illustrator CS6/Presets/en_US/Scripts. Restart AI.

  • Hello, how can i batch resize, landscape and portrait pictures?

    Hello i'm new in CS6 and i wonder, is there a way to batch portrait and landscape pictures simultaneously and keep the   aspect ratio of the type?

    Batch Conversion:
    Select the Output Format at bottom left. This works just like Save and Save As. The Options button lets you choose from the various file format specific save options, just like the Save and Save As dialog.
    Use the Set advanced options button to apply many special operations to the images during conversion. These options are much like their versions on the Image Menu. The options are:
    Crop, Resize, Change color depth, Auto adjust colors, Horizontal flip, Vertical flip, Rotate left, Rotate right, Convert to greyscale, Negative, Sharpen, Brightness, Contrast, Gamma correction, Saturation, Color balance, etc.
    Hint: for Batch Resize: If you set both, width and height, to e.g. 640 and activate the preserve aspect ratio option, the result image dimensions are: width = max. 640, height = max. 640, proportional.
    The option Create subfolders in destination folder will create a similar folder structure in the destination folder to the original file path.
    Note: conversion to a multipage PDF is not yet possible in batch mode, only in the Save-as menu.
    This is from the help file of Irfanview, a free program (www.irfanview.com)
    Note the hint. I have not used the program for this purpose. You may wish to install this program.

  • Probably simple batch resize question  :_

    Hi, I am trying to create an action to batch resize a folder of images, and when I hit Run, I am asked for the jpeg quality for every file, which defeats the purpose of creating an action.
    I am using File>Automate>Fit Image  Inputting dimensions, hitting OK, and stop recording. 
    What am I doing wrong please?

    Is the Destination > Save and Close?
    Have you tried using File > Scripts > Image Processor without any Action?

  • How do I batch resize images with different aspect ratios?

    How do I batch resize images with different aspect ratios?

    poa66 wrote:
    Landscape: I want result to be 1960 x 1103 px and 72 ppi whether the original is 300 ppi or 220 ppi and wether it is 2Mb or 10 Mb. Cropped centered top and bottom.
    There will be a set of Landscapes that that have a narrower aspect ratio the 1960:1103 that would also need the top and bottom cropped like all Portraits would could be.  You need to realize that center cropping Landscape image that have aspect ratios near 1960:1103 will usually produce acceptable compositions.  However Cropping wide panoramas and portraits will only produce acceptable landscape  1960:1103 composition occasionally.
    Here you will see what happens when image have aspect ratio the do not fit the desired aspect ratio.  Where Landscape  are forced to portrait and portrait forced to Landscape.  Here are two Collage I populated with a mixture of image  with different  aspect ratios.   One collage has all 3:2 Landscape places and the other 2:3 Portrait places.
    I create a 1 image 1960x1103 collage 72dpi and create those too. Note the landscape boy foot is cropped off 3:2 is narrow compared to 1960:1103

  • [SOLVED] GIMP is unable to save an PNG

    Hello,
    when I try to save an PNG within GIMP I get the following message:
    Saving '/home/alex/test.png' failed:
    Error while saving '/home/alex/test.png'. Could not save image.
    This is my commandline output:
    libpng error: known incorrect sRGB profile
    (file-png:5692): GLib-WARNING **: (gerror.c:390):g_error_new_valist: runtime check failed: (domain != 0)
    I reinstalled gimp and deleted my profile, but it didn't work.
    Does anyone have the same problem?
    Greetings
    Alex
    Last edited by oelfe (2013-05-28 13:08:55)

    I've been having the same problem for a while now, since the libpng update a couple of weeks ago.
    The day before the update, I was able to open a png, apply changes to compression, interlacing, etc., and export it to the same filename, overwriting the original. (Not the best workflow, I know)
    After the update, the export would just simply blank out (0KB) the original file and give the same error message.
    libpng error: known incorrect sRGB profile
    Here's an example of a png file that does not work - https://dl.dropboxusercontent.com/u/937 … rabian.png (107 KiB)
    My workaround was to convert the colour profile to Adobe RGB, open it in Gimp and convert it back(?) to sRGB.
    It doesn't seem to happen with every png though, just mostly the ones that I needed for actual work on a website (they are all from the same graphics guy).
    Last edited by adrianx (2013-05-27 21:22:42)

  • Screenshots save as png not pdf

    Screenshots (using shift+apple+4) save as png files instead of pdf.
    Png blows; they're fuzzy, unreadable and generally makes the handiness of screenshot a waste of time
    Someone suggested using the new GRAB feature but it's no better.
    Anyone know how to get a fast, crisp screenshot that is actually usable.
    I'm using CS3 Mac OSX v10.5.2
    BRING BACK SCREENSHOTS AS PDF....PLEASE!

    Linda;
    There's a great maintenance app called Onyx: http://www.macupdate.com/info.php/id/11582
    Once you install the software, open Onyx and under the Parameters menubar option, you will see on the right hand side an option called "Screen Capture Format". There you can select almost a dozen formats, one of them being PDF. Save the setting, close the application and you should be able to save all your screen capture shots in PDF format. This app is free. Cheers.

  • How do I save a PNG file with an alpha channel in Photoshop CS5?

    I have a PNG file created in Photoshop and I need to save it with an alpha channel for web purposes. I tried 'Save for Web & Devices' and selecting the Transparent box. Then, after saving, when I select 'get info' for the file it says there is no alpha channel. I'm stumped I can't seem to create an alpha channel from within Photoshop while I'm editing. Help!

    If you save as a 24bit png with transparent checked photoshop will save the png with transparent background (ie alpha transparency).  The png will appear transparent in a web browser.

  • I have Adobe Photoshop 9.  I am a novice.  How can I resize photos in my files using batch resize?

    I have Adobe Photoshop 9.  I am a novice.  How can I resize photos in my files using batch resize?

    In the Editor, use File...Process Multiple Files.  See the Help for more info.
    Ken

  • Save As PNG script

    Hello,
    I'd like some help with this script if possible
    I wanted to save my open file to PNG format in the same location with the same name. I managed to do that with the scripts below.
    This is a script I found on the forum:
    #target photoshop
    main();
    function main(){
    if(!documents.length) return;
    try{
        var Path = decodeURI(activeDocument.path.parent);
        }catch(e){return;}
    if(!Folder(Path).exists){
        alert(Path + " Does not exist!");
        return;
    var Name = decodeURI(app.activeDocument.name).replace(/\.[^\.]+$/, '');
    var saveFile = File(Path + "/" + Name + "_bump.png");
    sfwPNG24(saveFile);
    //Uncomment the line below if you want to close the document.
    //app.activeDocument.close(SaveOptions.DONOTSAVECHANGES);
    function sfwPNG24(saveFile){
    var pngOpts = new ExportOptionsSaveForWeb;
    pngOpts.format = SaveDocumentType.PNG
    pngOpts.PNG8 = false;
    pngOpts.transparency = true;
    pngOpts.interlaced = false;
    pngOpts.quality = 100;
    activeDocument.exportDocument(new File(saveFile),ExportType.SAVEFORWEB,pngOpts);
    And this is how I modified it (so that it saves the file in the same folder and doesn't add any suffix to the name; also changed to save as PNG instead of using save for web):
    #target photoshop
    main();
    function main(){
    if(!documents.length) return;
    try{
        var Path = decodeURI(activeDocument.path);
        }catch(e){return;}
    if(!Folder(Path).exists){
        alert(Path + " Does not exist!");
        return;
    var Name = decodeURI(app.activeDocument.name).replace(/\.[^\.]+$/, '');
    var saveFile = File(Path + "/" + Name + ".png");
    sfwPNG24(saveFile);
    //Uncomment the line below if you want to close the document.
    //app.activeDocument.close(SaveOptions.DONOTSAVECHANGES);
    function sfwPNG24(saveFile){
    var pngOpts = new PNGSaveOptions;
    pngOpts.compression = 9;
    pngOpts.interlaced = false;
    activeDocument.saveAs(saveFile, pngOpts, true, Extension.LOWERCASE);
    [b]My problem:[/b]
    I don't know what's happening when I try to save a file just created (never saved yet). I thought I would get the Alert message but it doesn't seem to be the case (maybe the alert message in the code is related to a different condition?)
    I would like to have a default folder/path in the code so that, if the file hasn't been saved yet, it would be saved in the specified location.
    If anyone could do it I would really appreciate it!
    Thanks

    did not get that far.... Your catch ended the script without a notice to you. Try the changed line below in the catch.
    #target photoshop
    main();
    function main(){
    if(!documents.length) return;
    try{
        var Path = decodeURI(activeDocument.path);
        }catch(e){alert(e); return;}   //Let the user know about the problem
    if(!Folder(Path).exists){
        alert(Path + " Does not exist!");
        return;
    var Name = decodeURI(app.activeDocument.name).replace(/\.[^\.]+$/, '');
    var saveFile = File(Path + "/" + Name + ".png");
    sfwPNG24(saveFile);
    //Uncomment the line below if you want to close the document.
    //app.activeDocument.close(SaveOptions.DONOTSAVECHANGES);
    function sfwPNG24(saveFile){
    var pngOpts = new PNGSaveOptions;
    pngOpts.compression = 9;
    pngOpts.interlaced = false;
    activeDocument.saveAs(saveFile, pngOpts, true, Extension.LOWERCASE);

  • Save as png in different size and file name suffix.

    Maybe someone can help me on this Photoshop script. I am working on a psd file with few layers in Photoshop CS6. I would like to save it to the png format.
    Below is my workflow.
    1) Drag and drop 01.psd into Photoshop from A folder.
    2) Save 01.psd to 01.png into the A folder with different sizes and suffixes as shown below:
        - name: 01-xhires.png, size: 180x180
        - name: 01-hires.png, size: 90x90
        - name: 01.png, size: 45x45
    3) With png options: (I have no idea of some options below, but at least you know what I am lookng for. )
        - Compression: Smallest/Slow
        - Interlace: None
        - Transparency: True
        - Blur: 0:0
        - includeProfile = false
        - optimized = true
        - quality = 100
        - PNG8 = false
    4) Use lower case extension.
    5) Other options should be in default setting.
    The script should be able to:
    1) Overwrite the png files whenever the psd file has been updated and saved multiple times without prompting.
    2) Save the png files into the same folder as the source file without creating any subfolder.
    3) Not close the psd file, but still keeping it opens in the Photoshop without any changes.
    Please help, thank you very much.

    Goto Russell Browns web site download the Image Processor Pro script install it and use it to do what you want. However  the script will not overwrite files.   Overwriting file in an automated process is dangerous you could easily wipe out all you image if you make a mistake.  If you want to replace files create the new files in a new temp location then when you see the files are what you want. Move(cut) the files to the location you want replacing any files with the same name.
    Menu File>Automate>Image Processor Pro...
    source folder you psd files or open document which should stay open.  If you want the script to overwrite the output files you need to edit the script and remove the code that generate new name when output files exists. You may also need to change some save options.  I  would think you would want the profile you convert the image into stored in the png file,  Most of the otions you want can be set like same location no subfolders, 16bit  not interlace etc.

  • How do i save as png?

    i can't save as png in photoshop cs6?

    Hello!
    Usually, you will work in RGB color mode, it allows you to use all the tools in Photoshop. CMYK is made when you output on a printing press. It is recommended to still work in RGB, but preview using the correct CMYK profile with view>proof colors. LAB separates the luminosity from the colors, it might be useful for some editing tasks. There are also grayscale, and a black and white mode.
    You will use 16 bits usually, when editing a Photo that comes from a RAW file. It can store more color information, so might be useful when doing big color shifts, but not all tools are available, and it cannot be exported in many formats.
    You will have more info about color modes in the help: http://help.adobe.com/en_US/photoshop/cs/using/WSfd1234e1c4b69f30ea53e41001031ab64-73eea.h tml
    and the bit mode: http://help.adobe.com/en_US/photoshop/cs/using/WSfd1234e1c4b69f30ea53e41001031ab64-7949a.h tml#WSfd1234e1c4b69f30ea53e41001031ab64-73daa

  • Why can't Photoshop CS4 open/save as PNG?

    I recently had to downgrade to CS4 and I've been having A LOT of issues with it. The biggest one being the inability to cooperate with PNG files.
    Online I've seen a few sollutions and I tried them all. I have PNG.8BI in my plug-ins folder in my Program Files, I ran it through my antivirus and it came back clean, I'm working in RBG color mode. Still nothing.
    Any other ideas?

    System: Windows 7
    Third party plug-ins: Not to my knowledge?
    Quicktime: I believe so.
    Save Method: I save as two copies, one in the default Photoshop format (PSD) and then I hit "save as" to save as PNG.

Maybe you are looking for