CodeIgniter Forums
Image Data after manipulation - 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 Data after manipulation (/showthread.php?tid=23435)



Image Data after manipulation - El Forum - 10-11-2009

[eluser]faxtion[/eluser]
Hi,

Been banging my head about this for a while, and have given up trying all different ways to achieve it.

Right...

I have the upload script working, which uploads image to a folder on my server, then all the image data is stored in a table within my database.


What I need is:

The upload script to upload the file - Which I have done
Then I want to resize the image - Which I have done
Now I want to store the new image data to the database which should contain the new image size's but for some reason I am not able to get the new image data, i end up putting the original image data into the database

Is there anyone who can help me please, it will probably be an easy solution but for some reason I am not able to see it yet


Image Data after manipulation - El Forum - 10-11-2009

[eluser]Twisted1919[/eluser]
why not use php's native getimagesize() function ?
http://php.net/getimagesize


Image Data after manipulation - El Forum - 10-11-2009

[eluser]BrianDHall[/eluser]
If you look down into the source code for the upload/resize libraries in CI you'll find they actually use getimagesize() themselves, so that should give you want you need.