Quantcast
Channel: Adobe Community : Popular Discussions - Photoshop Scripting
Viewing all articles
Browse latest Browse all 12244

Save as png- layer name changes

$
0
0

I'm using PNG save options to generate a PNG from a psd, but when I run the script the final output changes the layer name that was set in the original file to "layer 0". If I comment out the close command, I can see the layer name stays throughout the entire process, but don't know why the save as would cause the layer name to be lost? Any ideas?

        

          pngOptions = new  PNGSaveOptions();

          pngOptions.interlaced=false;

 

        myDoc.convertProfile('sRGB IEC61966-2.1', Intent.RELATIVECOLORIMETRIC, true, true );

 

        myDoc.saveAs((new File(folderString)),pngOptions,true);

Viewing all articles
Browse latest Browse all 12244

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>