Commit 9b3c9dc1b3026aad3249cbeee25be19c38038936
Fix rotation of images with orientation 3
Anders Rune Jensen committed on 6/3/2018, 5:11:40 PMParent: 4c0c409cd7a5579f4124e219490314b288009dbb
Files changed
blob/html/input.js | changed |
blob/html/input.js | |||
---|---|---|---|
@@ -169,10 +169,10 @@ | |||
169 | 169 … | } | |
170 | 170 … | } else if (orientation === 3) { | |
171 | 171 … | canvas.width = img.width | |
172 | 172 … | canvas.height = img.height | |
173 … | + ctx.translate(img.width / 2, img.height / 2) | ||
173 | 174 … | ctx.rotate(1 * Math.PI) | |
174 | - ctx.translate(img.width / 2, img.height / 2) | ||
175 | 175 … | } else { | |
176 | 176 … | return img | |
177 | 177 … | } | |
178 | 178 … |
Built with git-ssb-web