Search found 2 matches

by yosh
2017-06-08T08:10:19-07:00
Forum: PerlMagick
Topic: Expensive resizing to multiple output files
Replies: 3
Views: 91239

Re: Expensive resizing to multiple output files

Ok, actually just after I wrote this I've found the Clone() method and changed the scaling to: my $img = Image::Magick->new; $img->Read($inputfile); foreach my $outputfile(@outfiles) { my $temp = $img->Clone(); $temp->Scale(geometry => "${scale}x${scale}"); $temp->Write($outputfile); undef $temp ...
by yosh
2017-06-08T07:57:00-07:00
Forum: PerlMagick
Topic: Expensive resizing to multiple output files
Replies: 3
Views: 91239

Expensive resizing to multiple output files

Hello, I'm looking for less expensive way to resize one image to multiple output files. Let's say I have one input JPEG image (i.e. 3500 x 2500 px, around 3MB). Is there a way to read this file once and resize it to multiple output formats, without reading the source file again? Currently I'm doing ...