Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Optimize runtime with Image::Magick;

by tangent (Parson)
on Mar 07, 2019 at 00:32 UTC ( [id://1230990]=note: print w/replies, xml ) Need Help??


in reply to Optimize runtime with Image::Magick;

There is an alternative way to write directly to STDOUT:
print "Content-type: image/tiff\n\n"; binmode STDOUT; $img->Write('tif:-');
I thought this might have saved some time but when I tested it on a 75Mb tif image it took 3 seconds using both this method and ImageToBlob(). I guess that's just how long it takes to write the image.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1230990]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (5)
As of 2024-04-16 13:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found