CodeIgniter Forums

Full Version: Image Manipulation Class
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

[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 ???????

El Forum

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