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

cropping to pre-set aspect ratio

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.

15 of 15 messages available
Toggle history

Please log in to manage your subscriptions.

cropping to pre-set aspect ratio Bertie Coopersmith 29 Jul 19:05
  cropping to pre-set aspect ratio David Neary 29 Jul 20:02
   cropping to pre-set aspect ratio Raymond Ostertag 29 Jul 22:41
   cropping to pre-set aspect ratio Sven Neumann 29 Jul 23:49
    cropping to pre-set aspect ratio David Neary 30 Jul 00:18
     cropping to pre-set aspect ratio Sven Neumann 30 Jul 00:55
   cropping to pre-set aspect ratio Sven Neumann 30 Jul 00:01
cropping to pre-set aspect ratio Bertie Coopersmith 30 Jul 13:36
  cropping to pre-set aspect ratio David Neary 30 Jul 14:33
   cropping to pre-set aspect ratio Bertie Coopersmith 30 Jul 17:20
   cropping to pre-set aspect ratio Bertie Coopersmith 30 Jul 17:32
    cropping to pre-set aspect ratio David Neary 30 Jul 20:41
     cropping to pre-set aspect ratio David Neary 30 Jul 22:28
     cropping to pre-set aspect ratio Bertie Coopersmith 30 Jul 23:39
      cropping to pre-set aspect ratio Joao S. O. Bueno 31 Jul 00:08
Bertie Coopersmith
2003-07-29 19:05:31 UTC (over 20 years ago)

cropping to pre-set aspect ratio

A suggestion for the Gimp cropping tool dialog:

I would like to be able to pre-set an aspect ratio and then, as one dragged the mouse in the guestimated direction of the diagonal of the cropping rectangle the mouse pointer would move along the actual diagonal so that the rectangle maintains a constant aspect ratio while being dragged. It would not be necessary to do this with continuous great accuracy so long as at the end of the drag any necessary small correction is made and the rectangle is drawn accurately to the specified aspect ratio and its dimensions displayed in the dialog in the usual way.

How would the user set it? perhaps a new item, 'Aspect %', in the menu under the 'px' button. - So minimal change to the present dialog. The on-line help would explain that this meant width/height.

Why do I want it? I use this to crop out thumbnail images, which in my case always have fixed dimensions. The resizing that follows the initial cropping is easily automated (mogrify) but to get the aspect ratio right at present means 1)Drag out estimated rectangle, 2) Enter its dimensions into calculator and divide, 3)Decide whether to increase or decrease width or height and re-iterate.

To minimize image degradation I like to complete the cropping operation in one edit and then do the rescaling.

The use of totally automated thumbnail extraction, i.e. all thumbnails being scaled down copies of the original images, is just not tolerable for me.

David Neary
2003-07-29 20:02:29 UTC (over 20 years ago)

cropping to pre-set aspect ratio

Hi there,

This must be a FAQ - do we have one of those for the user list?

Bertie Coopersmith wrote:

A suggestion for the Gimp cropping tool dialog:

How would the user set it? perhaps a new item, 'Aspect %', in the menu under the 'px' button. - So minimal change to the present dialog. The on-line help would explain that this meant width/height.

It would be nice if the Crop tool supported the Fixed size/Aspect Ratio of the rect select tool. This would more or less be a copy & paste of code from gimprectselecttool.c too...

There is a workaround which allows you to do exactly this. You use the rect select tool with either fixed size or with the ratio you're interested in (for example, when I take photos with my camera, they're 2048x1572, and I crop them to the ratio 13x11 for printing, or sometimes I just set a fixed size of 1820x1540 (which is the same ratio) and position the rectangular selection afterwards to frame the photo as I want.

Then use the Crop tool and click the "From selection" button to have the crop markers align automatically to the rectangular selection you just made. You have a crop at an exact proportion, but you have to pass by the Select tool first. The handy thing about the selection tools is that you can use Alt (or Ctrl-Alt) to move them around. Of course, the pain is that you can't resize them once they're made.

Hope this helps, Dave.

Raymond Ostertag
2003-07-29 22:41:52 UTC (over 20 years ago)

cropping to pre-set aspect ratio

On Tue, 29 Jul 2003 20:02:29 +0200 David Neary wrote:

