git ssb

7+

dinoworm 🐛 / patchcore



Commit 9b3c9dc1b3026aad3249cbeee25be19c38038936

Fix rotation of images with orientation 3

Anders Rune Jensen committed on 6/3/2018, 5:11:40 PM
Parent: 4c0c409cd7a5579f4124e219490314b288009dbb

Files changed

blob/html/input.jschanged
blob/html/input.jsView
@@ -169,10 +169,10 @@
169169 }
170170 } else if (orientation === 3) {
171171 canvas.width = img.width
172172 canvas.height = img.height
173 + ctx.translate(img.width / 2, img.height / 2)
173174 ctx.rotate(1 * Math.PI)
174- ctx.translate(img.width / 2, img.height / 2)
175175 } else {
176176 return img
177177 }
178178

Built with git-ssb-web