image generation fails in 6.7.7-10?

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.
aegir
Posts: 10
Joined: 2016-12-04T16:41:25-07:00
Authentication code: 1151

image generation fails in 6.7.7-10?

Post by aegir »

Hi,

Newbie on this forum, please bear with me. Using Mint 17 mostly vanilla. A recent upgrade installed the 6.7.7-10 version of IM.

Since a few days my VCS "video contact sheet" thumbnailer stopped working properly. I'm investigating this now and it turns out that a command like: "convert label:X 0.png" gives no image but an error instead:
convert.im6: no images defined `0.png' @ error/convert.c/ConvertImageCommand/3044.

Whereas addition of a canvas size (as in "convert -size 10x10 label:X 0.png") produces an image as expected.

So it seems that "label:" does not generate an image anymore, like it used to. Is this correct? If so, what is the way to proceed and get the same functionality?
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: image generation fails in 6.7.7-10?

Post by snibgo »

You "upgraded" to very very old 6.7.7-10??? I suggest you upgrade to the current version.
snibgo's IM pages: im.snibgo.com
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: image generation fails in 6.7.7-10?

Post by fmw42 »

I do not recommend that version. Imagemagick was undergoing quite some changes regarding color space and grayscale linear vs non-linear. I would recommend upgrading past IM 6.8.5.x. See viewtopic.php?f=4&t=21269
Similigo
Posts: 2
Joined: 2016-12-04T20:16:43-07:00
Authentication code: 1151

Re: image generation fails in 6.7.7-10?

Post by Similigo »

Same problem here.
6.7.7-10 is the current version for Ubuntu 14LTS (and LinuxMint).
Updating to a newer version of imagemagick puts you in a dependency hell.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: image generation fails in 6.7.7-10?

Post by fmw42 »

Perhaps a bug in that version. Does it work if you specify one of W or H or pointsize?
Similigo
Posts: 2
Joined: 2016-12-04T20:16:43-07:00
Authentication code: 1151

Re: image generation fails in 6.7.7-10?

Post by Similigo »

My command is

convert -background white -fill black -colors 256 -depth 8 -type Palette -define png:bit-depth=8 -define png:color-type=0 -font $file -pointsize 70 label:test image.png

and it fails.

The most basic command,

convert label:aaa aaa.png

also fails with the error:

convert.im6: no images defined `aaa.png' @ error/convert.c/ConvertImageCommand/3044.

It looks like something went wrong with patching for the security issue.
aegir
Posts: 10
Joined: 2016-12-04T16:41:25-07:00
Authentication code: 1151

Re: image generation fails in 6.7.7-10?

Post by aegir »

fmw42 wrote:Perhaps a bug in that version. Does it work if you specify one of W or H or pointsize?
H works as in "convert -size x72 label:X 0.png", W and pointsize fail.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: image generation fails in 6.7.7-10?

Post by fmw42 »

Did you do -size 72x or just 72? The former should work also.

Nevertheless, it seems likely there is a bug in that version. Perhaps you should talk with your Linux OS developers and see if they can put out a new distribution with a more current version of Imagemagick.
aegir
Posts: 10
Joined: 2016-12-04T16:41:25-07:00
Authentication code: 1151

Re: image generation fails in 6.7.7-10?

Post by aegir »

fmw42 wrote:Did you do -size 72x or just 72? The former should work also.

Nevertheless, it seems likely there is a bug in that version. Perhaps you should talk with your Linux OS developers and see if they can put out a new distribution with a more current version of Imagemagick.
Both don't work.
Thanks for your concern, will follow your advise.
aegir
Posts: 10
Joined: 2016-12-04T16:41:25-07:00
Authentication code: 1151

Re: image generation fails in 6.7.7-10?

Post by aegir »

A guru at the Linux Mint forum is helping me now and he comes up with the following news:
For the record, testing this code on Arch Linux with imagemagick version 6.9.6.6 gives the same error. So despite the claims on the imagemagick forum, I think something has been changed in imagemagick that makes this command as written no longer work.
Full post here: https://forums.linuxmint.com/viewtopic. ... 7&t=234936

Did anyone here test the command in a current version?
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: image generation fails in 6.7.7-10?

Post by fmw42 »

Code: Select all

convert label:"X" 0.png
Works fine for me on IM 6.9.6.-6 Mac OSX SnowLeopard.

What happens if you specify a font rather than take the default. Perhaps your system has no default font set.
aegir
Posts: 10
Joined: 2016-12-04T16:41:25-07:00
Authentication code: 1151

Re: image generation fails in 6.7.7-10?

Post by aegir »

fmw42 wrote:

Code: Select all

convert label:"X" 0.png
Works fine for me on IM 6.9.6.-6 Mac OSX SnowLeopard.

What happens if you specify a font rather than take the default. Perhaps your system has no default font set.
Gives the same error with a font spec. I would have been much surprised if it were different, because a size spec without a font spec produces an image.

