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

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

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

Post 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
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

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

Post by magick »

We can reproduce the problem you posted and have a patch in ImageMagick 6.6.2-2 Beta. Thanks.
Post Reply