Hola,
He utilizado los scripts LOTE de manolowarr y StripExif de Brian Price 2004 a su vez adaptado de Adobe para 'crear' aeroestudioNoExif
Este es el código:
Código:
//He utilizado los scripts LOTE de manolowarr y StripExif de Brian Price 2004
//a su vez adaptado de Adobe para 'crear' aeroestudioNoExif © aeroestudio 2007 (www.aeroestudio.net)
var tempFolder = new Folder ("C:/CarpetaTemporalNoExif")
tempFolder.create();
var DL = documents.length;
for(a=1;a<=DL;a++){
activeDocument = documents[a-1];
var AD=activeDocument;
var imgName= AD.name;
imgName = imgName.substr(0, imgName.length -4);
activeDocument.selection.selectAll();
activeDocument.selection.copy()
//valores originales de la imagen
var x = activeDocument.width
var y= activeDocument.height
var r = activeDocument.resolution
var m = activeDocument.Mod
var b = activeDocument.bitsPerChannel
var newDocRef = documents.add(x, y, r, imgName,m , DocumentFill.TRANSPARENT);
newDocRef.info.author = "aeroestudio"
newDocRef.info.copyrightNotice= "Aeroestudio - Fotografia aerea y globos publicitarios - Almeria - Andalucia (España) - Tel. 696 43 42 90 - http://www.aeroestudio.net - info@aeroestudio.net"
newDocRef.info.ownerURL = "http://www.aeroestudio.net";
newDocRef.credit = "aeroestudio";
newDocRef.info.copyrighted = CopyrightedType.COPYRIGHTEDWORK
newDocRef.bitsPerChannel = b
newDocRef.paste();
newDocRef.flatten();
saveFile = new File("C:/CarpetaTemporalNoExif/"+imgName+".jpg");
saveOptions = new JPEGSaveOptions();
saveOptions.embedColorProfile = true;
saveOptions.formatOptions = FormatOptions.STANDARDBASELINE;
saveOptions.matte = MatteType.NONE;
saveOptions.quality = 12;
newDocRef.saveAs(saveFile, saveOptions, true,Extension.LOWERCASE);
newDocRef.close(SaveOptions.DONOTSAVECHANGES);
AD.close(SaveOptions.DONOTSAVECHANGES);
// Reset de variables
newDocRef = null;
imgName = null;
AD=null;
x = null;
y = null;
r = null;
m = null;
b = null
File = null;
}
Reconozco que no soy nada bueno en esto, pero funciona perfectamente foto a foto o combinado con el scrip LOTE.
Espero que os sirva.
Saludos
Marcadores