We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 1ca5c44 + 4998d98 commit 77bc096Copy full SHA for 77bc096
images.lua
@@ -12,6 +12,8 @@ function preprocess(img, scale)
12
copy[2] = img[1]
13
copy[3] = img[1]
14
img = copy
15
+ elseif img:size(1) == 4 then
16
+ img = img[{{1,3},{},{}}]
17
end
18
19
local w, h = img:size(3), img:size(2)
0 commit comments