Welcome Guest, Not a member yet? Register   Sign In
original image still exist when thumb is created
#1

[eluser]Mitja B.[/eluser]
$config['image_library'] = 'GD2';
$config['source_image'] = './uploads/'.$imagename;
$config['create_thumb'] = FALSE;
$config['master_dim'] = 'width';
$config['quality'] = 75;
$config['maintain_ratio'] = FALSE;
$config['width'] = 133;
$config['height'] = 133;
$config['new_image'] = './uploads/'.$thumbnail;

when i am creating thumbs i want to leave orig image as is. How can i leave it, now is convertet to small one. I want boath images. I search in http://ellislab.com/codeigniter/user-gui...e_lib.html but i can not find.

Thx
#2

[eluser]pistolPete[/eluser]
Copied from the user guide:
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:

Code:
$config['new_image'] = '/path/to/new_image.jpg';
#3

[eluser]TheFuzzy0ne[/eluser]
Taken from the user guide:
Quote:Creating a Thumbnail

The resizing function will create a thumbnail file (and preserve the original) if you set this preference to TRUE:

$config['create_thumb'] = TRUE;
This single preference determines whether a thumbnail is created or not.

EDIT: Too slow Tongue
#4

[eluser]Mitja B.[/eluser]
Thx all




Theme © iAndrew 2016 - Forum software by © MyBB