cygwin x64 (2.6.0, 6.9.5-7 Q16 x86), delegate library support not built-in (LCMS) @ warning/profile.c/ProfileImage/813.

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
floogy
Posts: 12
Joined: 2013-08-16T03:54:29-07:00
Authentication code: 6789

cygwin x64 (2.6.0, 6.9.5-7 Q16 x86), delegate library support not built-in (LCMS) @ warning/profile.c/ProfileImage/813.

Post by floogy »

Hello,

in cygwin, I get on this cmd

Code: Select all

convert  -monitor -limit memory 6GB -limit map 12GB -define registry:temporary-path=/tmp +repage -rotate 90 -depth 8 +profile icm -profile myimagen/myimage_10.tif -intent Absolute -profile /cygdrive/c/WINDOWS/system32/spool/drivers/color/ECI-Profiles/eciRGB_v2.icc -alpha off myimage_01_CMYK_150dpi.tif rot_myimage_01_CMYK_150dpi.tif

Code: Select all

convert: delegate library support not built-in `myimage_01_CMYK_150dpi.tif' (LCMS) @ warning/profile.c/ProfileImage/813.
ok, there is also some icc mismatch, but I think that color management no longer works in the cygwin 2.6.0 version of imagemagick. I noticed inverted images, when using cmyk input images for my script. In cygwin 2.3.0 that didn't occur.

Code: Select all

exiftool
ICC Profile Name                : ISO Coated v2 (ECI)
Profile Description             : eciRGB v2

identify
    photoshop:ICCProfile: ISO Coated v2 (ECI)
    tiff:alpha: unspecified
    tiff:photometric: RGB
I found this thread
viewtopic.php?t=21890

Is this only a warning, or does it use the linked library, and I got some other issues instead?
I ask this, because ldd shows, that either convert or mogrify is linked against lcms, or maybe I'm missing something and doesn't understand the issue.

Code: Select all

$ convert -list configure | grep -i "delegates"
DELEGATES      autotrace bzlib mpeg fftw fpx fontconfig freetype gslib jbig jng jpeg lzma openjp2 pango png ps rsvg tiff webp x xml zlib
$ convert -list configure | grep -i "delegates"|grep --color lcms
$ ldd $(which convert)| grep --color  cms
        cyglcms2-2.dll => /usr/bin/cyglcms2-2.dll (0x3e0ca0000)
$ ldd $(which mogrify) | grep lcms
        cyglcms2-2.dll => /usr/bin/cyglcms2-2.dll (0x3e0ca0000)

https://bpaste.net/show/2108883bdaa2

Code: Select all

$ convert -version
Version: ImageMagick 6.9.5-7 Q16 x86_64 2016-08-27 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2016 ImageMagick Studio LLC
License: http://www.imagemagick.org/script/license.php
Features: Cipher DPC OpenMP
Delegates (built-in): autotrace bzlib cairo fftw fontconfig fpx freetype gslib jbig jng jp2 jpeg lzma pangocairo png ps rsvg tiff webp x xml zlib
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: cygwin x64 (2.6.0, 6.9.5-7 Q16 x86), delegate library support not built-in (LCMS) @ warning/profile.c/ProfileImage/8

Post by snibgo »

Without LCMS as a built-in delegate, profile conversions won't work.

Which source package did you download? Did it contain LCMS?
floogy wrote:cygwin 2.6.0 version of imagemagick
I don't know what that means. Perhaps that you downloaded from the Cygwin site, rather than ImageMagick's site.
snibgo's IM pages: im.snibgo.com
floogy
Posts: 12
Joined: 2013-08-16T03:54:29-07:00
Authentication code: 6789

Re: cygwin x64 (2.6.0, 6.9.5-7 Q16 x86), delegate library support not built-in (LCMS) @ warning/profile.c/ProfileImage/8

Post by floogy »

Yes, I downloaded it by the cygwin setup programm. But thank you for your information, that simply linking against cyglcms.dll might not work, and that it is necessary to have it as a built-in delegate. I'll send a bug report to the cygwin package team, to offer an update which is compiled --with-little-cms .
floogy
Posts: 12
Joined: 2013-08-16T03:54:29-07:00
Authentication code: 6789

Re: cygwin x64 (2.6.0, 6.9.5-7 Q16 x86), delegate library support not built-in (LCMS) @ warning/profile.c/ProfileImage/8

Post by floogy »

Hello snigbo, I noticed your cygwin compile website http://im.snibgo.com/compim.htm
can you please tell me if the cygwin team would offer a new IM package with lcms build in support? Would --with-lcms=yes plus --with-lcms2=yes work too? And will Q64 increase speed of montage on huge images over Q16? TIA
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: cygwin x64 (2.6.0, 6.9.5-7 Q16 x86), delegate library support not built-in (LCMS) @ warning/profile.c/ProfileImage/8

Post by snibgo »

When I first wrote that page, the Cygwin distro of ImageMagick was more than two years out of date. Perhaps that is no longer true.

Installing IM from the Cygwin site is "intelligent"; it downloads the packages that are required for each other, that either haven't been downloaded already or a newer version is available. Intelligence is great, provided it works.

By contrast, downloading from the ImageMagick site is "dumb". The "Windows source" from http://www.imagemagick.org/script/install-source.php contains the source code of all the required delegates, so it is massive, over 100 MB at the last count. With my pathetically slow internet connection, downloading takes a day. But, once I have the source, it builds without any problem.

I don't know how Cygwin dependencies are defined. If LCMS isn't defined as a dependency, perhaps manually ticking the box in the installation program would cure the problem.
floogy wrote:And will Q64 increase speed of montage on huge images over Q16?
No, it will decrease the speed.

Q16, Q64 etc define the number of bits/channel/pixel that IM uses to store images in memory. Roughly speaking, larger Q gives better results but slower (and needs more memory). For most purposes, I find that Q16 is sufficient. For some purposes, I need Q32. I haven't yet found a case that needs Q64.

Don't confuse this with "x32" or "x64", which refers to whether your CPU has a native word size of 32 or 64 bits. You can use x32 software on X64 processors, but it will be slower.
snibgo's IM pages: im.snibgo.com
floogy
Posts: 12
Joined: 2013-08-16T03:54:29-07:00
Authentication code: 6789

Re: cygwin x64 (2.6.0, 6.9.5-7 Q16 x86), delegate library support not built-in (LCMS) @ warning/profile.c/ProfileImage/8

Post by floogy »

Hello snigbo, thank you for your reply. I posted yesterday in the cygwin ML and Marco Atzeri will look for a rebuild with lcms2.
>Noted.
>It seems upstream changed sometime ago the config switch for lcms2.
>I will look for a rebuild
Marco Atzeri
Yesterday, I tested the cygwin shell at home that is a bit outdated, and compared it to 2.6.0 regarding imagemagick.

cygwin 2.6.0 comes with ImageMagick 6.9.5-7 Q16 x86_64 2016-08-27, additionally with jp2 delkegate as abuil-in, but without lcms or lcms2.

cygwin 2.4.1 comes with ImageMagick 6.9.1-3 Q16 x86_64 2015-07-01, with lcms as a built-in delegate.

Yesterday I was in a hurry and therefore I took the higher amounts in the comparison of Q16 and Q32 as a proof for increasing speed, but of course a higher amount of elapsed time means decreasing speed ...
Post Reply