-extent in CMYK colorspace doesn't work correctly

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.
Locked
User avatar
zappzerapp
Posts: 9
Joined: 2018-08-08T07:48:55-07:00
Authentication code: 1152

-extent in CMYK colorspace doesn't work correctly

Post by zappzerapp »

Hello ImageMagick Team,

I did an update from 6.9.10-60 to 6.9.10-74 and realised that the -extend doesn't work as before.
(Possibly this also concerns the current version 7.0.9)

Resource:
http://buzzram.de/img/uploads/1574433979.tif

When I execute the following command, the colorspace is converted to RGB:

Code: Select all

convert 1574433979.tif -extent 600x600 output.tif
Adding an ISOcoated_v2_eci.icc profile has helped a bit, but doesn't fix the problem completely.
In my previously installed version the profile was taken over. And this doesn't look to me like an intended adjustment.


Version: ImageMagick 6.9.10-74 Q16 x86_64 2019-11-18 https://imagemagick.org
Copyright: © 1999-2019 ImageMagick Studio LLC
License: https://imagemagick.org/script/license.php
Features: Cipher DPC Modules
Delegates (built-in): bzlib freetype jng jp2 jpeg lcms ltdl lzma png tiff webp xml zlib

snibgo
Posts: 13034
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: -extent in CMYK colorspace doesn't work correctly

Post by snibgo »

I confirm that this works as it should in v6.9.9-50 on Windows 8.1 ("-extent" does not convert CMYK to sRGB). In v7.0.8-64, we do have the problem.

Code: Select all

f:\web\im>%IM%convert xc: -colorspace CMYK info:
xc: XC 1x1 1x1+0+0 16-bit ColorSeparation CMYK 0.016u 0:00.093

f:\web\im>%IM%convert xc: -colorspace CMYK -extent 10x10 info:
xc: XC 10x10 10x10+0+0 16-bit CMYK 0.000u 0:00.093

f:\web\im>%IMG7%magick xc: -colorspace CMYK info:
xc: XC 1x1 1x1+0+0 16-bit ColorSeparation CMYK 0.000u 0:00.037

f:\web\im>%IMG7%magick xc: -colorspace CMYK -extent 10x10 info:
xc: XC 10x10 10x10+0+0 16-bit sRGB 0.000u 0:00.024  <=== bad result
snibgo's IM pages: im.snibgo.com

User avatar
magick
Site Admin
Posts: 11254
Joined: 2003-05-31T11:32:55-07:00

Re: -extent in CMYK colorspace doesn't work correctly

Post by magick »

Thanks for the problem report. We can reproduce it and will have a patch to fix it in GIT master branch @ https://github.com/ImageMagick/ImageMagick later today. The patch will be available in the beta releases of ImageMagick @ http://www.imagemagick.org/download/beta/ by sometime tomorrow. Once the patch is ready, use this command:

Code: Select all

convert 1574433979.tif -compose Copy -extent 600x600 info:

User avatar
zappzerapp
Posts: 9
Joined: 2018-08-08T07:48:55-07:00
Authentication code: 1152

Re: -extent in CMYK colorspace doesn't work correctly

Post by zappzerapp »

I have just checked it again: 6.9.10-63 is still fine and from 6.9.10-64 it doesn't work any more

Locked