pxlsrt 1.7.0 → 1.7.1

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: 5a70f5d32502428d68f198d43c0ee703814b0827
4
- data.tar.gz: 213ac35f136cf0de3cc07329e7ced721a47df470
3
+ metadata.gz: d5307d37f9c289e44ebcef491140425fb87cc323
4
+ data.tar.gz: 81efa6032e867501ed264d23c9c2d4947c9ea5d6
5
5
  SHA512:
6
- metadata.gz: 8b492703dd354aead349520473721db2a8ef810e9495fa7b8e4b6e2d362a4083496b563be6c8204d5cee8c6cb915a08ac933bbe77253a9b767ea2e95d407a9af
7
- data.tar.gz: 9f2c0daebb6336b7dd56222c8eb04b03957d0cc3b5e9735a5e77593b56de6bb71e1de6e3309638390eaa49109f28ae7ddd743c30f6391b6e9398c4adfbf8d5f8
6
+ metadata.gz: 50ac440bddb401a3c52d563f2d99c8ad46dcbec066b09047faa4cbe0cafc8997521a42a6cb920c6191543773311795d62d4a8609db1cc746c34048f33f9a28ea
7
+ data.tar.gz: 7f12f4968efc0759d276536eeea135efb4e02ef334fb2067d717c29ad641d44c13c300f80e4cc920538301f4d652ee06e3bac33b211375a8f53359f0d6706409
data/lib/pxlsrt/image.rb CHANGED
@@ -4,9 +4,8 @@ module Pxlsrt
4
4
  class Image
5
5
  def initialize(png)
6
6
  @original = png
7
- @width = png.width
8
- @height = png.height
9
- @modified = png
7
+ @modified = ChunkyPNG::Image.from_canvas(png)
8
+ @width, @height = png.width, png.height
10
9
  end
11
10
  ##
12
11
  # Retrieve a multidimensional array consisting of the horizontal lines (row) of the image.
@@ -1,5 +1,5 @@
1
1
  ##
2
2
  # The main module, your best friend.
3
3
  module Pxlsrt
4
- VERSION = "1.7.0"
4
+ VERSION = "1.7.1"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pxlsrt
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.7.0
4
+ version: 1.7.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - EVA-01