Skip to content

Commit

Permalink
Fix the timedim correctly this time
Browse files Browse the repository at this point in the history
  • Loading branch information
rsrock committed Jul 22, 2014
1 parent 0c2d36a commit 49f4694
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/ioformats/OSXnative.jl
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,12 @@ function imread(filename)
"limits" => (zero(T), typemax(T)),
"imagedescription" => imagedescription,
"suppress" => Set({"imagedescription"})]
imframes > 1 && prop["timedim"] = ndims(buf)
# Does GrayAlpha count as a colordim??
colormodel != "Gray" && prop["colordim"] = 1

if imframes > 1
prop["timedim"] = ndims(buf)
end
if colormodel != "Gray" # Does GrayAlpha count as a colordim??
prop["colordim"] = 1
end
Image(buf, prop)
end

Expand Down

0 comments on commit 49f4694

Please sign in to comment.