Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses

comment on

( #3333=superdoc: print w/replies, xml ) Need Help??

Along with what jcb suggested depending on what you're actually doing; a combination of Image::EXIF and PDL might cover what you want.

On the actual question. I think the best practice for this kind of situation is to create a set of platform targeted binaries or build packages which is really a lot of work and not Perly. If the code is targeted at developers, an interactive installation is fair where the user chooses the backend—defaults need to be there for automated testing—or to install dependencies.

I would say the average Perl installation does not have Image::Magick or GD::Image. Both are non-core and both can be a pain to build. If you have enough fall backs like Imager or the combination suggested above or some minimal pure Perl stuff you can package with your code then Corion’s suggestion starts to look quite sensible.

It all sounds like a lot of work for the problem though. I would gravitate towards the minimum pure Perl with dependencies included in the distribution if portability is the real concern.

In reply to Re: Best practice for a module which can use one of multiple image modules by Your Mother
in thread Best practice for a module which can use one of multiple image modules by Cody Fendant

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, 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, 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.
  • Log In?

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

    How do I use this? | Other CB clients
    Other Users?
    Others pondering the Monastery: (6)
    As of 2019-11-21 09:13 GMT
    Find Nodes?
      Voting Booth?
      Strict and warnings: which comes first?

      Results (104 votes). Check out past polls.