vendor/assets/javascripts/locomotive/resizeImage.js in locomotivecms-3.0.0.pre.alpha vs vendor/assets/javascripts/locomotive/resizeImage.js in locomotivecms-3.0.0.pre.alpha.2
- old
+ new
@@ -21,11 +21,10 @@
self.ctx = getContext(self.canvas)
self.ctx.imageSmoothingEnabled = true
self.ctx.mozImageSmoothingEnabled = true
self.ctx.oImageSmoothingEnabled = true
- self.ctx.webkitImageSmoothingEnabled = true
if (img.naturalWidth <= width || img.naturalHeight <= height) {
console.log("FAST resizing image", img.naturalWidth, img.naturalHeight, "=>", width, height)
self.canvas.width = width
@@ -213,10 +212,9 @@
var context = canvas.getContext('2d')
context.imageSmoothingEnabled = true
context.mozImageSmoothingEnabled = true
context.oImageSmoothingEnabled = true
- context.webkitImageSmoothingEnabled = true
return context
}
// returns a function that calculates lanczos weight