Hi everybody,

I have strange problems with imagemagick command line tools. Simple and even
more complex image modifications work fine, the problems start when I try to
use text conversion like in the following example:

convert -background white -pointsize 16 -fill white -page 320x95+10+10
text:/var/www/mydomain.com/input.txt /var/www/mydomain.com/output_test.gif

Executing this command leads to the mentioned error message:

convert: unable to get type metrics `/var/www/mydomain.com/input.txt'.
convert: missing an image filename `/var/www/mydomain.com/output_test.gif'.

Now, what I already know or at least assume is that it could result of the
restricted user environment, the convert is called from.

This is a webhosting environment, the users have only access to their domain
directory and furthermore only to selected resources (e.g. /etc/fonts).
If I run the mentioned command as root, it runs fine and the resulting image
is created as expected.

This is why I assume I miss to make some resource available to the webuser
which imagemagick needs for this type of convert operation. Unfortunately
the error message does not give a good hint in what direction I should
search.

Can someone give me a hint what that could be? If I google for the error
message, I only find a debian bug report about it (we run debian on our
rootservers, but with one of the newest imagemagick versions and running as
root everything runs as expected) and other not very useful content. I
searched also in this forum but found only one topic where the message is
mentioned but IIRC in a completely other context.
So I'm a little bit stuck here ;)


imagemagick version:  7:6.3.7.9.dfsg1-2+b2 

P.S: If I run convert with simple image conversion commands from the
restricted user environment, everything works quite well. This includes
commands like e.g. convert -resize and convert -crop and identify operations
to determine colorspace and/or resolution.

-- 
View this message in context: 
http://www.nabble.com/unable-to-get-type-metrics-tp19184645p19184645.html
Sent from the Magick-users mailing list archive at Nabble.com.

_______________________________________________
Magick-users mailing list
[email protected]
http://studio.imagemagick.org/mailman/listinfo/magick-users

Reply via email to