RSS/Atom feed Twitter
Site is read-only, email is disabled

Enlarge image canvas with gimp_image_resize procedure

This discussion is connected to the gimp-developer-list.gnome.org mailing list which is provided by the GIMP developers and not related to gimpusers.com.

This is a read-only list on gimpusers.com so this discussion thread is read-only, too.

3 of 3 messages available
Toggle history

Please log in to manage your subscriptions.

Enlarge image canvas with gimp_image_resize procedure Alessandro Francesconi 27 Feb 09:53
  Enlarge image canvas with gimp_image_resize procedure Ofnuts 27 Feb 22:48
  Enlarge image canvas with gimp_image_resize procedure Michael Henning 28 Feb 02:02
Alessandro Francesconi
2014-02-27 09:53:30 UTC (about 10 years ago)

Enlarge image canvas with gimp_image_resize procedure

I need to enlarge the area of an image using one of the available GIMP’s procedures. So, instead of using the GIMP’s graphical interface and this tool http://docs.gimp.org/en/gimp-image-resize.html, I want to be able to have the same effects on a C code.

The function that should be called is this one, right? http://oldhome.schmorp.de/marc/pdb/gimp_image_resize.html

But it works when I need to shrink the canvas: on a 640x480 image, if I input smaller values the canvas is actually cut. Instead, if I want to add a 20px transparent border along the area (so I type 680 and 520 px, also with consistent offset values), the function just returns the original image.

How does it work? Thanks

Ale

Ofnuts
2014-02-27 22:48:34 UTC (about 10 years ago)

Enlarge image canvas with gimp_image_resize procedure

On 02/27/2014 10:53 AM, Alessandro Francesconi wrote:

I need to enlarge the area of an image using one of the available GIMP’s procedures. So, instead of using the GIMP’s graphical interface and this tool http://docs.gimp.org/en/gimp-image-resize.html, I want to be able to have the same effects on a C code.

The function that should be called is this one, right? http://oldhome.schmorp.de/marc/pdb/gimp_image_resize.html

But it works when I need to shrink the canvas: on a 640x480 image, if I input smaller values the canvas is actually cut. Instead, if I want to add a 20px transparent border along the area (so I type 680 and 520 px, also with consistent offset values), the function just returns the original image.

How does it work? Thanks

Don't know about C, but that function works as advertised in a Python script, with a smaller or larger canvas.

Michael Henning
2014-02-28 02:02:03 UTC (about 10 years ago)

Enlarge image canvas with gimp_image_resize procedure

Are you also growing the layer boundaries? If you grow the canvas, but not the layer boundaries, you won't be able to draw on the new canvas area.

-- drawoc

On Thu, Feb 27, 2014 at 4:53 AM, Alessandro Francesconi wrote:

I need to enlarge the area of an image using one of the available GIMP's procedures. So, instead of using the GIMP's graphical interface and this tool http://docs.gimp.org/en/gimp-image-resize.html, I want to be able to have the same effects on a C code.

The function that should be called is this one, right? http://oldhome.schmorp.de/marc/pdb/gimp_image_resize.html

But it works when I need to shrink the canvas: on a 640x480 image, if I input smaller values the canvas is actually cut. Instead, if I want to add a 20px transparent border along the area (so I type 680 and 520 px, also with consistent offset values), the function just returns the original image.

How does it work? Thanks

Ale _______________________________________________ gimp-developer-list mailing list
List address: gimp-developer-list@gnome.org List membership: https://mail.gnome.org/mailman/listinfo/gimp-developer-list List archives: https://mail.gnome.org/archives/gimp-developer-list