General Programming Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingGeneral Programming Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old August 9th, 2002, 02:22 AM
w0lverine w0lverine is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Aug 2002
Location: Paris, France
Posts: 32 w0lverine User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
Send a message via ICQ to w0lverine
ImageCreateFromGif

Hi, I noticed that most of the server using php don't have the ImageCreateFromGif function, though they have the ImageCreateFromJpeg one, and I was wondering if there was a way to pass through this problem, as this function is very usefull, for creating thumbnails for instance ?

Thanks
__________________
who needs to know who i am ?

Reply With Quote
  #2  
Old August 9th, 2002, 08:04 AM
FrankieShakes FrankieShakes is offline
Frank The Tank!
Dev Articles Beginner (1000 - 1499 posts)
 
Join Date: Jun 2002
Location: Toronto, Canada
Posts: 1,246 FrankieShakes User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 8
Send a message via ICQ to FrankieShakes Send a message via MSN to FrankieShakes
Wolverine,

Looking through the PHP manual, it makes mention of this function being removed from the GD library in v1.6. This could be the reason why a lot of hosts/servers don't support the function... It may be their version of the GD library...

If I'm not mistaken, by reading about the imagecreatefromgif & imagecreatefromjpeg, it seems as though the JPEG is the way to go...

* Anyone: Feel free to correct me if I'm wrong...
__________________
____________________________________________
Developer Shed Weekly Writer | DevArticles Forum Moderator
Build Your Own KlipFolio Klip With PHP
FrankManno.com - Under Construction
Design Interactive Group - Under Construction

Reply With Quote
  #3  
Old August 9th, 2002, 09:25 AM
w0lverine w0lverine is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Aug 2002
Location: Paris, France
Posts: 32 w0lverine User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
Send a message via ICQ to w0lverine
I don't know about it, but how do I do with my Gif images then ?

Reply With Quote
  #4  
Old August 9th, 2002, 05:39 PM
FrankieShakes FrankieShakes is offline
Frank The Tank!
Dev Articles Beginner (1000 - 1499 posts)
 
Join Date: Jun 2002
Location: Toronto, Canada
Posts: 1,246 FrankieShakes User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 8
Send a message via ICQ to FrankieShakes Send a message via MSN to FrankieShakes
Wolverine,

What is it you're trying to do with the image? Are you trying to manipulate it (change it's size, etc..)?

If so, check out this article/tutorial on Mogrify, which allows you to manipulate images.

Hope it helps! Let me know.

Reply With Quote
  #5  
Old August 9th, 2002, 05:45 PM
w0lverine w0lverine is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Aug 2002
Location: Paris, France
Posts: 32 w0lverine User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
Send a message via ICQ to w0lverine
Unfortunately, i need to create an image object from an existing GIF image for many manipulations (image insertions, alpha, then reduction + other stuff).
But all the providers I use (free ones ) don't have the ImageCreateFromGIF function, so I wondered if there was a way I totally ignored to create an image object from a GIF.
Since it is not my own server, I can't install any CGI/Apache Module, the solution has to be PHP related

Reply With Quote
  #6  
Old August 9th, 2002, 09:07 PM
Ben Rowe
Guest
Dev Articles Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
maybe you could ask you host to install the gif GD extension?

Otherwise your buggered

Reply With Quote
  #7  
Old August 10th, 2002, 12:17 PM
w0lverine w0lverine is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Aug 2002
Location: Paris, France
Posts: 32 w0lverine User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
Send a message via ICQ to w0lverine
not possible for sure

Reply With Quote
  #8  
Old August 10th, 2002, 06:20 PM
Lindset Lindset is offline
weirdomoderator
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jun 2002
Location: Alta, Norway
Posts: 370 Lindset User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
Send a message via ICQ to Lindset Send a message via AIM to Lindset
Use the PNG format. They had to remove the GIF support because GIF's compression algorithm requires licensing, which of course isn't feasible for an open source project

PNG is very similar to GIF, and it even supports 256 degrees of transparency
__________________
Best Regards,
Håvard Lindset

Reply With Quote
  #9  
Old August 10th, 2002, 06:28 PM
w0lverine w0lverine is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Aug 2002
Location: Paris, France
Posts: 32 w0lverine User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
Send a message via ICQ to w0lverine
Yes, of course, if I had a choice I would use only JPG, but it's for user-uploaded data, so I must allow them to uplaod gif and jpg

Reply With Quote
  #10  
Old August 10th, 2002, 07:47 PM
Ben Rowe
Guest
Dev Articles Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
arnt pngs bigger in file size tho?

Reply With Quote
  #11  
Old August 10th, 2002, 08:48 PM
w0lverine w0lverine is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Aug 2002
Location: Paris, France
Posts: 32 w0lverine User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
Send a message via ICQ to w0lverine
I think the size is comparable to jpg's one, but with the addition of transparency

Reply With Quote
  #12  
Old August 10th, 2002, 10:23 PM
Lindset Lindset is offline
weirdomoderator
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jun 2002
Location: Alta, Norway
Posts: 370 Lindset User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
Send a message via ICQ to Lindset Send a message via AIM to Lindset
PNG is not here to compete with JPEG. JPEG is still the best format for photography.

Here's a PNG introduction:
http://www.libpng.org/pub/png/pngintro.html

You should especially take a look at the section Compression Filters

Goodie!

Reply With Quote
  #13  
Old August 10th, 2002, 10:35 PM
w0lverine w0lverine is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Aug 2002
Location: Paris, France
Posts: 32 w0lverine User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
Send a message via ICQ to w0lverine
With such an evolved and sophisticated format as JPG, you still wonder why they didn't include transparency, after all it's just a supplementary color it doesn't cost much
That's the only reason why you have jpg/gif, because gif is so limited compared to JPG

Reply With Quote
  #14  
Old August 10th, 2002, 10:41 PM
Lindset Lindset is offline
weirdomoderator
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jun 2002
Location: Alta, Norway
Posts: 370 Lindset User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
Send a message via ICQ to Lindset Send a message via AIM to Lindset
It would be impossible to include transparency in JPEG because of the compression technique they are using.. Try zooming in on a heavily compressed JPEG file, and you'll see why

And JPEG is primarily for photographies, so I don't think they're interested in including transparency either

Reply With Quote
  #15  
Old August 11th, 2002, 11:22 PM
Ben Rowe
Guest
Dev Articles Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Quote:
Originally posted by Lindset
[B]PNG is not here to compete with JPEG. JPEG is still the best format for photography.


Hate to bust your bubble, but JPEG is not the best for photos, tiff is

Reply With Quote
  #16  
Old August 11th, 2002, 11:26 PM
Lindset Lindset is offline
weirdomoderator
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jun 2002
Location: Alta, Norway
Posts: 370 Lindset User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
Send a message via ICQ to Lindset Send a message via AIM to Lindset
for the web?

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingGeneral Programming Help > ImageCreateFromGif


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump