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

Reduce or crop an image by N pixels?

This discussion is connected to the gimp-user-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.

4 of 4 messages available
Toggle history

Please log in to manage your subscriptions.

Reduce or crop an image by N pixels? vr 20 Nov 16:03
  Reduce or crop an image by N pixels? vr 20 Nov 16:39
   Reduce or crop an image by N pixels? saulgoode@flashingtwelve.brickfilms.com 20 Nov 17:53
   Reduce or crop an image by N pixels? Akkana Peck 21 Nov 00:22
vr
2009-11-20 16:03:37 UTC (about 15 years ago)

Reduce or crop an image by N pixels?

I've used edit mode of a program called Thumbsplus to take an image of 200H x 210W and reduce image by 10W starting from the left. Is there a similar feature in the crop tool of GIMP for quickly reducing a height or width without free selecting the whole image minus 10W? When I try the "fixed" I seem to have trouble getting my selection area lined up with the image right side.

vr
2009-11-20 16:39:11 UTC (about 15 years ago)

Reduce or crop an image by N pixels?

On Fri, 20 Nov 2009 10:03:37 -0500, vr wrote:

I've used edit mode of a program called Thumbsplus to take an image of 200H x 210W and reduce image by 10W starting from the left. Is there a similar feature in the crop tool of GIMP for quickly reducing a height

or

width without free selecting the whole image minus 10W? When I try the "fixed" I seem to have trouble getting my selection area lined up with

the

image right side.

Oops, after poking around a bit more I realize now that the actual crop tool's selector is more friendly than the selection tool selector for what I'm trying to do. I guess the real question I'm asking is how do you get the selection tool to operate like the crop tools selector? Meaning, not go outside the perimeter of the layer you want to select within?

saulgoode@flashingtwelve.brickfilms.com
2009-11-20 17:53:49 UTC (about 15 years ago)

Reduce or crop an image by N pixels?

Quoting vr :

Oops, after poking around a bit more I realize now that the actual crop tool's selector is more friendly than the selection tool selector for what I'm trying to do. I guess the real question I'm asking is how do you get the selection tool to operate like the crop tools selector? Meaning, not go outside the perimeter of the layer you want to select within?

I don't believe that is currently possible. If your layer is completely opaque, you could perform a "Layer->Transparency->Intersect with selection" after having making your selection (this will "trim" the selection to lie within the layer's borders).

The following script may prove a slightly better solution, as it will also work with non-opaque layers. The command appears as "Within Layer" under the Select Menu. (Note: if there is no selection when the script is run, the entire layer will be selected.)

http://www.flashingtwelve.brickfilms.com/GIMP/Scripts/sg-select-within-layer.scm

Akkana Peck
2009-11-21 00:22:44 UTC (about 15 years ago)

Reduce or crop an image by N pixels?

vr writes:

Oops, after poking around a bit more I realize now that the actual crop tool's selector is more friendly than the selection tool selector for what I'm trying to do. I guess the real question I'm asking is how do you get the selection tool to operate like the crop tools selector? Meaning, not go outside the perimeter of the layer you want to select within?

The closest I've found is View->Snap to Canvas Edges. It's not perfect -- you still have to be fairly careful and occasionally it doesn't snap at all -- but it will certainly help you avoid going over the edges.

In 2.6, you have to set it on each image separately. In 2.8 it will be possible to make that the default. Though you may not want that; I find I always want it for Rect Select, but it gets in the way for the Move tool, so I have to keep toggling the option.

...Akkana