PNG transparencies showing as black?

Hello there,

I’m trying to troubleshoot why my png image with transparent pixels is showing up black at all transparent parts of the image?

If you go here: http://activestatedesigns.com/flagsilhouettes/colorado/skier01-coflag01 the last image in the thumbnails has a black background. If you select it, the image shows up correctly when enlarged. I’m thinking it has something to do with the coding in the theme?

Source image is here: http://activestatedesigns.com/wp-content/uploads/FLAG-CO-Skier01-mock-m-AA-navy2.png

Can anyone help troubleshoot this?

Thanks,
Lorne

It appears that WordPress is caching your image with the black background.

Cached: http://activestatedesigns.com/wp-content/uploads/cache/FLAG-CO-Skier01-mock-m-AA-navy2_355.png
Live: http://activestatedesigns.com/wp-content/uploads/FLAG-CO-Skier01-mock-m-AA-navy2.png

I’m not sure why this would be happening, but you could try clearing out that cache directory and see if that forces WordPress to recache the image.

if you using the WP resizing to resize original images, there is a related trac in WP –> http://core.trac.wordpress.org/ticket/2805#comment:12

How might I go about clearing the wordpress cache? I don’t see a cache folder under wp-content/cache. What am i missing?

I don’t see a fix on this page. The post is 4 years old and sends me to admin-functions.php and line 2294 however that line doesn’t exist in my version of Wordpress. Any ideas to remedy my issue?

Thanks,
Lorne

How might I go about clearing the wordpress cache? I don’t see a cache folder under wp-content/cache. What am i missing?

I have no idea - sorry. You don’t see the folder because WordPress is rewriting the URL for you with .htaccess. I just pointed it out because clearly there is a cached version of that image hanging out there somewhere. As to how you’re going to get to it, hopefully someone else on here knows more about WordPress than us. :slight_smile: