It is currently Sun Jun 07, 2026 1:26 pm


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: [Solved] Resize layer does not resize its picture
PostPosted: Sat Jun 06, 2026 2:08 pm  (#1) 
Offline
New Member

Joined: Jun 06, 2026
Posts: 2
Hello,
I am new to GIMP-scripting, but advanced in multiple programming languages. I managed to create a V3 script-fu function creating an image with several text layers, a few layers to draw on and a layer containing the picture. All layers can be scaled an placed individually as needed, but:
the picture in my layer does not scale/resize. The layer contour is resized however.
My relevant code lines:
(set! theFoto (gimp-file-load-layer 0 theImage theFile))
(gimp-image-insert-layer theImage theFoto 0 0)
(gimp-layer-resize theFoto 3000 1600 0 0)

What is it that I am missing here?


Last edited by WP_Jules on Sun Jun 07, 2026 2:55 am, edited 1 time in total.

Share on Facebook Share on Twitter Share on Orkut Share on Digg Share on MySpace Share on Delicious Share on Technorati
Top
 Post subject: Re: Resize layer does not resize its picture
PostPosted: Sat Jun 06, 2026 8:09 pm  (#2) 
Offline
Global Moderator
User avatar

Joined: May 16, 2010
Posts: 16017
Perhaps try,
(gimp-image-resize)

_________________
Image


Top
 Post subject: Re: Resize layer does not resize its picture
PostPosted: Sun Jun 07, 2026 12:06 am  (#3) 
Offline
GimpChat Member
User avatar

Joined: Dec 09, 2018
Posts: 734
WP_Jules wrote:
Hello,
I am new to GIMP-scripting, but advanced in multiple programming languages. I managed to create a V3 script-fu function creating an image with several text layers, a few layers to draw on and a layer containing the picture. All layers can be scaled an placed individually as needed, but:
the picture in my layer does not scale/resize. The layer contour is resized however.
My relevant code lines:
(set! theFoto (gimp-file-load-layer 0 theImage theFile))
(gimp-image-insert-layer theImage theFoto 0 0)
(gimp-layer-resize theFoto 3000 1600 0 0)

What is it that I am missing here?

Resize and scale are two different things.
Resize changes the layer's size (with, height, offsets) as you have already seen, it doesn't scale the layer's contents.
If you want to scale use for example gimp-layer-scale.


Top
 Post subject: Re: Resize layer does not resize its picture
PostPosted: Sun Jun 07, 2026 2:50 am  (#4) 
Offline
New Member

Joined: Jun 06, 2026
Posts: 2
@teapot: Thnkx ! Thatś what I needed.

@rod: I only needed 1 layer to scale, not the whole image.


Top
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC - 5 hours [ DST ]



* Login  



Powered by phpBB3 © phpBB Group