Skip to content

Commit 77bc096

Browse files
committed
Merge pull request #14 from bobbens/rgba
Support RGBA images by dropping alpha channel..
2 parents 1ca5c44 + 4998d98 commit 77bc096

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

images.lua

+2
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ function preprocess(img, scale)
1212
copy[2] = img[1]
1313
copy[3] = img[1]
1414
img = copy
15+
elseif img:size(1) == 4 then
16+
img = img[{{1,3},{},{}}]
1517
end
1618

1719
local w, h = img:size(3), img:size(2)

0 commit comments

Comments
 (0)