Resize in different sizes - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: Model-View-Controller (https://forum.codeigniter.com/forumdisplay.php?fid=10) +--- Thread: Resize in different sizes (/showthread.php?tid=69256) |
Resize in different sizes - Marcolino92 - 10-27-2017 Hi guys, I would like to upload an image that is cropped in different sizes, all at once, I did some tests and this is my controller. I would therefore like the 16x16 measure to go to the upload/16 directory and so on. Code: Old code **** I loaded the library "image_lib" in the autoload. RE: Resize in different sizes - Marcolino92 - 10-28-2017 Guys, let's say I've solved it. Now the uploaded image is resized in the different sizes, but I would like to have the same encrypted name in size 16x16 but with extension .ico Code: $config['image_library'] = 'gd2'; I was thinking of doing this in the simple way, but unfortunately I'm mistaken: Code: $config['image_library'] = 'gd2'; |