mirror of
https://gitlab.gnome.org/GNOME/gimp.git
synced 2025-07-03 09:23:24 +00:00
Merge branch 'jxl_effort' into 'master'
plug-ins: use a spinscale to change jpegxl's effort parameter See merge request GNOME/gimp!2269
This commit is contained in:
commit
1ca39cf573
1 changed files with 12 additions and 17 deletions
|
@ -207,21 +207,13 @@ jpegxl_create_procedure (GimpPlugIn *plug_in,
|
|||
8, 16, 8,
|
||||
G_PARAM_READWRITE);
|
||||
|
||||
gimp_procedure_add_choice_argument (procedure, "speed",
|
||||
_("Effort/S_peed"),
|
||||
_("Encoder effort setting"),
|
||||
gimp_choice_new_with_values ("lightning", 1, _("lightning (fastest)"), NULL,
|
||||
"thunder", 2, _("thunder"), NULL,
|
||||
"falcon", 3, _("falcon (faster)"), NULL,
|
||||
"cheetah", 4, _("cheetah"), NULL,
|
||||
"hare", 5, _("hare"), NULL,
|
||||
"wombat", 6, _("wombat"), NULL,
|
||||
"squirrel", 7, _("squirrel"), NULL,
|
||||
"kitten", 8, _("kitten"), NULL,
|
||||
"tortoise", 9, _("tortoise (slower)"), NULL,
|
||||
NULL),
|
||||
"squirrel",
|
||||
G_PARAM_READWRITE);
|
||||
gimp_procedure_add_int_argument (procedure, "speed",
|
||||
_("Effort/S_peed"),
|
||||
_("Encoder effort setting:\n"
|
||||
"- 1: faster encoding but bigger files\n"
|
||||
"- 10: slower encoding but smaller files"),
|
||||
1, 10, 7,
|
||||
G_PARAM_READWRITE);
|
||||
|
||||
gimp_procedure_add_boolean_argument (procedure, "cmyk",
|
||||
_("Export as CMY_K"),
|
||||
|
@ -1392,13 +1384,12 @@ export_image (GFile *file,
|
|||
g_object_get (config,
|
||||
"lossless", &lossless,
|
||||
"compression", &compression,
|
||||
"speed", &speed,
|
||||
"save-bit-depth", &bit_depth,
|
||||
"cmyk", &cmyk,
|
||||
"include-exif", &save_exif,
|
||||
"include-xmp", &save_xmp,
|
||||
NULL);
|
||||
speed = gimp_procedure_config_get_choice_id (GIMP_PROCEDURE_CONFIG (config),
|
||||
"speed");
|
||||
|
||||
if (cmyk)
|
||||
{
|
||||
|
@ -2015,6 +2006,10 @@ save_dialog (GimpImage *image,
|
|||
G_BINDING_SYNC_CREATE |
|
||||
G_BINDING_INVERT_BOOLEAN);
|
||||
|
||||
|
||||
gimp_procedure_dialog_get_widget (GIMP_PROCEDURE_DIALOG (dialog),
|
||||
"speed", GIMP_TYPE_SPIN_SCALE);
|
||||
|
||||
store = gimp_int_store_new (_("8 bit/channel"), 8,
|
||||
_("16 bit/channel"), 16,
|
||||
NULL);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue