Re: [julia-users] Image not saving

2016-05-02 Thread Tim Holy
Really glad you got it working! I understand how frustrating it can be when even the simple things don't work as expected. Best, --Tim On Monday, May 02, 2016 09:18:47 AM yousef.k.alham...@gmail.com wrote: > For some unusual but fortunate reason, the "save" function is now working > as

Re: [julia-users] Image not saving

2016-05-02 Thread yousef . k . alhammad
For some unusual but fortunate reason, the "save" function is now working as expected. Maybe it was an out-of-date package because the stale package caches were recompiled. After that, I can now save images directly from Float64 arrays without any problems. Thank you for you time and patience.

Re: [julia-users] Image not saving

2016-05-01 Thread Tim Holy
Can you post a complete example? For example, julia> using FileIO julia> save("/tmp/test.png", rand(5,6)) Just Works for me. (I can open it in another program and see a small random checkerboard pattern.) Also, julia> using Images, Colors julia> mapi = MapNone{U8}()

Re: [julia-users] Image not saving

2016-05-01 Thread yousef . k . alhammad
Tim, I understand that values must fall within [0,1]. However, rand only produces values that fall within that interval. For some reason, the package does not seem to find that true. Looking at the error message, it says:

Re: [julia-users] Image not saving

2016-04-28 Thread Tim Holy
The key line in the error message is "out-of-range values": if you're using `Float64`, black corresponds to 0.0 and white corresponds to 1.0. It's alerting you that some of your values went outside that range. If it didn't alert you to this problem in some way, then you'd wonder "how come I had

[julia-users] Image not saving

2016-04-28 Thread cormullion
When I plotted a Julia set, I used this: array = Array{UInt8}(size, size, 3) imOutput = Images.colorim(array) then for each pixel imOutput.data[x, y, :] = [r, g, b] then to output: FileIO.save(filename, imOutput)

[julia-users] Image not saving

2016-04-28 Thread yousef . k . alhammad
Hello all, I'm trying to save PNG images of the mandelbrot set. So, I've been using the package Images to do so. To get a grip around how the package works, I've decided to test out the function "save". I've given it a filename to save in and a random two-dimensional array of Float64s