Plugin

Archived
Forum
(read-only)

CE Image

ExpressionEngine 1.x, ExpressionEngine 2, ExpressionEngine 3

Back to this add-on's main page
View Other Add-ons From Causing Effect

     

Watermark artifacted images

Support (Resolved)

AJP
AJP

Hey Aaron.

I’m watermarking framing a bunch of client logos on to a transparent PNG to get them centered and all that. However some of the logos are getting a black background and artifacting the original logo instead of transparent.

Here’s an original logo file: http://cl.ly/Ns4u
And a watermarked output sample: http://cl.ly/NsIo

Here’s my CE Image pair/single to watermark.:

{exp:ce_img:pair src="{client_logo}"
 
height="50"
 
width="100"
 
alt="{title}" 
 
parse="inward"}

 {exp
:ce_img:single 
  src
="/assets/img/watermark_100x50.png"
  
height="50" 
  
width="100"
  
crop="yes"
  
disable_xss_check="yes"
  
watermark="{made}|0,0|100|center,center|0,0"}

{
/exp:ce_img:pair} 


Any thoughts? Thanks dude!

 

Causing Effect - Aaron Waldon
# 1
Developer
Causing Effect - Aaron Waldon

Hi AJP!

Would you mind emailing me the source images you are using so I can test them out?

Causing Effect - Aaron Waldon
# 2
Developer
Causing Effect - Aaron Waldon

Yeah, that’s interesting. I’m not sure what would cause that. Were the images saved as 8-bit pngs, or losslessly compressed? Sometimes preprocessing images can confuse the GD library. Merely opening up the logo images in Photoshop and re-saving them fixed 3 of the 4 logos.

Since all of the images have a solid white background, you can add

save_type="jpg" 

to the ce_img:single tag to save them to jpg format. That completely resolved the issue in my tests.

AJP
# 3
AJP

Saving as jpg worked. Hopefully we’ll get some new logos from the client that would resolve this as well.
Thanks!

Causing Effect - Aaron Waldon
# 4
Developer
Causing Effect - Aaron Waldon

You’re welcome AJ. :)