-colorspace CMYK -blur fails silently

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
HugoRune
Posts: 90
Joined: 2009-03-11T02:45:12-07:00
Authentication code: 8675309

-colorspace CMYK -blur fails silently

Post by HugoRune »

i did some experiments manipulating images in the CMYK space, and came upon the following:

convert logo: -colorspace CMYK -channel CMY -blur 0x10 test.png
this works as expected, producing an image where the colors are blured but black is not

convert logo: -colorspace CMYK -channel K -blur 0x10 test.png
This does not work (produces no output and no error)

Althought strangely it does work with some images, but with incorrect output
convert lena.jpg -colorspace CMYK -channel K -blur 0x20 test.png
Image --> Image
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: -colorspace CMYK -blur fails silently

Post by fmw42 »

Seems to give me something, but don't know what to expect!


Image
convert logo2.jpg -colorspace CMYK -channel K -blur 0x10 logo2_k_blur0x10a.png
Image


IM 6.5.4-10 Q16 (sorry still HDRI)
HugoRune
Posts: 90
Joined: 2009-03-11T02:45:12-07:00
Authentication code: 8675309

Re: -colorspace CMYK -blur fails silently

Post by HugoRune »

interesting, mine does not produce a file (Version: ImageMagick 6.5.4-10 2009-08-08 Q16)

Nevertheless, your output is wrong too: the Black channel is not blurred, but somehow distorted, mostly zero with a few horizontal lines.

I tried to reproduce how it is supposed to look, but could not do it with imagemagick: I was stopped by the following possibly related odd behavior:

convert logo: -colorspace CMYK -channel CMYK -separate -combine test.png

Image
Last edited by HugoRune on 2009-08-20T19:07:13-07:00, edited 2 times in total.
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: -colorspace CMYK -blur fails silently

Post by magick »

We can reproduce the problem and will have a patch available within the next day or two. Thanks.
HugoRune
Posts: 90
Joined: 2009-03-11T02:45:12-07:00
Authentication code: 8675309

Re: -colorspace CMYK -blur fails silently

Post by HugoRune »

magick wrote:We can reproduce the problem and will have a patch available within the next day or two. Thanks.
That's great, thanks!
Post Reply