Bonjour stv

Tu peux essayer ce script .jsx :

Code:
//TailleDocument.jsx 
// met l image au format A4 et la resolution a 300 dpi 
// mais change la taille de l image a 3508 px

//Declaration des unites de depart et d utilisation
var strtRulerUnits = app.preferences.rulerUnits;
app.preferences.rulerUnits = Units.PIXELS;
app.preferences.typeUnits = TypeUnits.PIXELS;
app.displayDialogs = DialogModes.NO;

// le travail :

if ( documents.length<1 ) { alert( " VOUS N AVEZ PAS DE DOCUMENT OUVERT ! ");}

else
{
var docRef = app.activeDocument;
          //Mettre la resolution a 300
var res =docRef.resolution;
if (res!= 300){
	 docRef.resizeImage(undefined, undefined, 300, ResampleMethod.NONE);
	}

var largeImage = docRef.width.as('px');
var hautImage = docRef.height.as('px');

if(largeImage>hautImage) { formatLarge = "Wdth"; } // si format paysage
else { formatLarge = "Hght"; } // sinon

var tailleFormatA4 = 841.9; // exprime en points - donne 29.7 en cm
formatA4()
//docRef.resizeImage(largeImage, hautImage, 300 , ResampleMethod.BICUBIC);

}

function formatA4()
{
// =======================================================
var idImgS = charIDToTypeID( "ImgS" );
    var desc10 = new ActionDescriptor();
    var idWdth = charIDToTypeID( formatLarge );
    var idRlt = charIDToTypeID( "#Rlt" );
    desc10.putUnitDouble( idWdth, idRlt, tailleFormatA4 );  
    var idscaleStyles = stringIDToTypeID( "scaleStyles" );
    desc10.putBoolean( idscaleStyles, true );
    var idCnsP = charIDToTypeID( "CnsP" );
    desc10.putBoolean( idCnsP, true );
    var idIntr = charIDToTypeID( "Intr" );
    var idIntp = charIDToTypeID( "Intp" );
    var idBcbc = charIDToTypeID( "Bcbc" );
    desc10.putEnumerated( idIntr, idIntp, idBcbc );
executeAction( idImgS, desc10, DialogModes.NO );
}

app.preferences.rulerUnits = strtRulerUnits; // retour aux unites de depart
Tu le copies dans un document .txt dont tu modifies l extension en .jsx

Tu l enregistres dans " C:\Program Files\Adobe\Adobe Photoshop CS2\Paramètres prédéfinis\Scripts

Puis tu crees un script .atn pour le lancer " Fichier/Scripts/Parcourir... ".

:blink: