question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

support freeimage plugin instalaltion using pip install imageio[freeimage]

See original GitHub issue

At the moment the freeimage plugin needs to be installed using either imageio_download_bin freeimage or imageio.plugins.freeimage.download(). This has to be run after the python environment has been set up with pip.

This is not ideal as one may want to be able to install the plugin when setting up the python environment with pip and not later at run time or in a post-installation script. One would also want the executable to be downloaded in the imageio module folder instead of being download in the user local folder. In contrast the plugin gdal can be installed pip install imageio[gdal] and thus is would be great to support pip install imageio[freeimage] as well.

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:9 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
FirefoxMetzgercommented, May 25, 2022

Yes we can, but it looses the ability to auto-import. I.e., you’d have to do something like

import imageio.v3 as iio
import imageio_freeimage

This would make import imageio_freeimage register the plugin in imageio (assuming we add logic for this) and any code below would pick it up and choose it automatically again.

That is until I figure out how entry points for packages are supposed to work and we can begin to auto-discover/auto-configure plugins that live in external packages. This would be a generic interface so it wouldn’t be a derivative work and should be resistant to GPL.

0reactions
almarkleincommented, May 25, 2022

No idea if adding config entries for a library is enough to make it count as derivative work

Eek! Good point. I think it might. Do we still have an option for external code to register itself as a plugin? If not, I suppose imageio-freeimage would have to be a standalone lib?

Read more comments on GitHub >

github_iconTop Results From Across the Web

imageio.plugins.freeimage
Read/Write images using FreeImage. Backend Library: FreeImage. Note. To use this plugin you have to install its backend: imageio_download_bin freeimage.
Read more >
imageio/freeimage.py at master - GitHub
Python library for reading and writing image data. ... imageio/imageio/plugins/freeimage.py ... To use this plugin you have to install its backend::.
Read more >
Install Freeimage plugin in Starcluster - python - Stack Overflow
I set up a cluster on AWS using Starcluster and I want to run some script that requires loading .jp2 images with the...
Read more >
io.plugins freeimage installation issue? - Google Groups
I'm using the freeimage plugin for reading uint8 and float32 Grey- scale TIFF files. ... installation. The readme file from FreeImage didn't help...
Read more >
smc.freeimage - PyPI
Python wrapper for FreeImage and LCMS2 libraries. ... compatible with Python 2.6 to 3.3. Performance ... Static build support, no need for "make...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found