polysize-rails 0.0.6.5 → 0.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 75fe94a5e925ccb3dbdd4fd78fabffc36ba97e07
4
- data.tar.gz: 63f9d867d5b92b62db945f9e385bfeaf4d4015fa
3
+ metadata.gz: 124d580bd06557c0962b09eecc886ac9b3ea532b
4
+ data.tar.gz: 8eab7d198e53b14fc46fd77c4c3d2fecb0c407f8
5
5
  SHA512:
6
- metadata.gz: 2d0cc441093071e904e3b10602800f83b9fc2032fa1636322bdff035986f531c064f90d56bd8b719ea5e2c0b9c79066a9a89fd313596727838615e66ccba5c98
7
- data.tar.gz: 98cef4ca11aaefade6e56144bec7c7e6735930d581720fde54bfcd340b90afe48cb7a3e2a4444ff687045efb4b2fd7a4a9ebf0c2b5da7abcf86024472e443116
6
+ metadata.gz: cb8f29f57b281cf6bb3f1c35b2494334aca81e1f7714c55301d097185439cd705ba556dcb03cfcd21777efa345e7636b703c6a5f22e149306864f47bbd2c2c01
7
+ data.tar.gz: 3b06c67fd07bf16fd81d76573f140d679eaf7c52b088bcd905ad8e253d23fbba1f8ff4834b2f06bf28b1f3f4e362fb43c227d087f79f6f25306eb6ebf8764a23
@@ -1,3 +1,3 @@
1
1
  module PolysizeRails
2
- VERSION = "0.0.6.5"
2
+ VERSION = "0.0.7"
3
3
  end
@@ -147,9 +147,12 @@ window.Polysize = (function() {
147
147
  canvas.width = bounds[0];
148
148
  canvas.height = bounds[1];
149
149
  ctx = canvas.getContext('2d');
150
- ctx.imageSmoothingEnabled = true;
151
- ctx.webkitImageSmoothingEnabled = true;
152
- ctx.mozImageSmoothingEnabled = true;
150
+ if (typeof(ctx.imageSmoothingEnabled) !== 'undefined') {
151
+ ctx.webkitImageSmoothingEnabled = true;
152
+ ctx.mozImageSmoothingEnabled = true;
153
+ } else {
154
+ ctx.imageSmoothingEnabled = true;
155
+ }
153
156
  ctx.drawImage(img, 0, 0, img.width, img.height, x, y, w, h);
154
157
  img.src = canvas.toDataURL('image/jpeg');
155
158
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: polysize-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6.5
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Douglas Waltman II