Forums / Developer / Image Overlays

Image Overlays

Author Message

Björn [email protected]

Monday 18 August 2003 2:24:36 pm

ez 3.1 final
I have problem controling the index transparency of an image layer and text overlay of an textto image layer.

here is what I wrote in the textto image.ini#
[top]
Family=arial
PointSize=11
TextColor=#000000

I got similar strings with complete differnet results. The only thing that is not the same is the image it selft

image($Child:item.name,imagefile('design/jetstream/images/bt_blank.jpg'),array($Child:item.name|texttoimage('top'),hash(transparency,0,halign,center,valign,center)))

On this first image I receive a white!!!!!!! text color with transparent background.

image(concat($#module_result.path.[sub(count($#module_result.path),1)].text),imagefile('design/jetstream/images/hd_blank.jpg'),array(concat($#module_result.path.[sub(count($#module_result.path),1)].text)|texttoimage('top'),hash(transparency,0,halign,center,valign,center)))

On this second image I receive a black text color but a white!!!! background color.

I am a little lost now. can somebody help me? Why do I get the white color in the frist example and the white background in the second.

Looking for a new job? http://www.xrow.com/xrow-GmbH/Jobs
Looking for hosting? http://hostingezpublish.com
-----------------------------------------------------------------------------
GMT +01:00 Hannover, Germany
Web: http://www.xrow.com/

Tony Wood

Monday 18 August 2003 2:26:54 pm

Hi,

This is due to the fact that 3.1 converts gifs to png instead of gifs. If you change image.ini you should be able to change this but since 3.1 this no longer works for me.

hopefully eZ will post a fix.

tony

Tony Wood : twitter.com/tonywood
Vision with Technology
Experts in eZ Publish consulting & development

Power to the Editor!

Free eZ Training : http://www.VisionWT.com/training
eZ Future Podcast : http://www.VisionWT.com/eZ-Future

Björn [email protected]

Monday 18 August 2003 2:51:05 pm

Hi ,
yes I read about this bug. I just wondering. I am using jpg's here. How does this affect me then?

this is my rule set

[Rules]
DefaultRule=image/jpeg;convert
Rules[]=image/jpeg;image/jpeg;convert
Rules[]=image/png;image/png;convert
Rules[]=image/gif;image/png;convert
Rules[]=image/xpm;image/png;convert

Looking for a new job? http://www.xrow.com/xrow-GmbH/Jobs
Looking for hosting? http://hostingezpublish.com
-----------------------------------------------------------------------------
GMT +01:00 Hannover, Germany
Web: http://www.xrow.com/