Forums / Developer / how to set colorspace from gray to transperent?
Dhaval Patel
Monday 18 February 2008 10:06:02 pm
hello all,
i am uploading the image thro' ezeditor.
but ez makes the image background gray. i want to make that transperent instead of gray.
please tell me how i can change that.
ImageMagick is disabled.
With Best Regards, Dhaval Patel Team Leader - iNETProcess(I) Pvt. LTD. [email protected] Ph No: +91 79 65 12 35 00 http://www.inetprocess.co.in
Pascal Specht
Tuesday 19 February 2008 3:17:03 am
Hi,
I wouldn't necessarily blame eZ Publish: If you're using IE, you must know that IE has notorious problems with PNGs and transparency. First, check if the image shows correctly in a regular HTML file (without any eZ Publish) on your browser. Transparency is a hell to maintain in HTML (just google for 'hack' + PNG) , if you can avoid it, do so.
Regards,Pascal
Tuesday 19 February 2008 10:36:21 pm
Thank you for replying Pascal,
The image is perfect for "original" image class. but for other classes like small, medium and for .gif transperent images, ez puts gray in image where there is transperency.
do you understand what i mean?
Łukasz Serwatka
Tuesday 19 February 2008 11:15:39 pm
This will not work I'm afraid. If possible, try switch to ImageMagick. Look on lib/ezimage/classes/ezimageinterface.php for function blendImage()
Check also list of supported GD filters in image.ini
Personal website -> http://serwatka.net Blog (about eZ Publish) -> http://serwatka.net/blog
Tuesday 19 February 2008 11:23:13 pm
hi
the conversation tool is provided by ez 9.
GD filters are jpg, png, gif.
and if you know please tell me if i upload .gif file then how i can make jpg file for other image_classes?
like if i upload test.gif then for it is converted into test.jpg file for the image_custom_class.
Wednesday 20 February 2008 12:57:16 am
Hi Dhaval,
OK, it obviously the comes from the transformation: as Łukasz suggests, you should use ImageMagick which is much more powerful than GD. As you said, it is still disabled on your installation.
</Pascal>
Wednesday 20 February 2008 1:32:20 am
hello
if i enable ImageMagick then ez is not creating thumbnails for the image_class.
so if i enable the ImageMagick, then where should i do the changes so ez creates thumbnails?