Simple Resize Model Setup |
Another quick little code came up with if any one wants to use.
If you would like to resize images with out having to put a resize function in each controller each time, you could use this model and then in your controller All you would have to enter is $this->image_resize->resize('1.jpg', 100, 100); the first one is image name, the second part is image width size and third is image height. make sure load model of course in controller. PHP Code: <?php
There's only one rule - please don't tell anyone to go and read the manual. Sometimes the manual just SUCKS!
|
Welcome Guest, Not a member yet? Register Sign In |