Synfig Issue Tracker
star_faded.png
Please log in to bookmark issues
feature_request_small.png
CLOSED  Feature request #830  -  Accept GIMP Palette (.gpl) in Palette Editor Panel
Posted Mar 23, 2015 - updated Jan 05, 2019
action_vote_minus_faded.png
0
Votes
action_vote_plus_faded.png
icon_info.png This issue has been closed with status "Done" and resolution "RESOLVED".
Issue details
  • Type of issue
    Feature request
  • Status
     
    Done
  • Assigned to
    Not assigned to anyone
  • Progress
       
  • Type of bug
    Not triaged
  • Likelihood
    Not triaged
  • Effect
    Not triaged
  • Posted by
     wst
  • Owned by
    Not owned by anyone
  • Time spent
    No time spent
  • Category
    Not determined
  • Resolution
    RESOLVED
  • Priority
    Not determined
  • Targetted for
    icon_milestones.png 1.0.2
  • Tags
    icon_customdatatype.png Not determined
  • Difficulty
    icon_customdatatype.png Not determined
Issue description
Now it is not possible to load .gpl files (GIMP Palette) in the Palette Editor Panel anymore. It would be nice to have this option, this would save a lot of time.

Thanks!

Extra:

http://docs.gimp.org/en/gimp-concepts-palettes.html
GIMP palettes are stored using a special file format, in files with the extension .gpl. It is a very simple format, and they are ASCII files, so if you happen to obtain palettes from another source, and would like to use them in GIMP, it probably won't be very hard to convert them: just take a look at any .gpl and you will see what to do.


Last updated 2 years ago in 2013: http://wiki.synfig.org/wiki/Doc:GIMP_palette_converter

#1
Comment posted by
 BobSynfig
Aug 10, 22:10
To solve this:

in file synfig-studio\src\gui\app.cpp

in method App::dialog_open_file_spal

after the block introduced by: // show only Synfig color palette file (*.spal)

add this:

        //...and adds GIMP color palette file too (*.gpl)
        Glib::RefPtr<Gtk::FileFilter> filter_gpl = Gtk::FileFilter::create();
	filter_gpl->set_name(_("GIMP palette files (*.gpl)"));
	filter_gpl->add_pattern("*.gpl");
	dialog->add_filter(filter_gpl);


tested ok on 10 Aug 2015

#5
Comment posted by
 Konstantin Dmitriev
Aug 11, 05:14
The fix is applied to master branch. I also have added a generic filter for both *.spal and *.gpl files. Thank you!