[magick-users] unable to get type metrics
Timo Kirst
betas at kirst.com
Sun Sep 21 01:40:32 PDT 2008
Hi again,
this post I published on the Nabble forum. It took very long until I
received the confirmation, that it was published on this mailinglist
but at least I received it.
I was just wondering that no answer at all was posted to my questions.
That might be ok if nobody knows a hint for the issues but to make
sure that this is the case and it was not due to the fact that it
somehow was not published correctly, I just quote the message below.
So could at least give somebody just a sort of "lifesign" that this
message is published correctly?
Thanks in advance.
Regards,
Timo Kirst
--
> 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.
More information about the Magick-users
mailing list