Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Batch processing - detecting various colours to crop to edge of scanned document JPG?
#2
(06-29-2022, 11:43 AM)mkilpatr Wrote: By the way, there is an alternatve. As all the scans are in the same orientation - any excess border is always to the right and to the bottom of the manuscript paper, is it possible to have a script that runs in the graphical user interface such that GIMP can bring up each image in turn from the folder, allow me to click on the bottom right corner of the paper and for GIMP then to crop and save to that corner, save the result, close it and and bring up the next image without lots of mouse clicks?

That would be perfectly acceptable.
Just a thought...
First install the Ofnuts script ofn-export-layers.zip ➤ https://sourceforge.net/projects/gimp-to...ayers.zip/
Once it's done...
Open one of your directory as layers Filters ➤ Open as Layers a window opens click on the top of the image's list to select it, then hit the Shift key and click on the bottom image while the Shift key is down to select all the image in between as well, then click the button open, all your images in the folder will be opened stacked as layer but only 1 image, all stacked above each other as layer, use the Crop tool for the whole image (so you just cut once with the mouse), then use the Ofnuts' script to export each layer as an image

   
Reply


Messages In This Thread
RE: Batch processing - detecting various colours to crop to edge of scanned document JPG? - by PixLab - 06-29-2022, 12:31 PM

Forum Jump: