Search found 12 matches

by Erik
2018-03-23T02:31:53-07:00
Forum: Users
Topic: Setting gravity depending on image size
Replies: 2
Views: 2868

Setting gravity depending on image size

I'd like to set the gravity depending on the size of the image. I tried fx and set:option, but IM reported errors. I could solve that problem with additional code, but I would prefer a pure IM solution. Is there a way to achieve this? convert -units PixelsPerInch $infile \ -background white \ -gravi...
by Erik
2018-03-15T00:42:30-07:00
Forum: Users
Topic: Trimming Noisy Images - another robust solution
Replies: 9
Views: 29637

Re: Trimming Noisy Images - another robust solution

Version: ImageMagick 7.0.7-25 Q8 x86_64 2018-03-05 http://www.imagemagick.org Copyright: © 1999-2018 ImageMagick Studio LLC License: http://www.imagemagick.org/script/license.php Features: Cipher DPC HDRI OpenMP The following problem is most likely based on my IM version. I consulted the documentat...
by Erik
2016-06-05T08:06:56-07:00
Forum: Users
Topic: Morphology: replace pixel-pattern by another pattern
Replies: 1
Views: 1651

Morphology: replace pixel-pattern by another pattern

Version: ImageMagick 6.9.4-1 Q16 x86_64 2016-05-17 http://www.imagemagick.org Copyright: Copyright (C) 1999-2016 ImageMagick Studio LLC License: http://www.imagemagick.org/script/license.php Features: Cipher DPC Modules OpenMP Delegates (built-in): bzlib freetype jng jp2 jpeg lcms ltdl lzma png tif...
by Erik
2016-05-27T00:39:35-07:00
Forum: Users
Topic: BW-TIF to BW-JP2 conversion
Replies: 2
Views: 1957

Re: BW-TIF to BW-JP2 conversion

Thank you, that set me on the right track. As it turns out, using "-depth 8" only is sufficient, as this allows the gray-max-value to reach 255. I wasn't aware that the "depth" is related to the min/max values. Gray: min: 0 (0) max: 255 (1) mean: 228.765 (0.897117) standard deviation: 77.4704 (0.303...
by Erik
2016-05-26T08:32:46-07:00
Forum: Users
Topic: BW-TIF to BW-JP2 conversion
Replies: 2
Views: 1957

BW-TIF to BW-JP2 conversion

Version: ImageMagick 6.9.4-1 Q16 x86_64 2016-05-17 http://www.imagemagick.org Copyright: Copyright (C) 1999-2016 ImageMagick Studio LLC License: http://www.imagemagick.org/script/license.php Features: Cipher DPC Modules OpenMP Delegates (built-in): bzlib freetype jng jp2 jpeg lcms ltdl lzma png tif...
by Erik
2016-05-20T10:34:47-07:00
Forum: Users
Topic: Setting pixels to a new colour, if a specific channel value is dominant
Replies: 1
Views: 1449

Setting pixels to a new colour, if a specific channel value is dominant

Hello, I process scanned pages of text. Some of these pages show blue pen notes, which I want to replace with another colour. Every pixel within a blue pen note shows a higher value in the Blue channel, compared to Red and Green channels. I'd like to use this ratio as a pixel selector, as this is th...
by Erik
2016-05-11T12:03:30-07:00
Forum: Users
Topic: Removing spots below certain dimension in BW image
Replies: 2
Views: 1423

Removing spots below certain dimension in BW image

Version: ImageMagick 6.9.4-1 Q8 x86_64 2016-05-11 http://www.imagemagick.org Copyright: Copyright (C) 1999-2016 ImageMagick Studio LLC License: http://www.imagemagick.org/script/license.php Features: Cipher DPC Modules OpenMP Delegates (built-in): bzlib freetype jng jp2 jpeg lcms ltdl lzma png webp...
by Erik
2016-05-08T09:56:40-07:00
Forum: Users
Topic: Border width depends on image dimensions
Replies: 5
Views: 2398

Re: Border width depends on image dimensions

Yay, it works.

Thanks!
by Erik
2016-05-08T07:17:17-07:00
Forum: Users
Topic: Border width depends on image dimensions
Replies: 5
Views: 2398

Re: Border width depends on image dimensions

Thanks, I had to use compile IM 7 on OSX for that. Version: ImageMagick 7.0.1-1 Q8 x86_64 2016-05-08 http://www.imagemagick.org Copyright: Copyright (C) 1999-2016 ImageMagick Studio LLC License: http://www.imagemagick.org/script/license.php Features: Cipher DPC HDRI Delegates (built-in): bzlib djvu ...
by Erik
2016-05-08T03:38:33-07:00
Forum: Users
Topic: Border width depends on image dimensions
Replies: 5
Views: 2398

Border width depends on image dimensions

Hello, I am trying add a border on a specific side. And the border width has to depend on the dimensions of the current image. The two snippets below result in an error "mogrify: invalid argument for ...". Obviously the fx is not allowed here. I read that distort would allow for adding borders, but ...
by Erik
2016-05-01T04:14:35-07:00
Forum: Users
Topic: Scanned book: removing spots
Replies: 5
Views: 3050

Re: Scanned book: removing spots

That works well, thank you both for your help :-)
by Erik
2016-04-30T01:37:54-07:00
Forum: Users
Topic: Scanned book: removing spots
Replies: 5
Views: 3050

Scanned book: removing spots

Version: ImageMagick 6.9.3-7 Q8 x86_64 2016-04-29 http://www.imagemagick.org Copyright: Copyright (C) 1999-2016 ImageMagick Studio LLC License: http://www.imagemagick.org/script/license.php Features: Cipher DPC Modules OpenMP Delegates (built-in): bzlib freetype jng jp2 jpeg lcms ltdl lzma png webp...