I’m running into a problem using the jQuery Uploadify plugin in my cakePHP application.
It all works well apart from an issue I’m getting when I upload an image with transparency. Whenever I upload an image with transparency, the transparent areas of the image are stored as black.
I suspect this may be caused by the Uploadify plugin not loading the alpha channel of the image properly, but I can’t be sure.
Thanks for your contribution.
I have resolved the issue I have to change the bit of code inside the resize function of image component that I am using to upload image.
I have to put some code before :
imagecopyresampled($imgDes, $imgSrc, 0, 0, 0, 0, $width, $height, $trueWidth, $trueHeight);And the New code is as below :
Put this New code in below function of image component :