Skip to content

Gif opening causes color reindexing when duplicate colors in color table #3426

Description

@domgetter

When Aseprite opens a gif which has a single global color table, it will re-index pixels in some of the frames when they share RGB values with other indices in the color table.

black_test_aseprite

In this gif, the palette is 256 copies of black, but the 2 frames are indexed to color 240 in the table. When Aseprite opens it, frame 1 is all indexed as 240, but in frame 2, all the pixels are re-indexed to 1 since it's also black.

Expected/preferred behavior: When Aseprite opens a gif with only a global color table, the colors are copied from the color table to the current palette, and the indices across all the frames are left alone and copied in as-is.

Aseprite and System version

  • Aseprite version: v1.2.34.1-x64, installer
  • System: Windows 10 Home

Metadata

Metadata

Assignees

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions