Image Manipulation Class causing strange blackness (pics included) |
[eluser]Gwarrior[/eluser]
As the title says, when I resize an uploaded file, it is making the actual image appear in the corner and the rest of the image black. So in essence, it works, but for some reason not fully correctly. It seems as if it is keeping the pictures default ratio, even though I have configed that out. To understand what I mean, please look at the images on this page. Below is the function in my class that does the upload. Code: // upload a picture, plus resize the image provided into a thumbnail Any help? Thanks!
[eluser]Gwarrior[/eluser]
But now, without any code changes, it magically works. Hmph. Thanks anyway!
[eluser]BrianDHall[/eluser]
I think you'll find the problem is with transparent images. GD/GD2, the default library CI uses for image manipulation, doesn't properly support transparent GIF and PNG files, so if you resize them they end up with a black background. There was a fix posted here somewhere, I just can't recall the link...
|
Welcome Guest, Not a member yet? Register Sign In |