Jeff Trefftzs <[EMAIL PROTECTED]> writes:

> making sure that the layer from which you get your selection is the
> same size as the image, using (perl-fu-layer-to-image-size 1) .
> This works on the active layer only, and may not work on windows
> systems lacking perl-fu support.

oh, come on. calling perl to resize the layer to the image size is a
bit of an overkill if it can also be done in one or two lines of
scheme. The following code is untested, but might actually work:

  (gimp-layer-resize layer (car (gimp-image-width image))
                           (car (gimp-image-height image))
                           (- (car (gimp-layer-offsets layer)))
                           (- (cadr (gimp-layer-offsets layer))))

Salut, Sven
Gimp-developer mailing list

Reply via email to