Can invert color intensities with -negate
option only)
convert input.png -negate output.png
Requires the -channel
option with -negate
)
convert input.png -channel RGB -negate output.png
This is because the default active channels contain transparency_(opaque/alpha)_ in ImageMagick 7.x
ImageMagick6: DefaultChannels = ((AllChannels | SyncChannels) &~ OpacityChannel)
ImageMagick7: DefaultChannels = AllChannels
Most algorithms update the red
, green
, blue
, black
(for CMYK), and alpha channels. Usability of -negate
seems to be sacrificed for overall consistency.