Script giving different results

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
shivendra
Posts: 1
Joined: 2014-04-28T06:36:51-07:00
Authentication code: 6789

Script giving different results

Post by shivendra »

I am using this script

Code: Select all

#!/bin/bash
convert "$1" -morphology Convolve DoG:15,100,0 -negate -normalize -blur 0x1 -channel RBG -level 60%,91%,0.1 "$2"
On one of the input it gave this result-
Input
Image
Output
Image

While on the other one it gave
Input
Image
Output
Image

What should I do different to clean up the green board image like the whiteboard one?
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Script giving different results

Post by snibgo »

"-negate" the input immediately after reading it. Then you get black characters on a white background. If you want white on black, "-negate" again immediately before the final write.
snibgo's IM pages: im.snibgo.com
Post Reply