problem with enlarge an image using Scale/Sample
Posted: 2006-12-04T14:04:36-07:00
I was trying to Converts and saves TIFF files with Group 4 compression , max width of 5800 px, max height of 5800 px and a distort aspect of 1.
Here is a list of commands I used:
my $res = $image->Set(compression=>'Group4');
my $res = $image->Scale(width=>5800, height=>5800);
my $res = $image->Write($outfile);
I tested it with an image of 4.3M and a Width of 2588 and length of 1731.
The output is ridiculous: a 22M image with a width of 5800 and length of 3879.
Anybody can tell me where i am wrong? Thanks for the help.
Here is a list of commands I used:
my $res = $image->Set(compression=>'Group4');
my $res = $image->Scale(width=>5800, height=>5800);
my $res = $image->Write($outfile);
I tested it with an image of 4.3M and a Width of 2588 and length of 1731.
The output is ridiculous: a 22M image with a width of 5800 and length of 3879.
Anybody can tell me where i am wrong? Thanks for the help.