forum.webdiplomacy.net

webDip dev coordination forum / public access todo list
It is currently Fri Nov 17, 2017 5:26 pm

All times are UTC




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: .gif maps?
PostPosted: Thu May 20, 2010 7:23 pm 
Offline

Joined: Wed Oct 08, 2008 12:47 pm
Posts: 726
Will the current map code work with gif format?
I ask because gif is also an indexed format, so logically it would, although that depends if the php functions used are png specific.


Top
 Profile  
 
 Post subject: Re: .gif maps?
PostPosted: Fri May 21, 2010 6:52 am 
Offline
Site Admin

Joined: Sat Jun 28, 2008 6:24 am
Posts: 892
The GD drawing library loads any image type into GD's own format, then does whatever manipulations in memory, then saves it to whatever requested image format. It'll use an imageloadfrompng() (or something) function, which could easily be made to check for a .gif extension and use imageloadfromgif() instead

But it'd probably be simpler to just convert whatever map it is to a .png


Top
 Profile  
 
 Post subject: Re: .gif maps?
PostPosted: Fri May 21, 2010 10:09 am 
Offline

Joined: Wed Oct 08, 2008 12:47 pm
Posts: 726
I guess so.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group