6.5.6-9 source built on Linux with convert failure

Questions and postings pertaining to the development of ImageMagick, feature enhancements, and ImageMagick internals. ImageMagick source code and algorithms are discussed here. Usage questions which are too arcane for the normal user list should also be posted here.
Post Reply
Metha

6.5.6-9 source built on Linux with convert failure

Post by Metha »

Hi all,

My Linux box had ImageMagick 5.5.6 04/01/03 Q16 built-in and it's been working
well for me, until I needed to have more features in newer ImageMagick.

So I proceeded to downloaded and built the ImageMagick 6.5.6-9 from source (on Linux 2.4.21-4.ELsmp #1 SMP)

The build came through fast, and I was able to generate and see the logo.gif
with first simple "convert" command.

But when I used label with convert, it hit on some font problem and failed to generate the image.

-------------------
> convert QR_sample.jpg -background red label:'testing' -gravity Center -append temp.jpg
Failed to generate the temp.jpg, with following error messages:
convert: delegate library support not built-in `/usr/share/fonts/default/Type1/n019003l.pfb' (Freety
pe) @ annotate.c/RenderFreetype/1416.
convert: delegate library support not built-in `/usr/share/fonts/default/Type1/n019003l.pfb' (Freety
pe) @ annotate.c/RenderFreetype/1416.
convert: delegate library support not built-in `/usr/share/fonts/default/Type1/n019003l.pfb' (Freety
pe) @ annotate.c/RenderFreetype/1416.

---------------------

Somehow I didn't have such font problem in the older ImageMagick, and I wonder
what's causing this new font problem. BTW, the "make check" showed two failure (see data at the end). Would this be related?

Did anybody ever run into similar situation? Appreciate kind advice from anyone.

---------------------------------
> make check
.....
FAIL: tests/validate-formats-on-disk.sh
FAIL: tests/validate-formats-in-memory.sh

.....
===========================================
2 of 47 tests failed
See ./test-suite.log
Please report to http://www.imagemagick.org
===========================================

FAIL: tests/validate-formats-on-disk.sh (exit: 1)
=================================================

lt-validate: Postscript delegate failed `/tmp/magick-XXWVLaek': No such file or directory @ pdf.c/R
adPDFImage/634.
lt-validate: Postscript delegate failed `/tmp/magick-XXWVLaek': No such file or directory @ pdf.c/R
adPDFImage/634.
lt-validate: Postscript delegate failed `/tmp/magick-XXWVLaek': No such file or directory @ pdf.c/R
adPDFImage/634.
lt-validate: Postscript delegate failed `/tmp/magick-XXWVLaek': No such file or directory @ pdf.c/R
adPDFImage/634.
Version: ImageMagick 6.5.6-9 2009-10-09 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2009 ImageMagick Studio LLC

ImageMagick Validation Suite (FormatsOnDisk)

validate image formats on disk:
test 0: AI/TrueColor/8-bits... pass.
test 1: AI/TrueColorMatte/8-bits... fail @ tests/validate.c/ValidateImageFormatsOnDisk/744.
test 2: AI/Grayscale/8-bits... pass.
test 3: AI/GrayscaleMatte/8-bits... fail @ tests/validate.c/ValidateImageFormatsOnDisk/744.
test 4: AI/Palette/8-bits... pass.
test 5: AI/PaletteMatte/8-bits... fail @ tests/validate.c/ValidateImageFormatsOnDisk/744.
test 6: AI/PaletteBilevelMatte/8-bits... fail @ tests/validate.c/ValidateImageFormatsOnDisk/744.
test 7: AI/Bilevel/1-bits... pass.
test 8: AI/ColorSeparation/8-bits... pass.
.............
test 726: YCbCrA/TrueColor/12-bits... pass.
test 727: YCbCrA/TrueColor/16-bits... pass.
summary: 728 subtests; 724 passed; 4 failed.
validation suite: 728 tests; 724 passed; 4 failed.

FAIL: tests/validate-formats-in-memory.sh (exit: 1)
===================================================

lt-validate: Postscript delegate failed `/tmp/magick-XXTmdtZY': No such file or directory @ pdf.c/Re
adPDFImage/634.
lt-validate: Postscript delegate failed `/tmp/magick-XXTmdtZY': No such file or directory @ pdf.c/Re
adPDFImage/634.
lt-validate: Postscript delegate failed `/tmp/magick-XXTmdtZY': No such file or directory @ pdf.c/Re
adPDFImage/634.
lt-validate: Postscript delegate failed `/tmp/magick-XXTmdtZY': No such file or directory @ pdf.c/Re
adPDFImage/634.
Version: ImageMagick 6.5.6-9 2009-10-09 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2009 ImageMagick Studio LLC

ImageMagick Validation Suite (FormatsInMemory)

validate image formats in memory:
test 0: AI/TrueColor/8-bits... pass.
test 1: AI/TrueColorMatte/8-bits... fail @ tests/validate.c/ValidateImageFormatsInMemory/538.
test 2: AI/Grayscale/8-bits... pass.
test 3: AI/GrayscaleMatte/8-bits... fail @ tests/validate.c/ValidateImageFormatsInMemory/538.
test 4: AI/Palette/8-bits... pass.
test 5: AI/PaletteMatte/8-bits... fail @ tests/validate.c/ValidateImageFormatsInMemory/538.
test 6: AI/PaletteBilevelMatte/8-bits... fail @ tests/validate.c/ValidateImageFormatsInMemory/538.
test 7: AI/Bilevel/1-bits... pass.
test 8: AI/ColorSeparation/8-bits... pass.
test 9: AI/ColorSeparationMatte/8-bits... pass.
test 10: AI/TrueColor/10-bits... pass.
.............
test 726: YCbCrA/TrueColor/12-bits... pass.
test 727: YCbCrA/TrueColor/16-bits... pass.
summary: 728 subtests; 724 passed; 4 failed.
validation suite: 728 tests; 724 passed; 4 failed.
-----------------
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: 6.5.6-9 source built on Linux with convert failure

Post by magick »

The AI format requires Ghostscript to validate. We added a patch so if the configure script does not detect Ghostscript it will now try to validate with the AI format.

For your font problem, type
  • identify -list format
make sure you get
  • TTF* TTF r-- TrueType font (Freetype 2.3.9)
If not, rebuild ImageMagick and include support for the Freetype delegate library. If Freetype and its development RPM's are installed on your system, the ImageMagick configure script should pick it up and include support for it.
Metha

Re: 6.5.6-9 source built on Linux with convert failure

Post by Metha »

Much thanks for the reply.

In my "identify -list format" there are these entries without any support indication:
DFONT* TTF --- Multi-face font package
DOT DOT --- Graphviz
JNG* PNG --- JPEG Network Graphics
MSL* MSL --- Magick Scripting Language
OTF* TTF --- Open Type font
PFA* TTF --- Postscript Type 1 font (ASCII)
PFB* TTF --- Postscript Type 1 font (binary)
TTC* TTF --- TrueType font collection
TTF* TTF --- TrueType font

I assume that it's because my ImageMagick build didn't see the FreeType delegate
library on my Linux? I'm very uneducated regarding the fonts, just a simple and
happy ImageMagick user. I'll go check if I'm missing the FreeType library and see
if I can somehow get it into my Linux, and then do the ImagicMagick rebuild.

The whole thing that led me to the ImageMagick new build is due to my need of
adding Chinese Simplified font support to ImageMagic.


I do have another Linux still with the good old ImageMagick 5.5.6 WITHOUT the
FreeType problem. Can you jump ahead to advise how I can install and deploy such
UTF-8 fonts with my old ImageMagick 5.5.6
(on my Linux box #2)? And I'd assume that
new build on the Linux box #1 can also get the UTF-8 fonts support in similar way,
once I have the FreeType problem settled?

Much thanks again for the help!
Metha

Re: 6.5.6-9 source built on Linux with convert failure

Post by Metha »

Hi magick,

I've generated image with Chinese characters with the command:
"convert -background NAVY -fill GOLD -pointsize 24 -font zh_cn label:@chinese_words.txt label_utf8.gif"
based on the good old ImageMagick 5.5.6 (which has proper TTF support)

With the help of "imagick_type_gen" I was able to add the "zh_cn" Chinese font
to the "type.mgk", and the "convert -list type" confirmed the new font added.

So I'm dropping the new ImageMagick installation for now and will live happily
with the good old 5.5.6 for a further good while :-) It was a detour taken for
a good cause, and I'd like to say thanks for your help once again.
Post Reply