|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
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 ?
|
|
#2
|
|||
|
|||
|
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 |
|
#3
|
|||
|
|||
|
I don't know about it, but how do I do with my Gif images then ?
![]() |
|
#4
|
|||
|
|||
|
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. |
|
#5
|
|||
|
|||
|
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 |
|
#6
|
|||
|
|||
|
maybe you could ask you host to install the gif GD extension?
Otherwise your buggered |
|
#7
|
|||
|
|||
|
not possible for sure
![]() |
|
#8
|
|||
|
|||
|
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 |
|
#9
|
|||
|
|||
|
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
|
|
#10
|
|||
|
|||
|
arnt pngs bigger in file size tho?
|
|
#11
|
|||
|
|||
|
I think the size is comparable to jpg's one, but with the addition of transparency
|
|
#12
|
|||
|
|||
|
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! ![]() |
|
#13
|
|||
|
|||
|
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 |
|
#14
|
|||
|
|||
|
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 |
|
#15
|
|||
|
|||
|
Quote:
Hate to bust your bubble, but JPEG is not the best for photos, tiff is |
|
#16
|
|||
|
|||
|
for the web?
![]() |
![]() |
| Viewing: Dev Articles Community Forums > Programming > General Programming Help > ImageCreateFromGif |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|