Save as png- layer name changes

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);

I have a new need with this same project. I have 12 separate .psd files per product (same product but in different color combinations). Each .psd has 144 layers with unique layer names. Once I open one file, I run an action script (recorded within PS) to update all the layers links, and rename the layers with the product sku # with a 3rd party Script. This sku # is the same # that all 12 files need to be updated with. The problem is that when i run this recorded script, I have to manually punch in the sku # for each file even though it is the same for everything because the script brings up a window each time it is called upon. The info doesnt stay in the script. THEN, the recorded scripts saves, then save as and the name of the file just stays the same and saves over itself... which is bad. I need it to save as a new name (1,2,3 or a,b,c would be fine) so I can rename later. Can you help me streamline the production of this project please so I dont have to sit here forever!?!?!
Thanks a million.
Kelly

Similar Messages

  • Save and make file name change

    When I save as, I want the image to be the name of the file I type so that all subsequent changes can be saved only by clicking "save" and not having to browse to and rename the file EVERY TIME. Sometimes this works properly, sometimes it doesn't. It seems very random.
    I think it has something to do with "save as a copy" but more often than not, that option is greyed out so I couldn't set it if I wanted to.

    Photoshop invokes "Save As Copy" functionality when it senses you can't save all the things in your image document in the format you've chosen.
    For example, if an image has layers, or channels beyond R, G, and B, or is in 16 bit mode, it will not be able to save all these things in a JPEG.  Thus it invokes "Save As Copy" functionality, and makes the assumption you'd like to save the whole document, including all the extra stuff, in a separate master file in a format that can handle everything - e.g., .psd.
    This leads to this (normal) behavior:
    1.  You work on a design or photo that has a bunch of fancy stuff in it (e.g., some layers, some masks, some extra channels, in 16 bit modes).
    2.  You Save As a master .psd file.  This does NOT invoke Save As Copy, and DOES set the default save filename.
    3.  You work on it some more.
    4.  You Save As a .jpg file - for example to prepare for publishing it.  This invokes Save As Copy and the default filename remains .psd.
    5.  You try to exit Photoshop and it tells you that you haven't saved your .psd master file, so you save it.
    If you want the Save As operation to reset your default filename, flatten it, remove channels, lower color depth, or whatever to make it compatible with the format you're saving, so that Save As Copy isn't forced.  Or Save As another different .psd or .tif that can handle all those features.
    Hope this helps with understanding.
    -Noel

  • Presentation Layer column name change effects on existing reports ?

    Hello Gurus,
    I have one requirement where user are not sure about the column names in Presentation Layer.
    so they want us to create the reports and once the reports are delivered they will give us the column name as per their requirement.
    now i read couple of blogs related to this, that does it affects the exiting reports?
    in couple of blogs they says that i won't. becaus BI server creates the alias for the old name and will reflects it wherever it's used in reports..
    So can anyone tell me where this alias name has been stored in OBIEE?
    and is there any precaution that needs to be done while doing this beacuse we are expecting to create around 40-50 reports and changing the column name after changing the presentation layer name change will increase lots of work..
    Thanking You..

    I've confirmed it on a 10g environment that when you rename the column in the RPD the existing reports reflect the change.
    What I was referring to in the statement you highlight is that a column name can be changed when being used as the definition of a report. If somebody specifies an abbreviation of the current name to fit it in a table or chart then it will not be updated from a name change in the RPD.
    So long as you build reports using the name provided by the RPD and none of the developers take the liberty of renaming it in the column properties of the request/analyses the single rename should take effect through all the reports you build.
    You can also manage the column name by renaming it in a report and using the save as system wide default. But the way you intend to do it would be the best method.
    Edited by: James - Projected on 25-May-2012 14:07

  • Is it possible to print the layer name on file/copy when print or export file?

    Hi,
    I produce a large number of pages in InDesign.
    In each document there are 5 layers. 1 layer with images and 4 layers with language-editions.
    For safety and quality control I would like to print out the layer name together with the crop-marks.
    Like... Documentname / page number/ layerImages - layer language
    Is that even possible? That is...without me having to write it myserlf in the bleed. :-)
    /Karl

    Karl Z wrote:
    Hi,
    I produce a large number of pages in InDesign.
    In each document there are 5 layers. 1 layer with images and 4 layers with language-editions.
    For safety and quality control I would like to print out the layer name together with the crop-marks.
    Like... Documentname / page number/ layerImages - layer language
    Is that even possible? That is...without me having to write it myserlf in the bleed. :-)
    /Karl
    InDesign's pasteboard, bleed, and slug areas are independent for each document page. Running header text variables in these areas can capture sources on document pages. If you place a text frame with a character style for the layer name, and a character style for the language name, on a layer, and capture them in a character-style-based running header in the slug, for example, the source from whichever layer is visible will appear in the running header in the slug area. Similarly, you can capture other text variables for page number, filename, date/time, etc.
    It may take a little fussing to set it up the first time, but thereafter when you change layer visibility, the visible layer name changes automatically.
    NOTE: Text frames on master page pasteboards, bleed, or slug areas do not appear on document pages unless they also touch the document page border.
    Above: Master page view
    Above: Page 1 view
    Above: Page 2 view
    HTH
    Regards,
    Peter
    Peter Gold
    KnowHow ProServices
    Message was edited by: peter at knowhowpro

  • Script for using layer name in Save for Web command

    I am using the Save for Web  command (Illustrator CS2) to export layers to CSS so that each layer is  saved as a different jpg.  The only issue I have is that I want the  layer name to be part of the file name, but layer name is not an option  when I look at the "Edit Output settings" dialog for saving files.  Is  there anyway I can do this? I do not have experience writing or working with scripts.
    For example. My fiel name is flower.ai.  I will have 20  different layers (each containing a different color of the same image)  and want the exported file to be flower-scarlet.jpg,  flower-cranberry,jpg, etc. Right now I am looking at renaming all the  files manually, but as I am creating 40 images per product on my website, this will be very time consuming.
    Thanks in advance
    Christine

    Btw.. to make it work for JPGs, change the PNG options to the following:
    var options = new ExportOptionsJPEG();
            options.antiAliasing = false;
            options.optimization = false;
            options.artBoardClipping = true;
            options.qualitySetting = 100; // value of 0 to 100, 60 is medium, 100 is perfect
            options.blurAmount = 0;
            options.verticalScale = 100;
            options.horizontalScale = 100;

  • Save as png in different size and file name suffix.

    Maybe someone can help me on this Photoshop script. I am working on a psd file with few layers in Photoshop CS6. I would like to save it to the png format.
    Below is my workflow.
    1) Drag and drop 01.psd into Photoshop from A folder.
    2) Save 01.psd to 01.png into the A folder with different sizes and suffixes as shown below:
        - name: 01-xhires.png, size: 180x180
        - name: 01-hires.png, size: 90x90
        - name: 01.png, size: 45x45
    3) With png options: (I have no idea of some options below, but at least you know what I am lookng for. )
        - Compression: Smallest/Slow
        - Interlace: None
        - Transparency: True
        - Blur: 0:0
        - includeProfile = false
        - optimized = true
        - quality = 100
        - PNG8 = false
    4) Use lower case extension.
    5) Other options should be in default setting.
    The script should be able to:
    1) Overwrite the png files whenever the psd file has been updated and saved multiple times without prompting.
    2) Save the png files into the same folder as the source file without creating any subfolder.
    3) Not close the psd file, but still keeping it opens in the Photoshop without any changes.
    Please help, thank you very much.

    Goto Russell Browns web site download the Image Processor Pro script install it and use it to do what you want. However  the script will not overwrite files.   Overwriting file in an automated process is dangerous you could easily wipe out all you image if you make a mistake.  If you want to replace files create the new files in a new temp location then when you see the files are what you want. Move(cut) the files to the location you want replacing any files with the same name.
    Menu File>Automate>Image Processor Pro...
    source folder you psd files or open document which should stay open.  If you want the script to overwrite the output files you need to edit the script and remove the code that generate new name when output files exists. You may also need to change some save options.  I  would think you would want the profile you convert the image into stored in the png file,  Most of the otions you want can be set like same location no subfolders, 16bit  not interlace etc.

  • Why do my layer names disappear on save......

    Hi All
    I am saving an ai file in illustrator 8 format from CS4, I change a layer name and save then close. When I open the file again, the layer name is not preserved. I have looked through the forums and docs but there is nothing about this , is there a little known setting. I know about the 'remember layer names on paste' and I have it enabled but still no good.
    Also the shortcuts for the layer panel do not work (default keys), for example the alt+eyeIcon should hide all but the layer clicked on as the alt+lock should lock all but the layer clicked on, but it is not happening ?
    Any help appreciated. Thanks.
    Dean

    I am saving an ai file in illustrator 8 format from CS4, I change a layer name and save then close. When I open the file again, the layer name is not preserved.
    How do you name them? What is your system? AI 88 files use the old ASCII/ DOS charset, which limits the selection of characters, as well as was the length of the layer names limited back then. Also, if your system is set to a language dependent on specific Unicode features, the names may not be typed in with the correct characters in the first place due to Unicode vs. ASCII...
    Mylenium

  • Exporting Layers to PNG files using each layer name to create the file name??

    Hi All
    I'm trying to sort the following problem and was hoping somebody here could help with a scripting solution - my knowledge extends as far as actions unfortunately - which I don't think is appropriate for this.
    I've created a User interface in Illustrator with many layers and have exported this as a psd with layers.
    Basically what i'm wanting to do is export every layer as a png file while using the layer name to create the file name - each layer needs to be clipped.
    There is no transparency in the png.
    I've run the export to files script - but the names are too long and there is no anti aliasing.
    I've tried running a script from Illustrator - but it doesn't see sub layers - and doesn't name the layers.
    any help would be appreciated.
    thanking you in advance
    regards
    nate

    Hi,
    We just released this tool: FERRY (http://ferry.thedamarmada.com). It does exactly what you want and a little bit more.
    I think it's worth it a try.
    It comes with a free demo that will export 5 layers.
    Take a look and let us know if it's what you need.
    It could be easily tweaked.
    Jordi

  • Every time I download a file to my macbook pro, it saves it to downloads but changes the name and inserts % sign.  Please advise how to correct the name that it is saved under.

    Every time I download a file to my macbook pro, it saves it to downloads but changes the name and inserts % sign.  Please advise how to correct the name that it is saved under.

    Anything Downloaded with a Particular Apple ID is tied to that Apple ID and Cannot be Merged or Transferred to a Different Apple ID.
    Apple ID FAQs
    http://support.apple.com/kb/HE37

  • How to change layer name with Wacom pen?

    Anyone have any good tips on this?
    50% of time I do this the style menu come up instead.
    With mouse, no problem, with Wacom pen, this happens.
    I don't see a right click option to change a layer name, maybe I don't see it? That would help a lot. thanks!

    kevin4545 wrote:
    Trevor,
    driver 6.1.5-2 Intuos 3.
    This has plagued me since on got on board with Wacom 5 years ago. No problem with mouse, just with Wacom.  Is there a new driver for this?
    I am using an Intuos 4 with driver 6.2.0w5
    Kevin was it you I was discussing drivers with a few weeks ago?  No, I have found the thread:
    http://forums.adobe.com/message/4186232#4186232

  • Naming images using 'Save for Web' based on layer name

    Hi All
    Hope someone can help, I'm a bit stumped!
    I've got a PSD in Photoshop CS4 which is for some T-Shirt Designs. I have 15 colours of shirts, all on 15 different layers. Then I have the design of the t-shirt on the top layer. I want to create 15 images with the design shown on each of the 15 shirt colours.
    Is it possible to automate the saving of the files? ie Always have the top layer (the shirt design) on, but save a file with just one of the shirt layers on, and save the file so the filename reflects the layer name?
    I seem to recall Imageready doing something like this, though maybe it was in the Animation section, its been a while :-)
    Cheers
    Mark

    Have a look at layer comps and File>Scripts>Layer Comps to Files.
    more about layer comps:
    http://help.adobe.com/en_US/photoshop/cs/using/WSfd1234e1c4b69f30ea53e41001031ab64-7870a.h tml
    MTSTUNER

  • Change layer name within Layer Styles dialog

    Okay, so I'm lame - or maybe it's a fiddly operation to begin with - but half the time I double click a layer name to rename it I get the Layer Styles dialog instead. If the name field can't be made larger and easier to activate, it would be great if I could at least make the name change from within the Layer Styles dialog once I'm in it.
    Other means to make layer renaming simpler would also be apprecated.

    Thanks Michael. Not sure if any of those really simplifies the process though.
    Maybe instead of making a double click to the vast majority of the layer area open the Layer Style they could devote an equal amout of space to the name. Anything in the vacinity of the name (especially immediately above or below it) would activate the name for renamng, and anything reasonably to the left or right of it for Layer Styles. That seems somewhat fair and simpified to me.

  • Script to change layer name in to Document name.

    Hi I would like to make the active layer name the same as the document name.  I know very little about scripting.  I found this script:
    var idoc = app.activeDocument;
    var ilayer = idoc.activeLayer;
    var filename = idoc.name;
    ilayer.name = filename;
    It does almost what I need it to do. except that it also copies the ".ai" in to the layer name.  Is there some way to modify this script to have it exclude or delete the file extension?
    Thanks for any help.

    Or, if you want to keep the same construction as your example...
    var idoc = app.activeDocument;
    var ilayer = idoc.activeLayer;
    var filename = idoc.name;
    filename = filename.slice (0, filename.lastIndexOf(".")); //just add this line to the construction.
    ilayer.name = filename;
    Gustavo.

  • Save As PNG script

    Hello,
    I'd like some help with this script if possible
    I wanted to save my open file to PNG format in the same location with the same name. I managed to do that with the scripts below.
    This is a script I found on the forum:
    #target photoshop
    main();
    function main(){
    if(!documents.length) return;
    try{
        var Path = decodeURI(activeDocument.path.parent);
        }catch(e){return;}
    if(!Folder(Path).exists){
        alert(Path + " Does not exist!");
        return;
    var Name = decodeURI(app.activeDocument.name).replace(/\.[^\.]+$/, '');
    var saveFile = File(Path + "/" + Name + "_bump.png");
    sfwPNG24(saveFile);
    //Uncomment the line below if you want to close the document.
    //app.activeDocument.close(SaveOptions.DONOTSAVECHANGES);
    function sfwPNG24(saveFile){
    var pngOpts = new ExportOptionsSaveForWeb;
    pngOpts.format = SaveDocumentType.PNG
    pngOpts.PNG8 = false;
    pngOpts.transparency = true;
    pngOpts.interlaced = false;
    pngOpts.quality = 100;
    activeDocument.exportDocument(new File(saveFile),ExportType.SAVEFORWEB,pngOpts);
    And this is how I modified it (so that it saves the file in the same folder and doesn't add any suffix to the name; also changed to save as PNG instead of using save for web):
    #target photoshop
    main();
    function main(){
    if(!documents.length) return;
    try{
        var Path = decodeURI(activeDocument.path);
        }catch(e){return;}
    if(!Folder(Path).exists){
        alert(Path + " Does not exist!");
        return;
    var Name = decodeURI(app.activeDocument.name).replace(/\.[^\.]+$/, '');
    var saveFile = File(Path + "/" + Name + ".png");
    sfwPNG24(saveFile);
    //Uncomment the line below if you want to close the document.
    //app.activeDocument.close(SaveOptions.DONOTSAVECHANGES);
    function sfwPNG24(saveFile){
    var pngOpts = new PNGSaveOptions;
    pngOpts.compression = 9;
    pngOpts.interlaced = false;
    activeDocument.saveAs(saveFile, pngOpts, true, Extension.LOWERCASE);
    [b]My problem:[/b]
    I don't know what's happening when I try to save a file just created (never saved yet). I thought I would get the Alert message but it doesn't seem to be the case (maybe the alert message in the code is related to a different condition?)
    I would like to have a default folder/path in the code so that, if the file hasn't been saved yet, it would be saved in the specified location.
    If anyone could do it I would really appreciate it!
    Thanks

    did not get that far.... Your catch ended the script without a notice to you. Try the changed line below in the catch.
    #target photoshop
    main();
    function main(){
    if(!documents.length) return;
    try{
        var Path = decodeURI(activeDocument.path);
        }catch(e){alert(e); return;}   //Let the user know about the problem
    if(!Folder(Path).exists){
        alert(Path + " Does not exist!");
        return;
    var Name = decodeURI(app.activeDocument.name).replace(/\.[^\.]+$/, '');
    var saveFile = File(Path + "/" + Name + ".png");
    sfwPNG24(saveFile);
    //Uncomment the line below if you want to close the document.
    //app.activeDocument.close(SaveOptions.DONOTSAVECHANGES);
    function sfwPNG24(saveFile){
    var pngOpts = new PNGSaveOptions;
    pngOpts.compression = 9;
    pngOpts.interlaced = false;
    activeDocument.saveAs(saveFile, pngOpts, true, Extension.LOWERCASE);

  • [SOLVED] GIMP is unable to save an PNG

    Hello,
    when I try to save an PNG within GIMP I get the following message:
    Saving '/home/alex/test.png' failed:
    Error while saving '/home/alex/test.png'. Could not save image.
    This is my commandline output:
    libpng error: known incorrect sRGB profile
    (file-png:5692): GLib-WARNING **: (gerror.c:390):g_error_new_valist: runtime check failed: (domain != 0)
    I reinstalled gimp and deleted my profile, but it didn't work.
    Does anyone have the same problem?
    Greetings
    Alex
    Last edited by oelfe (2013-05-28 13:08:55)

    I've been having the same problem for a while now, since the libpng update a couple of weeks ago.
    The day before the update, I was able to open a png, apply changes to compression, interlacing, etc., and export it to the same filename, overwriting the original. (Not the best workflow, I know)
    After the update, the export would just simply blank out (0KB) the original file and give the same error message.
    libpng error: known incorrect sRGB profile
    Here's an example of a png file that does not work - https://dl.dropboxusercontent.com/u/937 … rabian.png (107 KiB)
    My workaround was to convert the colour profile to Adobe RGB, open it in Gimp and convert it back(?) to sRGB.
    It doesn't seem to happen with every png though, just mostly the ones that I needed for actual work on a website (they are all from the same graphics guy).
    Last edited by adrianx (2013-05-27 21:22:42)

Maybe you are looking for

  • Condition value need to be applicable only once

    Hi, I am working on solution to define set up cost for machined components. When components needs to be ordered, irrespective of the quantity there will be a fixed cost for the given material which is other than the normal unit price. Although I can

  • 2 Jdev 11g question

    Hi all, I am a Java newbie, so please bear with me. Question 1 - How do I make a connection as SYSDBA? The Java program will be running on the database server and the Oracle environment (ORACLE_HOME, ORACLE_SID, etc. will be set). Question 2 - This m

  • Do oracle integration support EDI X12 version 004010VICS

    One of our trading partner is using 004010VICS as the EDI Standard and I am not finding this in the List of EDI Standards of Oracle Integration b2b Document Editor. Is This standard supported by Oracle Integration Server Thanks, Varun

  • PKGBUILD for Canon Pixma iP1500 Printer

    Hi, I'm not sure if this is the correct place, maybe the forum needs a "AUR Packages release" section?  I wrote a PKGBUILD to this printer and I know that it's very difficult to find this driver, and it even can be easily modified to get others simil

  • A quick question of String

    how to check whether it starts with digitals or not? i remember there is a quick solution but i forget it. i checked the books but found no answer. could anybody tell me? Thanks!