transparent image?
boyatomic - November 16, 2007 - 18:54
| Project: | Image watermark |
| Version: | 5.x-1.x-dev |
| Component: | Code |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
I'm having trouble handling the following case:
the image you're applying the watermark to is transparent.
It loses its transparency after applying the watermark (background becomes black.)
I'm looking at the following code (first comment on here)
http://us3.php.net/imagecopy
and wondering if this is the way to go to resolve it...i'm scaling the image so I would need to edit the cases for imagecopyresampled?

#1
As I remember I used imagecopyresampled because of the option to have your watermark resized proportionally to the image size.
In general there are issues with transparancy, animated gifs and compression (file size) when using gd library functions. Transparency, animation or compression changes (gets lost / is rewritten) when you run an image through the gd library functions.
I'm sorry I can't help with this issue, but if you have a solution please post it here. I will do my best to integrate that into a new version of watermark.