But if it works fine on a Mac than it may be a linux problem.
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: image generation fails in 6.7.7-10?

Post by snibgo »

Try it with "-debug all" as the first option. That may give a clue why it doesn't work.
snibgo's IM pages: im.snibgo.com
aegir
Posts: 10
Joined: 2016-12-04T16:41:25-07:00
Authentication code: 1151

Re: image generation fails in 6.7.7-10?

Post by aegir »

Try it with "-debug all" as the first option. That may give a clue why it doesn't work.
It doesn't give me a clue but hopefully some wizards here say aha:

Code: Select all

2016-12-05T20:01:16+01:00 0:00.000 0.000u 6.7.7 Configure convert.im6[16118]: utility.c/ExpandFilenames/939/Configure                                                                                                                                                          
  Command line: convert {-debug} {all} {label:X} {0.png}                                                                                                                                                                                                                       
2016-12-05T20:01:16+01:00 0:00.000 0.000u 6.7.7 Configure convert.im6[16118]: configure.c/GetConfigureOptions/564/Configure                                                                                                                                                    
  Searching for configure file: "/usr/share/ImageMagick-6.7.7/coder.xml"                                                                                                                                                                                                       
2016-12-05T20:01:16+01:00 0:00.000 0.000u 6.7.7 Configure convert.im6[16118]: configure.c/GetConfigureOptions/564/Configure                                                                                                                                                    
  Searching for configure file: "/usr/lib/x86_64-linux-gnu/ImageMagick-6.7.7/config/coder.xml"                                                                                                                                                                                 
2016-12-05T20:01:16+01:00 0:00.000 0.000u 6.7.7 Configure convert.im6[16118]: configure.c/GetConfigureOptions/564/Configure                                                                                                                                                    
  Searching for configure file: "/etc/ImageMagick/coder.xml"                                                                                                                                                                                                                   
2016-12-05T20:01:16+01:00 0:00.000 0.000u 6.7.7 Configure convert.im6[16118]: configure.c/GetConfigureOptions/564/Configure                                                                                                                                                    
  Searching for configure file: "/usr/share/doc/ImageMagick-6.7.7/coder.xml"                                                                                                                                                                                                   
2016-12-05T20:01:16+01:00 0:00.000 0.000u 6.7.7 Configure convert.im6[16118]: configure.c/GetConfigureOptions/564/Configure                                                                                                                                                    
  Searching for configure file: "/home/corfu/.magick/coder.xml"                                                                                                                                                                                                                
2016-12-05T20:01:16+01:00 0:00.000 0.000u 6.7.7 Configure convert.im6[16118]: coder.c/LoadCoderList/693/Configure                                                                                                                                                              
  Loading coder configuration file "/etc/ImageMagick/coder.xml" ...                                                                                                                                                                                                            
2016-12-05T20:01:16+01:00 0:00.000 0.000u 6.7.7 Module convert.im6[16118]: module.c/OpenModule/1271/Module                                                                                                                                                                     
  Searching for module "LABEL" using filename "label.la"                                                                                                                                                                                                                       
2016-12-05T20:01:16+01:00 0:00.000 0.000u 6.7.7 Module convert.im6[16118]: module.c/GetMagickModulePath/572/Module                                                                                                                                                             
  Searching for coder module file "label.la" ...                                                                                                                                                                                                                               
2016-12-05T20:01:16+01:00 0:00.000 0.000u 6.7.7 Module convert.im6[16118]: module.c/OpenModule/1280/Module                                                                                                                                                                     
  Opening module at path "/usr/lib/x86_64-linux-gnu/ImageMagick-6.7.7/modules-Q16/coders/label.la"                                                                                                                                                                             
2016-12-05T20:01:16+01:00 0:00.000 0.000u 6.7.7 Module convert.im6[16118]: module.c/OpenModule/1307/Module                                                                                                                                                                     
  Method "RegisterLABELImage" in module "LABEL" at address 0x7fcf61a4c6f0                                                                                                                                                                                                      
2016-12-05T20:01:16+01:00 0:00.000 0.000u 6.7.7 Module convert.im6[16118]: module.c/OpenModule/1321/Module                                                                                                                                                                     
  Method "UnregisterLABELImage" in module "LABEL" at address 0x7fcf61a4c750                                                                                                                                                                                                    
2016-12-05T20:01:16+01:00 0:00.000 0.000u 6.7.7 Policy convert.im6[16118]: policy.c/IsRightsAuthorized/485/Policy                                                                                                                                                              
  Domain: Coder; rights=Read; pattern="LABEL" ...                                                                                                                                                                                                                              
2016-12-05T20:01:16+01:00 0:00.000 0.000u 6.7.7 Configure convert.im6[16118]: configure.c/GetConfigureOptions/564/Configure                                                                                                                                                    
  Searching for configure file: "/usr/share/ImageMagick-6.7.7/type.xml"                                                                                                                                                                                                        
