Cody Fendant has asked for the wisdom of the Perl Monks concerning the following question:
I'm trying to write a module which turns images into data.
I've got it working with Image::Magick but what if I wanted it to work with that or GD::Image, depending what the user has? Plus other things as well maybe.
Should I try to detect what's on the system? Should I make MyModule::ImageMagick and MyModule::GD and make the user choose?
What's the right way to do this kind of thing?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Best practice for a module which can use one of multiple image modules
by Corion (Patriarch) on Aug 17, 2019 at 06:27 UTC | |
|
Re: Best practice for a module which can use one of multiple image modules
by haukex (Archbishop) on Aug 17, 2019 at 06:28 UTC | |
|
Re: Best practice for a module which can use one of multiple image modules
by Your Mother (Archbishop) on Aug 17, 2019 at 16:44 UTC | |
|
Re: Best practice for a module which can use one of multiple image modules
by bliako (Abbot) on Aug 19, 2019 at 22:04 UTC | |
|
Re: Best practice for a module which can use one of multiple image modules
by jcb (Parson) on Aug 17, 2019 at 06:32 UTC | |
|
Re: Best practice for a module which can use one of multiple image modules
by etj (Priest) on Apr 30, 2022 at 13:58 UTC | |
|
Re: Best practice for a module which can use one of multiple image modules
by Anonymous Monk on Aug 19, 2019 at 17:35 UTC |