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?

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

eZ debug

Timing: Jan 19 2025 01:08:08
Script start
Timing: Jan 19 2025 01:08:08
Module start 'layout'
Timing: Jan 19 2025 01:08:08
Module start 'content'
Timing: Jan 19 2025 01:08:08
Module end 'content'
Timing: Jan 19 2025 01:08:08
Script end

Main resources:

Total runtime0.0215 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0072 589.2891152.6406
Module start 'layout' 0.00720.0037 741.929739.4766
Module start 'content' 0.01100.0083 781.406389.3672
Module end 'content' 0.01920.0023 870.773430.3047
Script end 0.0215  901.0781 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.003215.0077140.0002
Check MTime0.00136.0429140.0001
Mysql Total
Database connection0.00188.152710.0018
Mysqli_queries0.003014.027530.0010
Looping result0.00000.084110.0000
Template Total0.00188.310.0018
Template load0.00114.975310.0011
Template processing0.00073.332310.0007
Override
Cache load0.00073.318010.0007
General
dbfile0.002612.234180.0003
String conversion0.00000.050940.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs