Jump to content

Can a GIF be saved with a custom palette?


Recommended Posts

How about non-custom but user-controlled palette?

Photoshop lets you select how many colours will be in the palette, if you don't want 256.

For example, maybe I'm saving a GIF image and I'm really trying to minimize filesize. Saving it as a 16-colour image goes a long way, or some other colour count.

I understand that you're probably constrained by the .NET's GIF-saving routines, but surely the .NET framework lets you set how many colours are in the GIF palette?

Link to comment
Share on other sites

Having worked on similar projects (though never in .NET), I'd guess that no custom colors means no reduced colors either. Standard dithering algorithms should work on *any* color palette, which suggests that the specific colors it's using are hard-coded into the GIF-saving system.

Link to comment
Share on other sites

This isn't a .NET limitation by any means. Paint.NET does all its own palette optimization and quantization just fine. There just isn't much utility any more in having the ability to save GIF's with all manner of palette optimization and customization. Because of that we haven't taken this as a priority against all the other features we'd rather do.

The Paint.NET Blog: https://blog.getpaint.net/

Donations are always appreciated! https://www.getpaint.net/donate.html

forumSig_bmwE60.jpg

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...