2016-12-05T20:01:16+01:00 0:00.000 0.000u 6.7.7 Configure convert.im6[16118]: configure.c/GetConfigureOptions/564/Configure                                                                                                                                                    
  Searching for configure file: "/usr/lib/x86_64-linux-gnu/ImageMagick-6.7.7/config/type.xml"                                                                                                                                                                                  
2016-12-05T20:01:16+01:00 0:00.000 0.000u 6.7.7 Configure convert.im6[16118]: configure.c/GetConfigureOptions/564/Configure                                                                                                                                                    
  Searching for configure file: "/etc/ImageMagick/type.xml"                                                                                                                                                                                                                    
2016-12-05T20:01:16+01:00 0:00.000 0.000u 6.7.7 Configure convert.im6[16118]: configure.c/GetConfigureOptions/564/Configure                                                                                                                                                    
  Searching for configure file: "/usr/share/doc/ImageMagick-6.7.7/type.xml"                                                                                                                                                                                                    
2016-12-05T20:01:16+01:00 0:00.000 0.000u 6.7.7 Configure convert.im6[16118]: configure.c/GetConfigureOptions/564/Configure
  Searching for configure file: "/home/corfu/.magick/type.xml"
2016-12-05T20:01:16+01:00 0:00.000 0.000u 6.7.7 Configure convert.im6[16118]: type.c/LoadTypeList/961/Configure
  Loading type configure file "/etc/ImageMagick/type.xml" ...
2016-12-05T20:01:16+01:00 0:00.000 0.000u 6.7.7 Configure convert.im6[16118]: type.c/LoadTypeList/961/Configure
  Loading type configure file "/etc/ImageMagick/type-ghostscript.xml" ...
2016-12-05T20:01:16+01:00 0:00.020 0.010u 6.7.7 Annotate convert.im6[16118]: annotate.c/RenderFreetype/1201/Annotate
  Font /usr/share/fonts/type1/gsfonts/n019003l.pfb; font-encoding none; text-encoding none; pointsize 12
2016-12-05T20:01:16+01:00 0:00.020 0.020u 6.7.7 Annotate convert.im6[16118]: annotate.c/GetTypeMetrics/779/Annotate
  Metrics: text: X; width: 7.73438; height: 15; ascent: 9; descent: -3; max advance: 13; bounds: 0.265625,0  7.78125,9; origin: 8,0; pixels per em: 12,12; underline position: -2.35938; underline thickness: 0.78125
2016-12-05T20:01:16+01:00 0:00.020 0.020u 6.7.7 Cache convert.im6[16118]: cache.c/DestroyPixelCache/1482/Cache
  destroy 
2016-12-05T20:01:16+01:00 0:00.020 0.020u 6.7.7 Locale convert.im6[16118]: locale.c/GetLocaleOptions/728/Locale
  Searching for locale file: "/usr/share/ImageMagick-6.7.7/locale.xml"
2016-12-05T20:01:16+01:00 0:00.020 0.020u 6.7.7 Locale convert.im6[16118]: locale.c/GetLocaleOptions/728/Locale
  Searching for locale file: "/usr/lib/x86_64-linux-gnu/ImageMagick-6.7.7/config/locale.xml"
2016-12-05T20:01:16+01:00 0:00.020 0.020u 6.7.7 Locale convert.im6[16118]: locale.c/GetLocaleOptions/728/Locale
  Searching for locale file: "/etc/ImageMagick/locale.xml"
2016-12-05T20:01:16+01:00 0:00.020 0.020u 6.7.7 Locale convert.im6[16118]: locale.c/GetLocaleOptions/728/Locale
  Searching for locale file: "/usr/share/doc/ImageMagick-6.7.7/locale.xml"
2016-12-05T20:01:16+01:00 0:00.020 0.020u 6.7.7 Locale convert.im6[16118]: locale.c/GetLocaleOptions/728/Locale
  Searching for locale file: "/home/corfu/.magick/locale.xml"
2016-12-05T20:01:16+01:00 0:00.020 0.020u 6.7.7 Configure convert.im6[16118]: locale.c/LoadLocaleList/1099/Configure
  Loading locale configure file "/usr/share/ImageMagick-6.7.7/locale.xml" ...
2016-12-05T20:01:16+01:00 0:00.020 0.020u 6.7.7 Configure convert.im6[16118]: locale.c/LoadLocaleList/1099/Configure
  Loading locale configure file "/usr/share/ImageMagick-6.7.7/english.xml" ...
2016-12-05T20:01:16+01:00 0:00.020 0.020u 6.7.7 Exception convert.im6[16118]: convert.c/ConvertImageCommand/3044/Exception
  no images defined `0.png'
convert.im6: no images defined `0.png' @ error/convert.c/ConvertImageCommand/3044.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: image generation fails in 6.7.7-10?

Post by fmw42 »

These are just guesses

Do you have both xml and freetype delegates installed. You can see if they are listed when you do

convert -version

Otherwise, perhaps it is looking for the xml file in the wrong place.
Post Reply