Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
*.gpl file palette importer miss-handling whitespace and names #1094
I've been testing the gpl import-export in the case of importing actual gpl's that were exported properly form Pencil2D it will work, however many of the GIMP palettes have no names for colors, so if you try to use them on import Pencil2D it will start thinking the last RGB value of a color is it's name, and it will change the whole palette hue, lightness and saturation. Not fun if we assume many people will attempt to use GIMP and or Krita palettes without names.
Pencil2D should look to identify four value lists as a full color, and that if the fourth value is an empty string it should be given an automatic name like Color1, and subsequently each "unnamed" color will be named like this afterwards.
I expect color palettes are not changed when being imported into pencil2d. As a user, If I didn't named it, I don't care about the name.
Video or Image Reference
The GIMP 2.8 gpl format palette for testing import issue
Steps to reproduce