Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight

Re: Perl::Magick maxes my systems processor usage

by MrCromeDome (Deacon)
on Jul 03, 2003 at 17:28 UTC ( #271242=note: print w/replies, xml ) Need Help??

in reply to Perl::Magick maxes my systems processor usage

Just checking through my nodes. Found an answer to this some time ago, and thought I would post a response for anyone who stumbles into the same situation:

The bottleneck would appear to be the TIF image compression. If you disable compression in the following manner:

$success = $img->write(filename=>$path, compression=>'None');
the program screams. Of course, as the purpose of my script is to save space, this isn't optimal ;)

The compression functionality may work faster on a *nix platform, which is unfortunately not an option for what I'm doing here. As such I have done no testing to either prove or disprove this. So you may wish to take this with a grain (if not a pound) of salt if attempting this on *nix.

Good luck!

Log In?

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

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (7)
As of 2023-11-29 11:28 GMT
Find Nodes?
    Voting Booth?

    No recent polls found