Welcome Guest, Not a member yet? Register   Sign In
[SOLVED] GD generates corrupt images with CI
#1

[eluser]Unknown[/eluser]
Hey Guys,

i'm using CI with the HMVC extension, everything works fine so far, but now i've got one problem.

I'm creating a users database. Every user can upload a picture to use as "avatar". I used the upload library for that.

For the display on a page i tried to load the uploaded picture and resize it to fix to a specific format via the image manipulation library and output it dynamically. Unfortunately the lib generates a corrupt image, so it can't be displayed. No error is shown, even if i set error_reporting to E_ALL.

I wrote a small script in another file on the webserver to load the same image - everything works fine!

Then in the CI controller, i wrote a simple script just to generate a black picture with a size of 200x200 pixels. It doesn't work. Again, there's no error! Nothing in the CI logs, nothing in the apache logs.

Does anybody know, what's happening here?

Greets
Chris




Theme © iAndrew 2016 - Forum software by © MyBB