There is a workaround which allows you to do exactly this. You use the rect select tool with either fixed size or with the ratio you're interested in (for example, when I take photos with my camera, they're 2048x1572, and I crop them to the ratio 13x11 for printing, or sometimes I just set a fixed size of 1820x1540 (which is the same ratio) and position the rectangular selection afterwards to frame the photo as I want.

Then use the Crop tool and click the "From selection" button to have the crop markers align automatically to the rectangular selection you just made. You have a crop at an exact proportion, but you have to pass by the Select tool first. The handy thing about the selection tools is that you can use Alt (or Ctrl-Alt) to move them around. Of course, the pain is that you can't resize them once they're made.

Another way is to reduce the canvas image size then to move the layer in the image. Finally you can resize (or not) the layer size at the image size. (explain in french in the new gimp hs of linuxmag)

@+ Raymond

Sven Neumann
2003-07-29 23:49:42 UTC (over 20 years ago)

cropping to pre-set aspect ratio

Hi,

David Neary writes:

It would be nice if the Crop tool supported the Fixed size/Aspect Ratio of the rect select tool. This would more or less be a copy & paste of code from gimprectselecttool.c too...

Why duplicate code if we can do this cleanly using object hierarchies?

Sven

Sven Neumann
2003-07-30 00:01:58 UTC (over 20 years ago)

cropping to pre-set aspect ratio

Hi,

David Neary writes:

There is a workaround which allows you to do exactly this. You use the rect select tool with either fixed size or with the ratio you're interested in (for example, when I take photos with my camera, they're 2048x1572, and I crop them to the ratio 13x11 for printing, or sometimes I just set a fixed size of 1820x1540 (which is the same ratio) and position the rectangular selection afterwards to frame the photo as I want.

Then use the Crop tool and click the "From selection" button to have the crop markers align automatically to the rectangular selection you just made. You have a crop at an exact proportion, but you have to pass by the Select tool first.

In gimp-1.3 you can crop the bounding-box of the selection using the new menu entries Image->Crop Image or Layer->Crop Layer. If you set keybinding for those the rect-select tool can be nicely used as a better crop tool.

Sven

David Neary
2003-07-30 00:18:17 UTC (over 20 years ago)

cropping to pre-set aspect ratio

Sven Neumann wrote:

Hi,

David Neary writes:

It would be nice if the Crop tool supported the Fixed size/Aspect Ratio of the rect select tool. This would more or less be a copy & paste of code from gimprectselecttool.c too...

Why duplicate code if we can do this cleanly using object hierarchies?

How do you suggest we implement the crop tool as a selection tool? Or do you have a plan for creating a "rectangular thing" interface which both rectselect and crop will implement?

It is not immediately obvious to me how the two can inherit from a common object.

Cheers,
Dave.

Sven Neumann
2003-07-30 00:55:47 UTC (over 20 years ago)

cropping to pre-set aspect ratio

Hi,

David Neary writes:

It is not immediately obvious to me how the two can inherit from a common object.

Me neither, but I wanted to make some people think about it. As you pointed out already, there are several possible solutions. Duplicating the code seems to be the worst.

Sven

Bertie Coopersmith
2003-07-30 13:36:55 UTC (over 20 years ago)

cropping to pre-set aspect ratio

I attempted David Neary's workaround which was to first use the rectselect tool specifying the required aspect ratio. Unfortunately I cannot do this and I think my gimp is a bit broken. This is what I get:- ---------------------

David Neary
2003-07-30 14:33:32 UTC (over 20 years ago)

cropping to pre-set aspect ratio

Bertie Coopersmith wrote:

I attempted David Neary's workaround which was to first use the rectselect tool specifying the required aspect ratio. Unfortunately I cannot do this and I think my gimp is a bit broken. This is what I get:- ---------------------

Bertie Coopersmith
2003-07-30 17:20:36 UTC (over 20 years ago)

cropping to pre-set aspect ratio

On Wed, 30 Jul 2003 14:33:32 +0200 David Neary wrote:

Bertie Coopersmith wrote:

I attempted David Neary's workaround which was to first use the rectselect tool specifying the required aspect ratio. Unfortunately I cannot do this and I think my gimp is a bit broken. This is what I get:- ---------------------

Bertie Coopersmith
2003-07-30 17:32:31 UTC (over 20 years ago)

cropping to pre-set aspect ratio

On Wed, 30 Jul 2003 14:33:32 +0200 David Neary wrote:

I don't know what you're doing - is this when the gimp is starting up that you get this?

