Gimp-Forum.net
Crop Preset Problem - Printable Version

+- Gimp-Forum.net (https://www.gimp-forum.net)
+-- Forum: GIMP (https://www.gimp-forum.net/Forum-GIMP)
+--- Forum: General questions (https://www.gimp-forum.net/Forum-General-questions)
+--- Thread: Crop Preset Problem (/Thread-Crop-Preset-Problem)



Crop Preset Problem - abcjme - 02-02-2018

I input specific size and position quantities for the crop tool, and I saved that preset. Well, the preset loads just fine, but when I go to crop, I have to press the preset 4 times for it to adjust properly! Ideally, I'd like to just have to press 1 button after I load the preset. Is there a way to get this to work more efficiently?

20 second clip demo'ing the problem: https://www.dropbox.com/s/8phycw6rdry9vvg/gimp-2.mp4?dl=0


RE: Crop Preset Problem - Clydaler - 02-02-2018

Hi There!

I have never used the crop too before, so I decided to experiment and see if I could recreate the problem. I did have the same issues when trying to create a crop preset with the size and position options. It would just create strange size and positions crops that had nothing to do with my preset.

I then decided to change the settings under "Fixed" by checking it, changing the drop menu option to "size", and then inputting the crop dimensions I wanted (I used 1280x720). I also checked the "allow growing" option and kept everything else off.

I managed to get the preset to load and would show my crop box when I clicked and dragged on the canvas, but it would take me clicking the "restore preset" option two times, so when I loaded the preset successfully, I went to Edit -> Preferences -> Tool Options -> Save Tool Options Now, and this would load my preset up on startup where I didn't even need to restore the preset; I just had to click and drag the crop on the screen.

Let me know if any of this helps or you need more explanation with what I did!


RE: Crop Preset Problem - abcjme - 02-02-2018

(02-02-2018, 04:34 PM)Clydaler Wrote: ...

Thanks! I was able to reduce the preset to just 2 clicks after inputting the Fixed > Size rather than the plain Size. I realize that the present wants to only apply 1 dimension at a time: height the 1st click, then width the 2nd click. It seems inefficient, but I can cope with it. Having a preset size was more important to me than a preset position.


RE: Crop Preset Problem - Ofnuts - 02-02-2018

I see something different. The first time I load any preset it fails. But loading any preset after that seems to work?


RE: Crop Preset Problem - Clydaler - 02-02-2018

(02-02-2018, 06:13 PM)Ofnuts Wrote: I see something different. The first time I load any preset it fails. But loading any preset after that seems to work?

Yea I think that is the "2 Clicks" we are referring to.  1st click fails to work fully then the 2nd click allows it to work properly.  I've found at least on my end that saving the desired preset as the default crop setting after the preset starts working properly allows it to work without event having to load/restore a preset.  The bug workarounds make it fun!


RE: Crop Preset Problem - rich2005 - 02-02-2018

The presets obviously try to be universal, so no actual sizes are there, only proportions. Look in your Gimp profile presets folder, they are text files something like.

Code:
# GIMP tool preset file

(stock-id "gimp-tool-crop")
(name "Crop01")
(tool-options "GimpCropOptions"
    (aspect-denominator 1816.000000)
    (aspect-numerator 2216.000000)
    (tool "gimp-crop-tool"))
......

I did look at the video, but a bit fuzzy Wink and yet another layout.

Alternatives.
1. Load all the pages as a stack of layers, one-time-crop. Then use a script to export all the layers to separate files.

2. A script to enforce a fixed crop size and position. see attached (unzip, put in gimp profile scripts folder)

In action short video 2 minutes. https://youtu.be/UULsrYzYIRE

Of course this might not be what you want at all, in which case ignore.


RE: Crop Preset Problem - abcjme - 02-03-2018

(02-02-2018, 07:53 PM)rich2005 Wrote: ...

Ah! A plugin for this task. Ya, that'd work, thanks!