We have some important news to share: the Pixelmator Team plans to join Apple. If you need product support please contact us here.

Learn more

Applescript export PNG in 256 colors

Discuss and share Pixelmator Pro resources such as templates, mockups, and tutorials.

The Pixelmator Community has been archived and cannot accept new posts or comments.

User avatar

2023-01-06 23:09:55

I'm trying to figure out how to export a PNG in applescript with the "use 256-color palette" option?
export newDoc to file ((exportLocation as text) & theFilename & ".png") as PNG
Thanks!
User avatar

2023-01-07 11:10:55

Why not use GIF instead as it has a 256 color limit built in? Just asking.
User avatar

2023-01-08 21:46:41

I could be wrong, but I don't think GIF supports transparency the same way as PNG. in GIF a pixels is either transparent or not, so anti-aliasing curves and edging don't look very nice on GIF compared to PNG. Mostly I just need PNG because that's the output customers want.