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: 6452

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 ...
by Erik
2018-03-15T00:42:30-07:00
Forum: Users
Topic: Trimming Noisy Images - another robust solution
Replies: 9
Views: 71058

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 ...
by Erik
2016-06-05T08:06:56-07:00
Forum: Users
Topic: Morphology: replace pixel-pattern by another pattern
Replies: 1
Views: 4324

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 ...
by Erik
2016-05-27T00:39:35-07:00
Forum: Users
Topic: BW-TIF to BW-JP2 conversion
Replies: 2
Views: 5931

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 ...
by Erik
2016-05-26T08:32:46-07:00
Forum: Users
Topic: BW-TIF to BW-JP2 conversion
Replies: 2
Views: 5931

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 ...
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: 4063

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 ...
by Erik
2016-05-11T12:03:30-07:00
Forum: Users
Topic: Removing spots below certain dimension in BW image
Replies: 2
Views: 4492

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 ...
by Erik
2016-05-08T09:56:40-07:00
Forum: Users
Topic: Border width depends on image dimensions
Replies: 5
Views: 8303

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: 8303

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 ...
by Erik
2016-05-08T03:38:33-07:00
Forum: Users
Topic: Border width depends on image dimensions
Replies: 5
Views: 8303

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 ...
by Erik
2016-05-01T04:14:35-07:00
Forum: Users
Topic: Scanned book: removing spots
Replies: 5
Views: 9268

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: 9268

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 ...