Bug 352823 - Changing image mode discards text layer information
For conversions that have no dither options (like RGB -> GRAY or u8 -> u16), always preserve text editability, for conversions that have dither options (like RGB -> INDEXED or u16 -> u8), give the user the choice whether to enable dithering.
This commit is contained in:
@ -38,7 +38,7 @@ HELP
|
||||
if (gimp_pdb_image_is_not_base_type (image, GIMP_RGB, error))
|
||||
{
|
||||
success = gimp_image_convert_type (image, GIMP_RGB,
|
||||
0, 0, FALSE, FALSE, 0, NULL,
|
||||
0, 0, FALSE, FALSE, FALSE, 0, NULL,
|
||||
NULL, error);
|
||||
}
|
||||
else
|
||||
@ -72,7 +72,7 @@ HELP
|
||||
if (gimp_pdb_image_is_not_base_type (image, GIMP_GRAY, error))
|
||||
{
|
||||
success = gimp_image_convert_type (image, GIMP_GRAY,
|
||||
0, 0, FALSE, FALSE, 0, NULL,
|
||||
0, 0, FALSE, FALSE, FALSE, 0, NULL,
|
||||
NULL, error);
|
||||
}
|
||||
else
|
||||
@ -170,7 +170,7 @@ HELP
|
||||
if (success)
|
||||
success = gimp_image_convert_type (image, GIMP_INDEXED,
|
||||
num_cols, dither_type,
|
||||
alpha_dither, remove_unused,
|
||||
alpha_dither, FALSE, remove_unused,
|
||||
palette_type, pal,
|
||||
NULL, error);
|
||||
}
|
||||
@ -246,7 +246,7 @@ HELP
|
||||
if (gimp_pdb_image_is_not_base_type (image, GIMP_INDEXED, error) &&
|
||||
gimp_pdb_image_is_not_precision (image, precision, error))
|
||||
{
|
||||
gimp_image_convert_precision (image, precision, 0, 0, NULL);
|
||||
gimp_image_convert_precision (image, precision, 0, 0, 0, NULL);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user