CodeIgniter Forums
Image Manipulation Class - Printable Version

+- CodeIgniter Forums (
+-- Forum: Archived Discussions (
+--- Forum: Archived General Discussion (
+--- Thread: Image Manipulation Class (/thread-34224.html)

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

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

from the userguide (

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';