Comments (16)
How about deferring the actual import to within the _open
methods where possible? This will work for tifffile
and swf
.
from imageio.
See #98 for implementation.
from imageio.
Yes, that makes sense. Setup.py won't need changing, but people who freeze an app that makes use of imageio should include these _tiffile.py
and the likes. Maybe we can provide some functionality to help such users.
from imageio.
I have no experience with freezing, and I'm on OSX.
from imageio.
Would you like a PR that defers loading of _swf.py
?
from imageio.
I got cx_freeze
working and verified that mimread
and mimsave
work with a mult-page tif file.
from imageio.
But I suppose that you had to add _tiffile.py
or tiffile.py
(the 5k one) to the includes?
from imageio.
The only change I made to imageiotest_freeze.py
was to remove this line, because that function does not exist in freeze.py.
from imageio.
I assume that function should have been needed, in which case it looks like the frozen folder is not truly isolated.
from imageio.
I also noticed that when the app is frozen it cannot pull files from github due to an https error with urlparse
. I think freezing is an antipattern for many reasons.
from imageio.
I think freezing is an antipattern for many reasons.
haha, very True. Ah well, we'll see what happens.
Would you like a PR that defers loading of _swf.py?
Forgot to answer that: Sure, since its already split, it should be easy. To do the same for e.g. DICOM would need some refactoring; we can safe that for later.
from imageio.
Sure, I'll take a stab at both PRs. Are you going to the SciPy conference by chance?
—
Sent from Mailbox
On Sun, Jul 5, 2015 at 1:42 PM, Almar Klein [email protected]
wrote:
I think freezing is an antipattern for many reasons.
haha, very True. Ah well, we'll see what happens.
Would you like a PR that defers loading of _swf.py?Forgot to answer that: Sure, since its already split, it should be easy. To do the same for e.g. DICOM would need some refactoring; we can safe that for later.
Reply to this email directly or view it on GitHub:
#33 (comment)
from imageio.
Nope, I'm going to Euroscipy in August.
from imageio.
Ah well, perhaps Google Hangout sometime to discuss strategy?
—
Sent from Mailbox
On Sun, Jul 5, 2015 at 1:52 PM, Almar Klein [email protected]
wrote:
Nope, I'm going to Euroscipy in August.
Reply to this email directly or view it on GitHub:
#33 (comment)
from imageio.
Yes, would be good!
from imageio.
Closing this, since we've made good progress here, and #110 is on the way to help more.
from imageio.
Related Issues (20)
- imread() fails on HTTPS, code example from documentation HOT 3
- 8bit grayscale now loaded as RGB HOT 5
- 2.31.4: documentation build fails HOT 1
- iio pyav plugin crash along with python when handling a webm file, setting format to rgba HOT 2
- It does not seem to support avif image format HOT 1
- Support for Pillow v10.1 (re: setting `image.mode`) HOT 8
- Inconsistency when reading floating point .exr image file HOT 3
- imageio.imread changes the values of graycale pixels, try to read 12-bit png grayscale image. HOT 8
- super slow video reads HOT 6
- imageio v2.33.0 requieres Pillow>=9.1.0 for GIFs HOT 1
- Trouble using freeimage plugin on MacOS arm64 HOT 2
- 2.33.1: pytest is failing in 5 units HOT 1
- [Question] What tonemapping method does the imageio library use when reading HDR images? HOT 2
- title of the gif got stacked together HOT 2
- UnicodeDecodeError if metadata is not UTF-8 encoded (pyav plugin) HOT 3
- [request] more color/palette control on GIF writing HOT 3
- Transition from v2 ffmpeg read/write to v3 pyav read/write: quality, batching HOT 7
- AttributeError: 'SeekableFileObject' object has no attribute 'readline' HOT 1
- Find out what kwargs are available for each function
- Only partial DICOM layers loading in Google Colab using imageio.volread HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from imageio.