photoshopscripts icon indicating copy to clipboard operation
photoshopscripts copied to clipboard

Transparent PNG export doesn't work

Open mkernb opened this issue 8 years ago • 5 comments

Thanks for this great Photoshop script(Layer Comps To Artboard Files.jsx). It works really well. The only problem I've found is that you can't export transparent PNGs. You can choose the transparent option in the PNG Settings, but the layers always get exported with an white background instead of the transparent background.

Best regards Michael

mkernb avatar Apr 06 '16 11:04 mkernb

Hey this is a great script - thank you! mkernb - I have just forked with a proposed update so that the layer comps are not flattened therefore retaining their transparency when exporting as PNGs!

Cheers Jay

jayrigby avatar Sep 01 '16 02:09 jayrigby

Still no fix the transparency with PNGs?

TrevOwnz avatar Aug 24 '19 18:08 TrevOwnz

@antoniocosta

TrevOwnz avatar Aug 24 '19 18:08 TrevOwnz

I figured it out!

Replace duppedDocument.flatten();

With duppedDocument.mergeVisibleLayers();

TrevOwnz avatar Aug 25 '19 02:08 TrevOwnz

Thanks @TrevOwnz ! Replaced.

antoniocosta avatar Sep 07 '20 16:09 antoniocosta