CodeIgniter Forums
Image Manipulation Class - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21)
+--- Thread: Image Manipulation Class (/showthread.php?tid=34224)



Image Manipulation Class - El Forum - 09-23-2010

[eluser]Suhas nazir[/eluser]
Hi All I am using Codeigniter Image manipulation class to resize my image .I just want to store the new resized image with the same name of the actual file name ,Right Now it creates an image with some other name ,How can i use the same image name for the newly resized image ???????


Image Manipulation Class - El Forum - 09-23-2010

[eluser]eoinmcg[/eluser]
are you passing $config['new_image'] when you're initializing the class?

from the userguide (http://ellislab.com/codeigniter/user-guide/libraries/image_lib.html):

Quote:Creating a Copy

The resizing function will create a copy of the image file (and preserve the original) if you set a path and/or a new filename using this preference:
$config['new_image'] = '/path/to/new_image.jpg';