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 ImageCreateFrom Gif($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>
**
*/ 8 3022
On 23 Jun, 14:24, salmobytes <sa...@byteme.o rgwrote:
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 ImageCreateFrom Gif($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?
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 ImageCreateFrom Gif($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
--
On Jun 23, 7:54*am, Captain Paralytic <paul_laut...@y ahoo.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.........an d 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.
:-)
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 ImageCreateFrom Gif($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 imagecolortrans parent ( resource $im [, int $col ] )
?
Olaf Schinkel wrote:
>>
You know:
int imagecolortrans parent ( resource $im [, int $col ] )
Thanks, that looks like the beginning of a solution.
--
/* Colin (Sandy) Pittendrigh >--O0>
** Have code will travel
*/
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
On 23 Jun, 17:11, whileone <Sandy.Pittendr ...@gmail.comwr ote:
On Jun 23, 7:54*am, Captain Paralytic <paul_laut...@y ahoo.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.........an d the answers are not at all clear.
But it also turns up a link to the manual which talks about setting
transparent backgrounds.
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
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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 new bitmaps
created in code, but I cant get any image to go transparent. Thanks if
you can help.
// Create a Bitmap object from an image file.
Bitmap myBitmap = new
Bitmap(System.Web.HttpContext.Current.Server.MapPath("resources/img/")
|
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 background color is black, not transparent. I am saving the
image to the output stream as an "image/gif". Is there anything I should
know about this, any reason that the result would be black?
--
|
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 expert
guidance.
I just want to load a GIF with a transparent background into a
container with a transparent background. So I can move the GIFs over
and under each other. You know, as in basic game stuff. I can load the
transparent GIF no...
|
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 am generating, a
transparent background.
On the newsgroups - everyone points to this MSDN article: How to save a .gif
file with a new color table by using Visual C# .NET
http://support.microsoft.com/default.aspx?scid=kb;en-us;319061
Even...
|
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 image with transparent backgroung
draw = ImageDraw.Draw(im)
| |
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 that is transparent"),
to be semi transparent instead. So, I've wrapped the image in a
div-tag with the style "opacity: .70" instead. This gives me pretty
much the semi transparency that I'm looking for, except that this makes
the entire image...
|
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 several transparent
GIFs drawn on it and the transparency of each of them works within the
bitmap, but the bitmap overall gets saved with a black background.
Any help is greatly appreciated.
|
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 =
imagecreatefromgif($this->ImageUrl);
|
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 to the picturebox unfortunately there only seems
to be the picturebox option in the toolbox of Express 2008?
any ideas/help PLEASE :o)
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |