Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Best practice for a module which can use one of multiple image modules

by haukex (Chancellor)
on Aug 17, 2019 at 06:28 UTC ( #11104601=note: print w/replies, xml ) Need Help??


in reply to Best practice for a module which can use one of multiple image modules

Should I try to detect what's on the system? Should I make MyModule::ImageMagick and MyModule::GD and make the user choose?

I would say that it depends. If you are using the modules simply to generically load images, and nothing else, as your previous post implies, then it might be easier to auto-detect what modules the user has on their system (Imager is another good one, BTW). If you are building on features that the modules provide, then since your code will depend more tightly on the modules' API, then the second option might make more sense.

  • Comment on Re: Best practice for a module which can use one of multiple image modules

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (4)
As of 2019-11-18 01:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Strict and warnings: which comes first?



    Results (87 votes). Check out past polls.

    Notices?