CodeIgniter Forums
image_lib problem with nothing to resize - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: image_lib problem with nothing to resize (/showthread.php?tid=8154)



image_lib problem with nothing to resize - El Forum - 05-07-2008

[eluser]Unknown[/eluser]
Hello,

I spent some time to realise that on my production server (linux box, GD2...), when i want to use image_lib to resize some uploaded image to a new size, matching the actual size, I got some problem : the new file created by image_lib is null ( I mean 0 octet file size).

On the other hand, on my dev station (macos x + MAMP), everything is ok : whatever the new size and actual size of the file image, the resize is working...

so before using image_lib, Im on my way to use some "getimagesize" to know if i need to resize or not...

Is it normal ?
Am i the only one with that little trouble ? I spent a lot of time to figure that problem...

( Im french, so be kind with my english).

Thank you for reading.