Skip to content

Commit

Permalink
add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonDanisch committed Oct 6, 2015
1 parent 690eb81 commit cf9e85b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/ImageMagick.jl
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ export setimagecompressionquality
export setimageformat
export writeimage
export image2wand
export writemime_

include("libmagickwand.jl")

Expand Down Expand Up @@ -240,11 +241,13 @@ end

permutedims_horizontal(img) = permutedims(img, permutation_horizontal(img))

#lower level writemime. Writes the png format into an IO buffer
#gets called by writemime in images.
function writemime_(io::IO, ::MIME"image/png", img::AbstractImage)
wand = image2wand(img, Images.mapinfo_writemime(img), nothing)
blob = getblob(wand, "png")
write(io, blob)
end
export writemime_


end # module

0 comments on commit cf9e85b

Please sign in to comment.