Actually, I may have been wrong in my previous reply about this. That error may have occurred on gimp startup without my being aware of it.

Therefore its not clear to me whether it had any connection with the fact that rectselect was a do-nothing. (It did not take me into any further dialog to do with entering an aspect ratio).

Regards, Bertie.

David Neary
2003-07-30 20:41:23 UTC (over 20 years ago)

cropping to pre-set aspect ratio

Bertie Coopersmith wrote:

Actually, I may have been wrong in my previous reply about this. That error may have occurred on gimp startup without my being aware of it.

Therefore its not clear to me whether it had any connection with the fact that rectselect was a do-nothing. (It did not take me into any further dialog to do with entering an aspect ratio).

There is no further dialog - there is a tool options dialog however which opens when you double click on the tool in the toolbox. The rect select tool is the dotted rectangle - the tool which is selected by default at startup. Double click on it, and a dialog opens up (in 1.2) In 1.3, this dialog is active by default, and docked in the main toolbox window.

Cheers, Dave.

David Neary
2003-07-30 22:28:07 UTC (over 20 years ago)

cropping to pre-set aspect ratio

David Neary wrote:

Bertie Coopersmith wrote:

Actually, I may have been wrong in my previous reply about this. That error may have occurred on gimp startup without my being aware of it.

Therefore its not clear to me whether it had any connection with the fact that rectselect was a do-nothing. (It did not take me into any further dialog to do with entering an aspect ratio).

There is no further dialog - there is a tool options dialog however which opens when you double click on the tool in the toolbox. The rect select tool is the dotted rectangle - the tool which is selected by default at startup. Double click on it, and a dialog opens up (in 1.2) In 1.3, this dialog is active by default, and docked in the main toolbox window.

Oh - and if you'd like to get your idea about cropping limited by aspect ratio considered at some future date for inclusion, you should open a report for it in bugzilla (http://bugzilla.gnome.org - click on "Create a bugzilla account", follow the instructions, and then click on "Enter a new bug"). Otherwise, it is likely to get forgotten again... sorry :)

Cheers,
Dave.

Bertie Coopersmith
2003-07-30 23:39:59 UTC (over 20 years ago)

cropping to pre-set aspect ratio

On Wed, 30 Jul 2003 20:41:23 +0200 David Neary wrote:

There is no further dialog - there is a tool options dialog however which opens when you double click on the tool in the toolbox. The rect select tool is the dotted rectangle - the tool which is selected by default at startup. Double click on it, and a dialog opens up (in 1.2) In 1.3, this dialog is active by default, and docked in the main toolbox window.

Thanks for telling me this. (I am not very gui-intuitive.) Now I see what you were talking about. However, unless there is yet another setting that I missed, the behaviours of the rectangular selection tool and the cropping tool are significantly different. I need all the aspects of the cropping tool with its ability to make incremental adjustments but with the one additional feature - constant aspect ratio - that I described in this thread's initial posting. Its the only way, for example that I can crop out one person's face from a group without cutting off a chin or an ear at one extreme or getting too wide a view at the other, and still end up with the correct aspect ratio ready for resizing to my standard thumbnail, say 96x72 pixels. The only way, that is, apart from what I do now with the aid of a pocket calculator.

Regards, Bertie.

Joao S. O. Bueno
2003-07-31 00:08:34 UTC (over 20 years ago)

cropping to pre-set aspect ratio

Bertie Coopersmith wrote:

Thanks for telling me this. (I am not very gui-intuitive.) Now I see what you were talking about. However, unless there is yet another setting that I missed, the behaviours of the rectangular selection tool and the cropping tool are significantly different. I need all the aspects of the cropping tool with its ability to make incremental adjustments but with the one additional feature - constant aspect ratio - that I described in this thread's initial posting. Its the only way, for example that I can crop out one person's face from a group without cutting off a chin or an ear at one extreme or getting too wide a view at the other, and still end up with the correct aspect ratio ready for resizing to my standard thumbnail, say 96x72 pixels. The only way, that is, apart from what I do now with the aid of a pocket calculator.

Regards, Bertie.

Just make a rectangular selection of the portion you would crop - fixing the size/aspect ratio int he tool options and holding shift. Then, click on the crop,select a random area, and click on the "from selection" buttom on ther crop-confirm dialog.

(BTW, do not credit me on this answer, I am just summing up what has been around on this thread)

Regards,

JS ->