aheckmann / gm

GraphicsMagick for node
http://aheckmann.github.com/gm/
6.95k stars 616 forks source link

Mac OSX - cannot drawText #216

Closed realdope closed 11 years ago

realdope commented 11 years ago

Hi,

gm 1.10.0 on nodejs running on Mac OSX cannot drawText. No error messages given, just nothing is written out. Other functions like drawLine work perfectly. I've tried font(...), but that didn't help. This issue has been confirmed on two machines using the example given in README.md:

gm(200, 400, "#ddff99f3") .drawText(10, 50, "from scratch") .write("blahblah", function (err) { // ... });

Mac OSX with homebrew: node, graphicsmagick, imagemagick, freetype, fontconfig I believe there was another thread on this issue, but it was closed.

$ gm version GraphicsMagick 1.3.18 2013-03-10 Q8 http://www.GraphicsMagick.org/ Copyright (C) 2002-2013 GraphicsMagick Group. Additional copyrights and licenses apply to this software. See http://www.GraphicsMagick.org/www/Copyright.html for details.

Feature Support: Thread Safe yes Large Files (> 32 bit) yes Large Memory (> 32 bit) yes BZIP yes DPS no FlashPix no FreeType no Ghostscript (Library) no JBIG no JPEG-2000 no JPEG yes Little CMS no Loadable Modules no OpenMP no PNG yes TIFF no TRIO no UMEM no WMF no X11 no XML yes ZLIB yes

Host type: x86_64-apple-darwin12.3.0

Configured using the command: ./configure '--disable-dependency-tracking' '--prefix=/usr/local/Cellar/graphicsmagick/1.3.18' '--enable-shared' '--disable-static' '--disable-openmp' '--with-gs-font-dir=/usr/local/share/ghostscript/fonts' '--without-x' 'CC=cc' 'CXX=c++'

Final Build Parameters: CC = cc CFLAGS = -g -O2 -Wall -D_THREAD_SAFE CPPFLAGS = -I/usr/include/libxml2 CXX = c++ CXXFLAGS = -D_THREAD_SAFE LDFLAGS = -L/usr/lib LIBS = -ljpeg -lpng15 -lbz2 -lxml2 -lz -lm -lpthread

jonathanong commented 11 years ago

i'm pretty sure you need to install the freetype and ghostscript libraries. install those, then reinstall imagemagick and graphicsmagick, then try the tests with npm test

jfederer commented 2 years ago

Was this ever actually solved? I'm having the same issues with graphicsmagick in AWS lambda -- resize and the rest all work, but drawText does not.