Skip to content

Commit b552d8e

Browse files
fix detection of small RGB images (#75)
1 parent 2408ad5 commit b552d8e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ImageInTerminal.jl

+2-2
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@ function choose_sixel(img::AbstractArray)
5555
# Small images really do not need sixel encoding.
5656
# `60` is a randomly chosen value (10 sixel); it's not the best because
5757
# 60x60 image will be very small in terminal after sixel encoding.
58-
any(size(img) .≤ 12) && return false
59-
all(size(img) .≤ 60) && return false
58+
any(size(img)[1:2] .≤ 12) && return false
59+
all(size(img)[1:2] .≤ 60) && return false
6060
return true
6161
end
6262
end

0 commit comments

Comments
 (0)