Skip navigation
Currently Being Moderated

is it possible to export png use RGB color mode

Jul 10, 2012 2:56 AM

hi,guys.

I use the following code to export the png , now is it possible to export png use RGB color mode?

Or is it possible to set it when export it

 

var pngOpts = new ExportOptionsSaveForWeb;

                            pngOpts.format = SaveDocumentType.PNG;

                            pngOpts.PNG8 = false;

                            pngOpts.transparency = true;

                            pngOpts.interlaced = false;

                            pngOpts.quality = 80;

                doc.exportDocument(saveFile, ExportType.SAVEFORWEB, pngOpts);

 
Replies
  • Currently Being Moderated
    Jul 10, 2012 3:33 AM   in reply to michael.shen

    I use the following and do get png24-files.

     

     

    ////// function to png //////

    function savePNG (myDocument, docPath, basename, theSuffix) {

    // weboptions;

    var webOptions = new ExportOptionsSaveForWeb();

    webOptions.format = SaveDocumentType.PNG;

    webOptions.PNG8 = false;

    webOptions.transparency = true;

    webOptions.interlaced = 0;

    webOptions.includeProfile = false;

    webOptions.optimized = true;

    myDocument.exportDocument(new File(docPath+"/"+basename+theSuffix+".png"), ExportType.SAVEFORWEB, webOptions);

    };

     
    |
    Mark as:
  • Currently Being Moderated
    Jul 10, 2012 1:17 PM   in reply to michael.shen

    i wonder, why i don't know about this stuff! hope you fellow will find your answer soon.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points