Skip to content

Loading images with ImageMagick backend within a package #277

@VPetukhov

Description

@VPetukhov

I have a package (Baysor), which has both Images and ImageMagick in its dependencies. And I have a function that loads images. So, when one installs the package, ImageMagick is technically installed, but it's not in the global julia environment, so one needs to activate Baysor before using it (which is fair). However, when one tries to call the Baysor function, which loads images, it results in ArgumentError("Package ImageMagick not found in current path:\n- Run import Pkg; Pkg.add(\"ImageMagick\") to install the ImageMagick package.\n") (see kharchenkolab/Baysor#6). Which means that anyone who wants to use Baysor, needs to install ImageMagick manually, and it kills the whole point of automated management of package dependencies. I suppose that calling ImageMagick.load instead of Images.load would work there, but ImageMagick readme explicitly says that "You should not generally say using ImageMagick". Would it be possible for FileIO to search ImageMagick within the environment of the current project, or should the ImageMagick suggestion simply be ignored in my case?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions