469,964 Members | 1,616 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,964 developers. It's quick & easy.

thumbnails of transparent background gifs

Making thumbnail images isn't all that hard, for the most
part. There is lots of shrink-wrapped code out there you
can download and/or munge from. But nothing I've yet
seen does the right thing with transparent background gifs.

If you (I) try to work with ImageCreateFromGif($this->path);
you end up with a black background.

Does anybody know how to make transparent background
gif thumbnails? Or maybe how to at least turn the background
to white?
--
/* Colin (Sandy) Pittendrigh >--O0>
**
*/
Jun 27 '08 #1
8 2716
On 23 Jun, 14:24, salmobytes <sa...@byteme.orgwrote:
Making thumbnail images isn't all that hard, for the most
part. There is lots of shrink-wrapped code out there you
can download and/or munge from. *But nothing I've yet
seen does the right thing with transparent background gifs.

If you (I) try to work with ImageCreateFromGif($this->path);
you end up with a black background.

Does anybody know how to make transparent background
gif thumbnails? Or maybe how to at least turn the background
to white?

--
/* Colin (Sandy) Pittendrigh >--O0>
**
*/
Didn't the links (including the one to the manual) that you found when
you searched Google for
php transparent gif
help at all?
Jun 27 '08 #2
salmobytes escribió:
Making thumbnail images isn't all that hard, for the most
part. There is lots of shrink-wrapped code out there you
can download and/or munge from. But nothing I've yet
seen does the right thing with transparent background gifs.

If you (I) try to work with ImageCreateFromGif($this->path);
you end up with a black background.
But, does it work with *non-transparent* GIFs? As manual says, GIF
support was removed for a while due to patent issues.
Does anybody know how to make transparent background
gif thumbnails? Or maybe how to at least turn the background
to white?
I'm kinda lost. There isn't such thing as "background" and
"non-background" GIFs... :-?

--
-- http://alvaro.es - Álvaro G. Vicario - Burgos, Spain
-- Mi sitio sobre programación web: http://bits.demogracia.com
-- Mi web de humor al baño María: http://www.demogracia.com
--
Jun 27 '08 #3
On Jun 23, 7:54*am, Captain Paralytic <paul_laut...@yahoo.comwrote:
Didn't the links (including the one to the manual) that you found when
you searched Google for
php transparent gif
help at all?
Googling "php transparent gif" turns up dozens of links
to question and answer forums where the same question is asked
many times over.........and the answers are not at all clear.
I'd venture to say this is a FAQ with infrequent solutions.
I'm sure it's possible. I might even be able to fight with it
and solve it all on my own.

Questions on usenet invariably incur at least a few acerbic responses.
But questions on usenet often lead to good answers too.
So it's always worth a try.

:-)

Jun 27 '08 #4
salmobytes schrieb:
Making thumbnail images isn't all that hard, for the most
part. There is lots of shrink-wrapped code out there you
can download and/or munge from. But nothing I've yet
seen does the right thing with transparent background gifs.

If you (I) try to work with ImageCreateFromGif($this->path);
you end up with a black background.

Does anybody know how to make transparent background
gif thumbnails? Or maybe how to at least turn the background
to white?

You know:
int imagecolortransparent ( resource $im [, int $col ] )

?

Jun 27 '08 #5
Olaf Schinkel wrote:
>>
You know:
int imagecolortransparent ( resource $im [, int $col ] )
Thanks, that looks like the beginning of a solution.
--
/* Colin (Sandy) Pittendrigh >--O0>
** Have code will travel
*/
Jun 27 '08 #6
salmobytes wrote:
Making thumbnail images isn't all that hard, for the most
part. There is lots of shrink-wrapped code out there you
can download and/or munge from. But nothing I've yet
seen does the right thing with transparent background gifs.
Try mode imagick if you have a nice enough host.

http://php.net/imagick

Floortje
Jun 27 '08 #7
On 23 Jun, 17:11, whileone <Sandy.Pittendr...@gmail.comwrote:
On Jun 23, 7:54*am, Captain Paralytic <paul_laut...@yahoo.comwrote:
Didn't the links (including the one to the manual) that you found when
you searched Google for
php transparent gif
help at all?

Googling "php transparent gif" turns up dozens of links
to question and answer forums where the same question is asked
many times over.........and the answers are not at all clear.
But it also turns up a link to the manual which talks about setting
transparent backgrounds.
Jun 27 '08 #8
Floortje wrote:
salmobytes wrote:
>Making thumbnail images isn't all that hard, for the most
part. There is lots of shrink-wrapped code out there you
can download and/or munge from. But nothing I've yet
seen does the right thing with transparent background gifs.

Try mode imagick if you have a nice enough host.
...or can bear to spend a day downlaoding all the crap you need before
you can install it on your own machine.

I gave up.
http://php.net/imagick

Floortje
Jun 27 '08 #9

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Chris Tremblay | last post: by
3 posts views Thread by toto | last post: by
2 posts views Thread by Trond Michelsen | last post: by
5 posts views Thread by Dale | last post: by
reply views Thread by salmobytes | last post: by
11 posts views Thread by Marge | last post: by
1 post views Thread by rainxy | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.