We are doing exactly the same type of thing here, using IM to rework some JPEG scans of POW records from WWII, and we found IM to be ... somewhat hackish. The only redeeming feature of IM is that it (somehow) works. However, whenever we get the chance, we use GD - smaller, faster, better documented, easier to install etc etc. I hope saying 'dont use IM' isn't too annoying an answer.
In this particular case we couldnt use GD becuase we ended up getting an annoying 'moire'-like pattern in the images processed by GD, but a nice smooth background in IM. I think it is a result of the paper we are scanning interacting with the particular algorithms that GD and IM use. This paper is old, being produced in 1930's to 40's. Being paper used for a government contract, it is quite low quality, being very coarse in appearance. You can also make out quite clearly the wire grid paper rested on as it came out the 'wet-end' of the pulp mill, before going through the felt rollers. GD doesn't seem to use any kind of image filtering, so I think the wire grid elements react quite strongly with the small image elements that JPEG uses. IM, by contrast, always puts an image through a filter, by default it is a filter called a Lanczos filter. This results in no patterning, but obviously filtering takes time.

In reply to Re: batch converting images with image::magick? by leriksen
in thread batch converting images with image::magick? by Anonymous Monk

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



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.