Post Reply 

running gimp from console with a given filter paramters

Mar 9, 2012, 00:19
Post: #1
Question running gimp from console with a given filter paramters
Hi,

How can I apply a filter to a file from console?

I want to apply
Edge-Detected>Difference of Gausians
with parameters
Radius1=72.0px
Radius2=4.0px
with normalize and invent options switched to ON

I can do it from Gimp, but since I have about 1000 files I want to filter i want to write a script.

PS A link to documentation which explains how to do it is welcome,
I honestly tried to google it for an hour but failed, that's why I write it here.

Thanks in advance,
Vitaliy
Find all posts by this user
Quote this message in a reply
Mar 9, 2012, 12:54
Post: #2
RE: running gimp from console with a given filter paramters
As it's a batch process you are wanting, then ImageMagick is probably what you want to use.

I'll leave Offnuts to pass judgment on the ability of ImageMagick to do edge detection, but I'd be surprised if it couldn't.

But back to GIMP, you will need to write a script file. As a starter, have a look at the script I wrote here: http://gimpforums.com/thread-batch-despe...37#pid8937 which should be easy to modify to do edge detection instead of despeckling.

On the subject of learning how to write scripts, GimpChat has a nice collection of links:
http://gimpchat.com/viewtopic.php?f=9&t=724

Kevin
Find all posts by this user
Quote this message in a reply
Mar 11, 2012, 12:51
Post: #3
Question RE: running gimp from console with a given filter paramters
(Mar 9, 2012 12:54)paynekj Wrote:  As it's a batch process you are wanting, then ImageMagick is probably what you want to use.

Kevin

Kevin,

Thank you very much for fast and comprehensive reply,

can you please why you think ImageMagic is better for batch processing?

Thanks in advance
Vitaliy
Find all posts by this user
Quote this message in a reply
Post Reply 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Does gimp have optical filter imitations? godek 1 51 Dec 11, 2017 11:40
Last Post: paynekj
  plugin save for web in Gimp 2.9.6 Dkk 1 225 Oct 19, 2017 09:02
Last Post: paynekj
Sad Strange Filter Behaviour - Filter GUI not interacting SamPat 1 190 Oct 13, 2017 11:46
Last Post: paynekj
  Script-fu: How to create new, addressable layer using gimp-floating-sel-to-layer Bertholom√§us 1 271 Aug 31, 2017 14:32
Last Post: Bertholomäus
  Late binding / COM for opening an image into GIMP? i73 2 224 Aug 4, 2017 17:39
Last Post: i73

Forum Jump:


GIMP ForumPortalArchiveContactTermsRSS