Hi Forum,
I'm a newbie with basic GIMP knowledge.
I have scanned a whole stack of business cards 10 to a (A4 page), jpeg
image and now I need to split each business card off and save to it's
own jpeg file.
I'm looking for help on how I might approach this and also how I can
automate the task as each A4 scan will have the cards in the same
position.
Thanks in advance
There is an ancient script, DivideScannedImages.scm but more for 2 or 3 scanned photographs where there is a definite border to the images.
To get 10 biz cards on a A4 scan they must be almost butting together and unless you put a coloured background when scanning, liable to merge into the background.
What you can do is set some guides, drag in from the rulers
Use the built-in Guillotine function Image -> Transform -> Guillotine to split up into separate images. After use https://i.imgur.com/1Bh6Bwv.jpg
Then a script to Export the individual images to separate files.
A couple of old plugins/scripts to use. Attached, unzip and :-
gat_tools-210.py to save / load a set of guides. That goes in your Gimp user profile C:\Users\"yourname"\AppData\Roaming\GIMP\2.10\plug-ins
screenshot: https://i.imgur.com/3wlHRN1.jpg
sg-save-all.scm to export all open images. That goes in C:\Users\"yourname"\AppData\Roaming\GIMP\2.10\scripts
screenshot: https://i.imgur.com/ijlNcmr.jpg
-----------------------
Automation: Not much I fear, unless you go to some other forum and beg for someone to write a script.
What you can do is assign some keyboard shortcuts: example: https://i.imgur.com/wosEiCg.jpg
Then you can do a sequence of say:
A - open dialogue to load the guides you saved.
S - Invoke the Gimp Guillotine, + then you will have to remove the scan for
D - Bring up the 'Save-All-Open' dialogue.
close everything, start again on next scan.