Re: [julia-users] Example of imread from an imagemagick stream

2015-05-18 Thread Yakir Gagnon
I’m now using open instead of readandwrite… ​ Yakir Gagnon The Queensland Brain Institute (Building #79) The University of Queensland Brisbane QLD 4072 Australia cell +61 (0)424 393 332 work +61 (0)733 654 089 On Fri, May 15, 2015 at 10:27 AM, Yakir Gagnon 12.ya...@gmail.com wrote: Thanks!

Re: [julia-users] Example of imread from an imagemagick stream

2015-05-14 Thread Tim Holy
If you dig through the commit history of Images.jl, at some point you'll find the commit that switched from using Cmd to the C api for interacting with ImageMagick. That should have quite a few examples. --Tim On Thursday, May 14, 2015 05:25:19 AM Yakir Gagnon wrote: Can someone please post a

Re: [julia-users] Example of imread from an imagemagick stream

2015-05-14 Thread Yakir Gagnon
Thanks! OK, I finally found the commit you were talking about (commit 7ba0d6093c093acfc5c1d71fa3cad1ff33bccdfc). I managed to find an example for the stuff I wanted: cmd = `convert $filename -depth $bitdepth $colorspace:-` stream, _ = readsfrom(cmd) nchannels = length(colorspace) data =