> I don't like how you nest the various let*-statements. That makes the
> code hard to track.
>
> It would be better if you have some dummy variable declarations in your
> outer let*-statement and then use set! to redefine the values.
>
> Also note that the use of "25" for the mode is not nice, you
Thomas DuBuisson (thomas.dubuis...@gmail.com) wrote:
> - CODE --
(let* ((image (car (gimp-file-load RUN-NONINTERACTIVE
"image.png" "image.png")))
(layer0 (car (gimp-image-get-active-layer image)))
)
(let* ((layer1 (car (gimp-image-flatten
Update 2:
1) Exceptions
The macro (not sure of the underlying primitives) "catch" will catch
errors. The web page didn't even call them exceptions, which explains
why I/google didn't find it quickly.
Ex: when converting an image that might already be RGB to RGB:
(catch (gimp-image-convert
Update:
1) The question regarding exceptions remains - there are too many
corner cases, mostly undocumented, so it would be nice to ignore them
silently.
2) I see my fix was almost right but I forgot to take the head of the list:
"(car (gimp-image-get-active-drawable image))" is what I want, not