Post Reply 

Batch processing

Jan 18, 2014, 23:54
Post: #1
Batch processing
Hi
Please could I have some help.
I would like to repeat the following procedure on a large number of images but I am unable to find a way of batch processing to do this for me. The idea is to end up with a small plain boarder around the original image. This is to prevent any image being lost when I order prints due to cropping.
Thank you in advance

1) open image
2) copy the image
3) create a new image 0.5" larger than the original
4) paste the copied image into the larger new image
5) resize the new image to a given size for example 10x8 for printing
6) Save the image under new name or in a different folder to the original
Find all posts by this user
Quote this message in a reply
Jan 19, 2014, 11:05
Post: #2
RE: Batch processing
Quote:...The idea is to end up with a small plain boarder around the original image. This is to prevent any image being lost when I order prints due to cropping.

You can get the essence of this using BIMP
http://www.alessandrofrancesconi.it/projects/bimp/ There is a precompiled windows version there. Not difficult to compile if using linux.

This is the Bimp menu: http://i.imgur.com/d1oOZp7.jpg Lots of options including 'Other Gimp procedure'
You need this one to add the border. As Ofnuts states, no good thinking in real world dimensions with any bitmap application. You need to decide on a number of pixels which will in turn depend on the original image size. That procedure is the same as Filters -> Decor -> Add border, so try a sample image there to get a value. Looks like this in BIMP http://i.imgur.com/hBQTT5d.jpg

Next would be a resize for the printer, I would set size in pixels (8"x300=2400), height only, preserve aspect ratio, use Sinc, maybe change the dpi to 300 although most printing shops ignore this setting anyway. http://i.imgur.com/63k2R56.jpg You do not say if scaling up or down, modern camera being what they are, probably scaling down.

Then you can save in a variety of formats and settings. http://i.imgur.com/uVEpAiQ.jpg

What I have not shown. You can add a renaming template, save to a different folder, save the BIMP sequence of procedures to use again.

Does not break any records for speed buts gets there.

** https://www.gimp-forum.net/ now answering questions**
Find all posts by this user
Quote this message in a reply
Jan 19, 2014, 12:38
Post: #3
RE: Batch processing
Thank you for both your replies

rich2005 I like your approach but looking at bimp I do not think that Decor is supported which is a real shame as this would have been an great approach which would have saved me a lot of time. However please feel free to correct me if I am wrong as I can reinstall BIMP

ofnuts

Thanks I will look into using this program, I am trying to add a boarder around images so when they are printed the image is not cropped, which is nearly always the case even if only very slightly. I was using 10x8 purley for example purposes as a print size.
Find all posts by this user
Quote this message in a reply
Jan 19, 2014, 12:59
Post: #4
RE: Batch processing
Quote:.. I do not think that Decor is supported which is a real shame as this would have been an great approach which would have saved me a lot of time. However please feel free to correct me if I am wrong as I can reinstall BIMP

That was this one
[Image: hBQTT5d.jpg]

use the search facility and where script-fu-addborder is the decor -> add border filter. The settings are the same.

I had a quick look at the output and BIMP does reorder the procedures and it looks like the 100 pix border is added after rescaling to 2400 ie. the image ends up 2600 depth. Nothing that cannot be allowed for.

** https://www.gimp-forum.net/ now answering questions**
Find all posts by this user
Quote this message in a reply
Jan 19, 2014, 13:28
Post: #5
RE: Batch processing
Thanks rich2005 updated bimp to 1.7 and I can now find add border command
result
Find all posts by this user
Quote this message in a reply
Jan 19, 2014, 13:39
Post: #6
RE: Batch processing
Dear me, stuggling with the bordercolor of all things.

Just to show willing this is a basic command in ImageMagick. This would be run from a terminal in the folder with all the images.
Code:
convert *.jpg -resize x2200^ -bordercolor "#FFFFFF" -border 100 new.jpg
*.jpg is the format of the images, could be any supported format.
the ^ in -resize scles the shorter side to 2200 pix and keeps the aspect ratio
-border color in hex and enclosed in quotes and before the -border switch
border size in pixels
new.jpg will output new-0.jpg, new-1.jpg..etc but could be different format.

This is absolute basic, there are ways of reading the file name and writing back to the new name and some very complicated versions for scaling .

** https://www.gimp-forum.net/ now answering questions**
Find all posts by this user
Quote this message in a reply
Post Reply 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Calling 3rd party plugin for batch mode INV_SIG 3 542 Sep 24, 2014 09:09
Last Post: rich2005
  Batch Merge Layer Group stigzler 9 1,610 Jul 5, 2014 13:04
Last Post: stigzler
  Batch Mode DPI Setting Change aimless 1 855 Jun 10, 2014 16:31
Last Post: rich2005
  Batch change a color to another color with alpha jmanpenilla 3 1,095 May 25, 2014 09:26
Last Post: rich2005
  automatically (batch) replace a colour in hundreds of images fnupfnup 5 1,065 Oct 3, 2013 11:45
Last Post: rich2005

Forum Jump:


GIMP ForumPortalArchiveContactTermsRSS