These are chat archives for thunder-project/thunder

19th
Jan 2015
industrial-sloth
@industrial-sloth
Jan 19 2015 21:19
whoa. are we back?
Jeremy Freeman
@freeman-lab
Jan 19 2015 21:19
yup!
industrial-sloth
@industrial-sloth
Jan 19 2015 21:21
right then! as I was saying: not immediately overwhelmed by imageio. (here: https://github.com/imageio/imageio)
Jeremy Freeman
@freeman-lab
Jan 19 2015 21:21
why?
industrial-sloth
@industrial-sloth
Jan 19 2015 21:21
so far as I can tell, they really don't have any support for multipage tifs
they are largely a wrapper for freeimage: http://freeimage.sourceforge.net/, which does support multipage tifs
so presumably this could be made to work, but yes, we'd be the ones to add it
am going to try and see whether i can get their animated gif i/o working - multipage tif would presumably end up looking similar
industrial-sloth
@industrial-sloth
Jan 19 2015 21:28
I like that it hands you a numpy array directly, instead of having to mess around with intermediate objects (like PIL Image objects)
and yeah, the animated gif support is pretty clean
Jeremy Freeman
@freeman-lab
Jan 19 2015 21:29
ok, that's promising!
industrial-sloth
@industrial-sloth
Jan 19 2015 21:29
```python
hmm
how do i get a code format block in here...
Jeremy Freeman
@freeman-lab
Jan 19 2015 21:29
like this
?
industrial-sloth
@industrial-sloth
Jan 19 2015 21:30
there's a chat mode / compose mode toggle at the right of the screen
Jeremy Freeman
@freeman-lab
Jan 19 2015 21:31
oh nice
industrial-sloth
@industrial-sloth
Jan 19 2015 21:31
reader = imageio.read("/home/jascha/Downloads/Dotdotdot.gif")
for i, img in enumerate(reader):
    print "Image %d" % i
^ so that's reading an animated gif
Jeremy Freeman
@freeman-lab
Jan 19 2015 21:32
certainly seems simpler than the current multi-page tif business
assuming it looks the same for tifs
industrial-sloth
@industrial-sloth
Jan 19 2015 21:32
well right now if you do that for a tif it tells you there's one page :)
Jeremy Freeman
@freeman-lab
Jan 19 2015 21:32
oh i see, so that's the part that needs to get added on their end?
industrial-sloth
@industrial-sloth
Jan 19 2015 21:33
yeah, something needs to get wired in between Freeimage (which does handle multipage tifs) and imageio (which does not)
industrial-sloth
@industrial-sloth
Jan 19 2015 22:23
next imageio concern, also alluded to by @broxtronix - looks like at the moment, the imageio Freeimage plugin (used for tifs) only supports reading from disk, not from memory, URLs, etc. Appears that if you had imageio a URL, it will write it to disk as a temp file first before handing that over to freeimage. Freeimage itself does support loading from memory, but the code to use this functionality in imageio is commented out.
sooo... imageio looks super promising, if development were to be continuing on it. as is it's missing at least one thing we need, and another we'd want, and so it'd take some work to get that functionality in place.
am also not sure how actively it's being worked on... it's pretty much a one-man show, and after a burst of activity around october, looks like he's been doing other things recently...
industrial-sloth
@industrial-sloth
Jan 19 2015 22:28
sigh. so much potential though. :)