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

splitting image and saving to separare files

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.

3 of 3 messages available
Toggle history

Please log in to manage your subscriptions.

splitting image and saving to separare files EddieM 13 Feb 03:19
  splitting image and saving to separare files rich404 13 Feb 11:58
   splitting image and saving to separare files EddieM 18 Feb 00:25
2019-02-13 03:19:01 UTC (about 5 years ago)
postings
2

splitting image and saving to separare files

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

rich404
2019-02-13 11:58:47 UTC (about 5 years ago)

splitting image and saving to separare files

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.

2019-02-18 00:25:26 UTC (about 5 years ago)
postings
2

splitting image and saving to separare files

Thanks. for your reply. Much appreciated. I will try it. and let you know