Page 1 of 1

Can not unset Image Artifacts (EG: -set option:... )

Posted: 2010-05-31T18:55:38-07:00
by anthony
You can set a Image Artifacts (for operators) using

Code: Select all

-set option:xyzzy 1
or

Code: Select all

-define xyzzy=1
EG:

Code: Select all

convert xc: -set option:xyzzy 1 -define foobar=1 -verbose info:

Code: Select all

...
  Artifacts:
    verbose: true
    xyzzy: 1
    foobar: 1
...
However you can not unset them using +set or +define

Code: Select all

convert xc: -set option:xyzzy 1 +set option:xyzzy -verbose info:

Code: Select all

...
  Artifacts:
    verbose: true
    xyzzy: 1
...

Code: Select all

convert xc: -define xyzzy=1 +define xyzzy -verbose info:

Code: Select all

convert: no such option `xyzzy' @ error/convert.c/ConvertImageCommand/1147.
This works fine for normal "Image Property" settings..

Code: Select all

convert xc: -set xyzzy 1 -verbose info:

Code: Select all

...
  Properties:
    date:create: 2010-06-01T11:56:08+10:00
    date:modify: 2010-06-01T11:56:08+10:00
    signature: ce8bee525d6736e9825261b19a9b51719f9dc4bb728e95cf7067a2142b03b362
    xyzzy: 1

Code: Select all

convert xc: -set xyzzy 1 +set xyzzy -verbose info:

Code: Select all

...
  Properties:
    date:create: 2010-06-01T11:56:08+10:00
    date:modify: 2010-06-01T11:56:08+10:00
    signature: ce8bee525d6736e9825261b19a9b51719f9dc4bb728e95cf7067a2142b03b362

Re: Can not unset Image Artifacts (EG: -set option:... )

Posted: 2010-06-01T05:57:50-07:00
by magick
We can reproduce the problem you posted and have a patch in ImageMagick 6.6.2-2 Beta. Thanks.