Is gd unable to convert GIF to PNG?

Author Message

Lars Arne Brekken

Tuesday 08 July 2003 3:50:40 am

Hi

I'm using gd (can't make imagemagick work), and know that it's unable to save images as GIFs.

Jpeg works for me, but gif doesn't. Is gd unable to convert gif to png?

I've set my image.ini like this:
UseConvert=false
UseGD=true

AvailableMimeTypes=image/jpeg;image/png

Rules[]=image/gif;image/png;gd

Types[]=image/gif;\.gif$;gif

Tony Wood

Tuesday 08 July 2003 5:00:33 am

I had this with ImageMagick.

http://ez.no/developer/ez_publish_3/bug_reports/gif_images_converted_to_png_incorrectly

Reports the problem, and offer a solution that I used as PNG do not display correctly on Mac.

An interesting thing is that now GIFs are out of patent, i wonder how this will affect the future of PNG?

--
I hope this helps

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

Lars Arne Brekken

Wednesday 09 July 2003 6:56:08 am

It seems like gd is unable to convert GIFs.

I solved my problem by making convert work, and let it do the GIFs.

I'm not sure why convert hasn't worked before, but I suspect that I forgot to add image/gif to AvailableMimeTypes.

Lars

Tony Wood

Friday 25 July 2003 9:47:08 am

Hey Lars,

I got a problem similar today, it appears 3.1 cannot use ImageMagick when converting gif to gif, you need to keep the default of converting gifs to pngs.

Rules[]=image/gif;image/png;convert

instead of my preferred

Rules[]=image/gif;image/gif;convert

This is a shame as it worked no problem in 3.0, well its only a problem if you are using large images on a mac, which has a real problem with large png images..

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

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 30 2025 21:42:32
Script start
Timing: Jan 30 2025 21:42:32
Module start 'layout'
Timing: Jan 30 2025 21:42:32
Module start 'content'
Timing: Jan 30 2025 21:42:32
Module end 'content'
Timing: Jan 30 2025 21:42:32
Script end

Main resources:

Total runtime0.0213 sec
Peak memory usage6,144.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0046 588.1328151.2109
Module start 'layout' 0.00460.0038 739.3438220.6875
Module start 'content' 0.00830.0113 960.03131,001.7734
Module end 'content' 0.01970.0016 1,961.804733.9922
Script end 0.0213  1,995.7969 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002812.9722140.0002
Check MTime0.00115.0689140.0001
Mysql Total
Database connection0.00062.619510.0006
Mysqli_queries0.002210.508230.0007
Looping result0.00000.041410.0000
Template Total0.00115.210.0011
Template load0.00094.059610.0009
Template processing0.00021.074210.0002
Override
Cache load0.00062.740410.0006
General
dbfile0.00021.121280.0000
String conversion0.00000.033640.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