deepsea887 / sigplus

Automatically exported from code.google.com/p/sigplus
0 stars 0 forks source link

watermark breaks image #81

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
watermark works as expected and efficiently, except for transparent pngs.  
especially layered pngs.  it will pick the last layer and impose it as a 
background on the original image, i dont believe this is a gd issue as gd 
handles alpha fine, probably how the processing is being handed to gd.  im sure 
its a quick fix, and you are more familiar with your code than i am.  thanks

Original issue reported on code.google.com by jso...@gmail.com on 9 Jul 2013 at 6:32

GoogleCodeExporter commented 9 years ago
Unfortunately, my experience is that GD has quite a few limitations regarding 
transparent PNG images; processing transparent PNG images, especially those 
with alpha channels, has several caveats. When the code for processing 
transparent PNG images was written, I had to do extensive research for GD code 
snippets that work at least in the majority of cases. ImageMagick seems to be 
the better choice in this regard. In any case, I am afraid it is more than just 
a quick fix, but of course I shall take a look if you wire the PNG image you 
have problems with.

Original comment by huny...@gmail.com on 9 Jul 2013 at 6:53

GoogleCodeExporter commented 9 years ago
thanks, i just switched over my image processing to imagemagick, that did the 
trick.  thanks for taking time to look, amazing product btw, thanks for your 
work on it.

Original comment by jso...@gmail.com on 9 Jul 2013 at 7:05

GoogleCodeExporter commented 9 years ago
No image has been provided with which the issue could be reproduced, and the 
issue has proved to be non-critical.

Original comment by huny...@gmail.com on 11 Sep 2013 at 6:48