problem with image_lib in on-the-fly resize image |
[eluser]Pierre Sandora[/eluser]
Hello, I have a problem with this code, but I dont know where. The image was not displayed, however, none error was showed and $this->image_lib->resize() returned true. Code: function exibir_imagem($perfil_atributo_id) { //controller function Response headers: Quote:Date: Sun, 18 Jan 2009 22:41:48 GMT In http://localhost/code/usuario/exibir_imagem/80 appear a broken image. I use Windows, GD2 is ok, my permissions are ok, files were created, why the image dont display? Thank friends.
[eluser]Pierre Sandora[/eluser]
An information I wrote a file teste.php with this code and run out of CI: Code: ob_start(); and teste.php work perfectly. After I change my controller function with same code of teste.php and appear the same problem again, a broken image. I thought that could be includes before $this->image_lib->resize(), so I put an ob_start() and ob_end_flush() in index.php of the my project, but dont work too. But now I think that the problem is in the way that I use, maybe there is other way to make this, or in the CI's structure.
[eluser]Pierre Sandora[/eluser]
Solved I put a Code: while (@ob_end_clean()); Code: $this->image_lib->resize(); |
Welcome Guest, Not a member yet? Register Sign In |