Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

comment on

( #3333=superdoc: print w/replies, xml ) Need Help??
This concerned me because this is such a trivial task: concatenate a few smallish images into a slightly larger one. And even for small images, it is taking several (5-7 seconds) per image. Using Powerbuilder and another imaging toolkit, I can do this much quicker, but it leaks memory like a sieve. I was hoping with Perl I could avoid the memory leak. Of course now I'm sucking up processor ;) I have to share this server with others, and my using too much processor is starving everyone else.

I considered using Imager or ImageMagick, but Imager chokes on multi-page TIFFs. ImageMagick seemed to work well in a brief test I ran, and what I read in the docs encouraged me:

Note that the QuantumDepth=8 version (Q8) consumes half the memory and about 30% less CPU than the QuantumDepth=16 version (Q16), but provides less color resolution. A Q8 version is fine for processing typical photos. If you are dealing with scientific or medical images or deal with images that have limited contrast, then the Q16 version is recommended. It is also possible to build a Q32 version which has enough resolution to deal with the latest reconnaissance images. Please let us know if there is any demand for the Q32 versions.

Given the nature of the task at hand, I thought the Q8 version would work well. It works, but not well :P

++ for the excellent suggestion - I will have to look into that. I hope it works as well as it sounds :)

Thanks a bunch!
MrCromeDome


In reply to Re: Re: Perl::Magick maxes my systems processor usage by MrCromeDome
in thread Perl::Magick maxes my systems processor usage by MrCromeDome

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (3)
As of 2023-12-02 05:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What's your preferred 'use VERSION' for new CPAN modules in 2023?











    Results (13 votes). Check out past polls.

    Notices?