Forums / Developer / how to set colorspace from gray to transperent?

how to set colorspace from gray to transperent?

Author Message

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.
dhaval.patel@inetprocess.com
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

Dhaval Patel

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?

With Best Regards,

Dhaval Patel
Team Leader - iNETProcess(I) Pvt. LTD.
dhaval.patel@inetprocess.com
Ph No: +91 79 65 12 35 00
http://www.inetprocess.co.in

Ł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

Dhaval Patel

Tuesday 19 February 2008 11:23:13 pm

hi

the conversation tool is provided by ez 9.

ImageMagick is disabled.

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.

With Best Regards,

Dhaval Patel
Team Leader - iNETProcess(I) Pvt. LTD.
dhaval.patel@inetprocess.com
Ph No: +91 79 65 12 35 00
http://www.inetprocess.co.in

Pascal Specht

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>

Dhaval Patel

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?

With Best Regards,

Dhaval Patel
Team Leader - iNETProcess(I) Pvt. LTD.
dhaval.patel@inetprocess.com
Ph No: +91 79 65 12 35 00
http://www.inetprocess.co.in

eZ debug

Timing: Jan 19 2025 01:06:50
Script start
Timing: Jan 19 2025 01:06:50
Module start 'content'
Timing: Jan 19 2025 01:06:50
Module end 'content'
Timing: Jan 19 2025 01:06:50
Script end

Main resources:

Total runtime0.2612 sec
Peak memory usage2,048.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0108 589.0859180.8125
Module start 'content' 0.01080.0133 769.8984101.9297
Module end 'content' 0.02410.2370 871.8281530.0000
Script end 0.2611  1,401.8281 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00401.5193200.0002
Check MTime0.00150.5664200.0001
Mysql Total
Database connection0.00230.884110.0023
Mysqli_queries0.190372.86681410.0013
Looping result0.00170.64781390.0000
Template Total0.236590.510.2365
Template load0.00090.330110.0009
Template processing0.235690.214510.2356
Override
Cache load0.00060.235910.0006
Sytem overhead
Fetch class attribute can translate value0.00100.392110.0010
XML
Image XML parsing0.00020.091110.0002
General
dbfile0.01335.1003200.0007
String conversion0.00000.003130.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/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