correct uploaded images - 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: correct uploaded images (/showthread.php?tid=52742) |
correct uploaded images - El Forum - 06-24-2012 [eluser]Unknown[/eluser] Hi, I need to correct a big problem in my webSite: during 1 year we upload 3000 photos. Now with my new deign i need to resize and create 4 images from every uploaded image exemple: before: /images/picture.jpg /images/thumbs/picture.jpg Now: /img/picture.jpg /img/thumb_picture.jpg /img/slider_picture.jpg /img/resized_picture.jpg So it's clear that we need to select from the data base every picture and move it after duplication to the new folder. i use image_lib I know that this code doesnt work. any idea how to resolve this ? thx Code: function upload_model(){ |