problem with texttoimage

Author Message

Marko Žmak

Friday 09 September 2005 6:59:34 am

On my site I'm using the textoimage operatto like descibed in the docs:

{image( "It's A Kind Of Magic"|texttoimage( 'arial' ) )}

But it's not working. In IE I get blak rectangles with red text over it but in Firefox I get only black rectangles without text.

Why?

Also, how can I change the output image format to JPEG and set the default text and background color for images rendered in this way?

--
Nothing is impossible. Not if you can imagine it!

Hubert Farnsworth

Kristof Coomans

Saturday 10 September 2005 4:47:36 am

Don't know why it doesn't work in Firefox, but you can change the output format and some other settings in image.ini.

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

Marko Žmak

Wednesday 14 September 2005 2:34:23 pm

Is there any way to change this settings during runtime of eZ?

--
Nothing is impossible. Not if you can imagine it!

Hubert Farnsworth

Mark Simon

Friday 13 April 2007 7:57:49 am

had the same problem, after reading the documentation at http://ez.no/doc/ez_publish/technical_manual/3_8/reference/template_operators/images/image I come to the result that example 2 can not work.

{image( "It's A Kind Of Magic"|texttoimage( 'arial' ) )}

The texttoimage part works correctly but the image() is wrong placed here.
Image() is being used to combine 2 images, but there is just the result of creating one image from text.

By the way this odd reaction of eZ (Showing a black box, and for IE also the text in red) is an indicator for doing some mistakes from creating text images to show this image

www.all2e.com

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.