473,387 Members | 1,771 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,387 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 2996
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: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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...

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.