Welcome Guest, Not a member yet? Register   Sign In
we have an avatar image that we resize maintaining ratio, the problem its that the resulting image has different sizes
#1

[eluser]dinisptc[/eluser]
we have an avatar image that we resize maintaining ratio, the problem its that the resulting image has different sizes depending on the size of the original image


i am using GD to resize the image

Code:
$config['images']['upload_path'] = $path_for_all;
$config['images']['allowed_types'] = 'jpg|png|gif';
$config['images']['max_size'] = '0';
$config['images']['maintain_ratio']= true;
$config['images']['width'] = 400;
$config['images']['height'] = 400;
$config['images']['new_image'] = $path_for_all;
$config['images']['thumb_maintain_ratio']= true;
$config['images']['thumb_width'] = 200;
$config['images']['thumb_height'] = 200;
$config['images']['encrypt_name']     = true;

how can i have always 200px 200px image always as a result ?
#2

[eluser]Otemu[/eluser]
Hi,

Checkout the solutions here http://www.questionhub.com/StackOverflow/3697309




Theme © iAndrew 2016 - Forum software by © MyBB