mirror of
https://gitlab.gnome.org/GNOME/gimp
synced 2024-10-22 20:41:43 +00:00
Bug 565138 – python-fu-foggify does not check if image is in rgb mode
2008-12-21 Sven Neumann <sven@gimp.org> Bug 565138 – python-fu-foggify does not check if image is in rgb mode * plug-ins/pygimp/plug-ins/foggify.py (foggify): fixed handling of grayscale images. svn path=/trunk/; revision=27817
This commit is contained in:
parent
4255e43681
commit
5700bd6003
|
@ -1,3 +1,10 @@
|
|||
2008-12-21 Sven Neumann <sven@gimp.org>
|
||||
|
||||
Bug 565138 – python-fu-foggify does not check if image is in rgb mode
|
||||
|
||||
* plug-ins/pygimp/plug-ins/foggify.py (foggify): fixed handling of
|
||||
grayscale images.
|
||||
|
||||
2008-12-20 Martin Nordholts <martinn@svn.gnome.org>
|
||||
|
||||
Bug 555954 – Merge Tagging of Gimp Resources GSoC Project
|
||||
|
|
|
@ -27,8 +27,12 @@ def foggify(img, layer, name, colour, turbulence, opacity):
|
|||
gimp.context_push()
|
||||
img.undo_group_start()
|
||||
|
||||
fog = gimp.Layer(img, name, layer.width, layer.height, RGBA_IMAGE,
|
||||
opacity, NORMAL_MODE)
|
||||
if img.base_type is RGB:
|
||||
type = RGBA_IMAGE
|
||||
else:
|
||||
type = GRAYA_IMAGE
|
||||
fog = gimp.Layer(img, name,
|
||||
layer.width, layer.height, type, opacity, NORMAL_MODE)
|
||||
fog.fill(TRANSPARENT_FILL)
|
||||
img.add_layer(fog, 0)
|
||||
|
||||
|
|
Loading…
Reference in a new issue