holoviz-topics / imagen

ImaGen: Generic Python library for 0D, 1D and 2D pattern distributions
https://imagen.holoviz.org/
BSD 3-Clause "New" or "Revised" License
31 stars 16 forks source link

imagen.image should not require PIL #42

Open jbednar opened 9 years ago

jbednar commented 9 years ago

Currently, imagen.image can only be imported if PIL is available, yet it should be possible to use all of its features even without PIL because it can load Numpy .npy files, and Numpy is already a core dependency. It's slightly tricky to remove the dependency on PIL, because it's used in some parameter default values, but it's worth doing so that all functionality will be available without PIL. Plus it would then be easier to support non-PIL image loading libraries.