![]() |
Multiple thumbnails just isn't happening. - 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: Multiple thumbnails just isn't happening. (/showthread.php?tid=21556) |
Multiple thumbnails just isn't happening. - El Forum - 08-13-2009 [eluser]JasonS[/eluser] For some reason I cannot convert more than one thumbnail. Code: if ($this->upload->do_upload('picture1')) The second picture2 doesn't resize the image and doesn't display any errors. A picture is being uploaded. Any ideas what is happening here? Multiple thumbnails just isn't happening. - El Forum - 08-13-2009 [eluser]designfellow[/eluser] Hi, change upload field names as array and use foreach loop to generate thumbnails. Multiple thumbnails just isn't happening. - El Forum - 08-13-2009 [eluser]JasonS[/eluser] Can you clarify this please. The filenames are in the db array. How would I use a foreach to loop through these thumbnails? I do not see how this would be much different to what I am doing now. If the 'if' statements are not working then why would a foreach loop? Multiple thumbnails just isn't happening. - El Forum - 08-13-2009 [eluser]pistolPete[/eluser] You load the image library twice and you omitted calling resize() for the second image; try this instead: User guide: Quote:The clear function resets all of the values used when processing an image. You will want to call this if you are processing images in a loop. Code: if ($this->upload->do_upload('picture1')) |