473,414 Members | 1,577 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,414 software developers and data experts.

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 2997
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Chris Auer | last post by:
I have been banging my head for a couple of hours now. No matter what I do the color that I make transparent is black. Here is the code I am using from MSDN. I have tried bitmaps, jpegs, gifs and...
1
by: Chris Tremblay | last post by:
I am trying to create an image using GDI+ in VB.NET. I want to have the background be transparent, but when I do run the following: myGraphicsObject.clear(color.transparent) the resulting...
5
by: Mark Deibert | last post by:
I'm a former VB6 coder. Quit a few years ago. Now I'm back and trying to teach myself VB.NET. I don't remember having this much difficulty learning VB6. I'm totally stuck on something and need your...
9
by: RCS | last post by:
I'm working on an ASP.NET webpage that generates an image (and am using VWD 2005 until my copy of VS2005 ships). I have done all the obvious (and not-so-obvious) things to try to give a gif that I...
3
by: toto | last post by:
Hi, Does anybody know how to save an image in GIF format preserving transparent background ?? Here's what I tested : import Image, ImageDraw im = Image.open('/path/to/model.gif') # An...
2
by: Trond Michelsen | last post by:
Hi. I have a transparent PNG-image that I would like to display on top of the rest of the web page. I've already got this part working. But, I'd like the background (as in "the part of the image...
5
by: Dale | last post by:
When I create a System.Drawing.Bitmap and save it as ImageType.GIF, how can I set the transparency so that the background is transparent. In my application, the Bitmap that I am working with has...
0
by: salmobytes | last post by:
The following resize stuff does not work for gifs with transparent backgrounds. What would make it work? function Create() { switch($this->ImageType) { case ".gif": $this->ImageObj =...
11
by: Marge | last post by:
After importing a VB6 project into Express 2008 I have two gif's with transparency do not display correctly. In VB6 these pictures where used with the image object which had different properties...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.