Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if ($function_name eq "resizeKeepAspect")
- {
- my $ratio = $params[0] / $image1->Get('width');
- my $height = $ratio * $image1->Get('height');
- main::_log("exec $function_name($params[0],$height)");
- $image1->Resize('width'=>$params[0],'height'=>$height);
- main::_log("width=".($image1->Get('width'))." height=".($image1->Get('height')));
- $procs++;
- next;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement