image generation fails in 6.7.7-10?
image generation fails in 6.7.7-10?
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?
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?
-
- 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?
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
- 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?
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
Re: image generation fails in 6.7.7-10?
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.
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.
- 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?
Perhaps a bug in that version. Does it work if you specify one of W or H or pointsize?
Re: image generation fails in 6.7.7-10?
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.
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.
Re: image generation fails in 6.7.7-10?
H works as in "convert -size x72 label:X 0.png", W and pointsize fail.fmw42 wrote:Perhaps a bug in that version. Does it work if you specify one of W or H or pointsize?
- 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?
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.
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.
Re: image generation fails in 6.7.7-10?
Both don't work.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.
Thanks for your concern, will follow your advise.
Re: image generation fails in 6.7.7-10?
A guru at the Linux Mint forum is helping me now and he comes up with the following news:
Did anyone here test the command in a current version?
Full post here: https://forums.linuxmint.com/viewtopic. ... 7&t=234936For 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.
Did anyone here test the command in a current version?
- 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?
Code: Select all
convert label:"X" 0.png
What happens if you specify a font rather than take the default. Perhaps your system has no default font set.
Re: image generation fails in 6.7.7-10?
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.fmw42 wrote:Works fine for me on IM 6.9.6.-6 Mac OSX SnowLeopard.Code: Select all
convert label:"X" 0.png
What happens if you specify a font rather than take the default. Perhaps your system has no default font set.
But if it works fine on a Mac than it may be a linux problem.
-
- 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?
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
Re: image generation fails in 6.7.7-10?
It doesn't give me a clue but hopefully some wizards here say aha:Try it with "-debug all" as the first option. That may give a clue why it doesn't work.
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.
- 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?
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.
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.