Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
1

How To Convert PNG to PSD Batch And Script Photoshop Plugin

Community Beginner ,
Nov 20, 2012 Nov 20, 2012

Oh wouldnt it be nice!!!

I am switching from Fireworks to Photoshop since purchasing and NOW I Have no way to import PNG files created in FIreworks with layers into photoshop.,

I have searched HI and LOW!! oh can someone please help. I not longer have fireworks installed. I can install a trial but then i dont know how to convert about 1000 png to psd

thank you everyone!!

idontbyte@gmail.com

TOPICS
Actions and scripting
3.2K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe
Valorous Hero ,
Nov 20, 2012 Nov 20, 2012

This documentation might help...

http://help.adobe.com/en_US/fireworks/cs/extend/fireworks_cs5_extending.pdf

Also the people at http://forums.adobe.com/community/fireworks/fireworks_general might have a better idea as it looks as if the conversion needs to be done with Fireworks.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Nov 20, 2012 Nov 20, 2012

You said this code was how to make an increasing number then save the file then increase the number then save the file etc. but how can you change it for PNG-24 instead of tiff. I want to do this for a bunch of YouTube thumbnails but I am having to do it manually and it is frustrating as I need about 300. Please email finished code to mrdons2004@live.co.uk

Thanks

-Dons2004

#target photoshop var inputFolder = Folder.selectDialog("Select a folder of documents to process"); if(inputFolder) main(); function main(){ Count = 0; //This is where the output folder is created in this case its called PageNumbered var PathFolder = new Folder(decodeURI(inputFolder)+"/PageNumbered"); if (PathFolder.exists == false) PathFolder.create(); var fileList = inputFolder.getFiles(); for (var i = 0; i < fileList.length; i++) {         var file = fileList;   ////////////////////////////////////////////////////////////////////////////////////// //Change the line below to the extention of your input files ie: //if the imput files are tif the line should be // if (file instanceof File && file.name.match(/\.tif$/i)) {   if (file instanceof File && file.name.match(/\.jpg$/i)) {         open(file);     doc = app.activeDocument; var startRulerUnits = preferences.rulerUnits app.preferences.rulerUnits = Units.PIXELS //Amend to suit. var fontSize = 40; var fontName = "Helvetica"; // NB: must be postscript name of font! // This is the colour of the text in RGB //Click foreground colour in Photoshop, choose your colour and read off the RGB values //these can then be entered below. var textColor = new SolidColor();         textColor.rgb.red  = 0;         textColor.rgb.green =0;         textColor.rgb.blue = 0;   var newTextLayer = doc.artLayers.add(); newTextLayer.kind = LayerKind.TEXT; newTextLayer.textItem.size = fontSize; newTextLayer.textItem.font = fontName; newTextLayer.textItem.contents = ++Count; newTextLayer.textItem.color = textColor; newTextLayer.textItem.kind = TextType.PARAGRAPHTEXT; newTextLayer.textItem.height = fontSize; newTextLayer.textItem.width = doc.width -20; //The line below is the text position (X Y)  IE; 10 Pixels Right 10 Pixels Down newTextLayer.textItem.position = Array(10, 10); //  Can be RIGHTJUSTFIED LEFTJUSTIFIED CENTERJUSTIFIED newTextLayer.textItem.justification=Justification.LEFTJUSTIFIED; doc.flatten(); var saveFile = new File(decodeURI(PathFolder) + "/" +activeDocument.name.slice(0,-4)+".tiff"); SaveTIFF(saveFile); activeDocument.close(SaveOptions.DONOTSAVECHANGES); preferences.rulerUnits = startRulerUnits;   } } }  function SaveTIFF(saveFile){ tiffSaveOptions = new TiffSaveOptions(); tiffSaveOptions.embedColorProfile = true; tiffSaveOptions.alphaChannels = true; tiffSaveOptions.imageCompression = TIFFEncoding.TIFFLZW; doc.saveAs(saveFile, tiffSaveOptions, true, Extension.LOWERCASE); }

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Valorous Hero ,
Nov 20, 2012 Nov 20, 2012
LATEST

I have had a quick look at the documentation and managed to get a Fireworks script (jsf) to convert all selected pngs to pdf ....

var fileList = App.chooseScriptTargetDialog(App.getPref("MultiFileBatchTypes"));

for(a = 0;a< fileList.length;a++){
fw.openDocument(fileList);
var psdFile = fileList
.toString().replace(/png$/i,'psd');
var dom = fw.getDocumentDOM();
fw.exportPSD(null,psdFile);
dom.clos...

Hope this helps.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines