PHPThumb icon indicating copy to clipboard operation
PHPThumb copied to clipboard

transparency issue when using show without other function

Open franklippes opened this issue 15 years ago • 2 comments

Hi there,

First of all, I really like the simplicity of this lib. I ran into a little problem though.

I created a simple caching mechanism. When i get a request for an image with the same parameters and i find it in the cache i do the following:

$thumb = PhpThumbFactory::create($cachefile); $thumb->show(); return;

This doesn't handle transparancy correctly, because 'preserveAlpha' is never called. Calling it doesn't work either, because the workingImage isn't set.

I hope you can come up with a solid solution

Regards, Frank Lippes

franklippes avatar Feb 12 '10 18:02 franklippes

I'll see what I can do about this one... seems like a simple enough thing to fix

masterexploder avatar Feb 26 '10 17:02 masterexploder

is there already a fix for this? i'm running into the same problem...

tijs avatar Dec 26 '10 12:12 tijs