Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Optimize runtime with Image::Magick;

by tangent (Vicar)
on Mar 07, 2019 at 00:32 UTC ( #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? | Other CB clients
Other Users?
Others imbibing at the Monastery: (3)
As of 2022-01-21 08:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In 2022, my preferred method to securely store passwords is:












    Results (57 votes). Check out past polls.

    Notices?