Forums / General / Is gd unable to convert GIF to PNG?

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

eZ debug

Timing: Jan 30 2025 10:18:27
Script start
Timing: Jan 30 2025 10:18:27
Module start 'content'
Timing: Jan 30 2025 10:18:27
Module end 'content'
Timing: Jan 30 2025 10:18:27
Script end

Main resources:

Total runtime0.3177 sec
Peak memory usage8,192.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0083 589.3594370.2969
Module start 'content' 0.00830.0161 959.65631,005.5000
Module end 'content' 0.02440.2933 1,965.15633,893.9609
Script end 0.3177  5,859.1172 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00441.3989200.0002
Check MTime0.00130.4022200.0001
Mysql Total
Database connection0.00080.236710.0008
Mysqli_queries0.214767.57341410.0015
Looping result0.00130.41891390.0000
Template Total0.292992.210.2929
Template load0.00090.275410.0009
Template processing0.292091.893010.2920
Override
Cache load0.00060.184410.0006
Sytem overhead
Fetch class attribute can translate value0.00170.545410.0017
XML
Image XML parsing0.00050.151010.0005
General
dbfile0.01023.2145200.0005
String conversion0.00000.001930.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