diff options
author | Soumith Chintala <soumith@gmail.com> | 2016-05-01 18:01:43 +0300 |
---|---|---|
committer | Soumith Chintala <soumith@gmail.com> | 2016-05-01 18:01:43 +0300 |
commit | 193477ef8e92f36b57324690c154fc75996761dc (patch) | |
tree | 47510e2f81a3641321eadf2f4f1f6041c7aca2aa | |
parent | 0680e1fc7b99c0d6aaebc2985aa4df18f082c1b9 (diff) | |
parent | 346c33a842b88eaa992f65cecb5d34fd6487820b (diff) |
Merge pull request #163 from fmassa/scale_boundary
Fix in image.scale when one of the dimensions is too small
-rw-r--r-- | init.lua | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -648,6 +648,8 @@ local function scale(...) dok.error('could not find valid dest size', 'image.scale') end if not dst then + height = math.max(height, 1) + width = math.max(width, 1) if src:nDimension() == 3 then dst = src.new(src:size(1), height, width) else |