Forums / Setup & design / Problems with gifs with transparent color

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

Problems with gifs with transparent color

Author Message

Christiane Kloss

Thursday 24 February 2005 8:33:12 am

Hello everybody!

The background-color from the mainarea is light yellow and from the toolbar is light blue.
The products are supposed to 'sit' directly on the background.
So in the mainarea the product-image has a light yellow and in the toolbar a light blue background.
So I choose gif-type with transparent background for my product-images.

But when the images are scaled, they will get a border. If the original was stored with no base/background the border will be black, if base was set to white, the border will be gray...:-(

I was fiddling around with ImageMagick at the command line.
convert -fill '#ffc' (->set color)
-opaque transparent (->all transparent pixels will get the color ffc)
-geometry 160x160 image_1.gif image_2.gif
could do the job.

So I tried to implement a new image-alias in image.ini.append:
AliasList[]
AliasList[]=medium_yellow

[medium_yellow]
Reference=
Filters[]
Filters[]=fill=-fill '#ffc'
Filters[]=opaque=-opaque transparent
Filters[]=geometry/scaledownonly=160;160

It doesn't work.
Is this the right syntax?
I found it here: http://ez.no/community/forum/suggestions/more_image_filters_text_on_image
Do I have to tell EZ somewhere else about these new filters?
Or is convert limited to the filters mentioned in
http://ez.no/ez_publish/download/changelogs/ez_publish_3_3/new_image_system?

Or does anybody have another good idea, how to solve the transparency problem?