[gimp] plug-ins: replace deprecated enum values in py-slice plug-in
- From: Thomas Manni <tmanni src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] plug-ins: replace deprecated enum values in py-slice plug-in
- Date: Wed, 19 Apr 2017 09:53:01 +0000 (UTC)
commit f981f83fbc30772cfad7a315de734fbde1ed303f
Author: Thomas Manni <thomas manni free fr>
Date: Mon Apr 17 11:31:24 2017 +0200
plug-ins: replace deprecated enum values in py-slice plug-in
plug-ins/pygimp/plug-ins/py-slice.py | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/plug-ins/pygimp/plug-ins/py-slice.py b/plug-ins/pygimp/plug-ins/py-slice.py
index 13ae267..c4f198f 100755
--- a/plug-ins/pygimp/plug-ins/py-slice.py
+++ b/plug-ins/pygimp/plug-ins/py-slice.py
@@ -173,7 +173,8 @@ def slice(image, drawable, image_path, image_basename, image_extension,
temp_image.disable_undo()
temp_image.crop(right - left, bottom - top, left, top)
if image_extension == "gif" and image.base_type == RGB:
- pdb.gimp_image_convert_indexed (temp_image,NO_DITHER, MAKE_PALETTE, 255,
+ pdb.gimp_image_convert_indexed (temp_image, CONVERT_DITHER_NONE,
+ CONVERT_PALETTE_GENERATE, 255,
True, False, False)
if image_extension == "jpg" and image.base_type == INDEXED:
pdb.gimp_image_convert_rgb (temp_image)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]