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!

Reply to thread

Paul's code works well, but it doesn't resample image which I want, so it changes do PPI but also cm dimensions.

example:

file 100x100 @ 100PPI

after script is:

138,89x138,89 @ 72PPI


I want it to still be 100x100cm but with 72PPI


this one does the job, but If i paste it on the beginning of my script I get error:


[CODE]// =======================================================var idImgS = charIDToTypeID( "ImgS" );

    var desc4 = new ActionDescriptor();

    var idRslt = charIDToTypeID( "Rslt" );

    var idRsl = charIDToTypeID( "#Rsl" );

    desc4.putUnitDouble( idRslt, idRsl, 72.000000 );

    var idIntr = charIDToTypeID( "Intr" );

    var idIntp = charIDToTypeID( "Intp" );

    var idbicubicAutomatic = stringIDToTypeID( "bicubicAutomatic" );

    desc4.putEnumerated( idIntr, idIntp, idbicubicAutomatic );

executeAction( idImgS, desc4, DialogModes.NO );[/CODE]


sorry.. I just lame when it comes to scripting.. :/


What is our favorite program/app? (Hint - it begins and ends with the letter P)
Back
Top