fast_thumbhash 0.2.0 → 0.3.0
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 +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +3 -6
- data/fast_thumbhash.gemspec +1 -0
- data/lib/fast_thumbhash/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 58ceda168edb83030206e690750cd035f7de93474447f15b7690934a9471da3a
|
4
|
+
data.tar.gz: c88f2732b5a0614e92b28980dab11a48dbc8ecf813857bf572a6f3d667695151
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dc0bfb9cdf1206f0949ad46589bd8cecfe5c59bac958c1d812239cae38618d5cfe3ea6a61386ab9028386ff452472a37c3cc45082b6d462aebb8b7f542077126
|
7
|
+
data.tar.gz: b2449a53c70003ea2ddef3701620e8021140f33d15c1fa9ca96225b553989ed9e661e093adbba66f89377a6294f19fe9b34199409e207cf6bc7cf1d4cc3a72ff
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -56,12 +56,9 @@ This section covers additional options available for the `.thumbhash_to_rgba` me
|
|
56
56
|
The max_size option allows you to request a thumbnail up to the specified size. This is the suggested option for most use cases.
|
57
57
|
|
58
58
|
```ruby
|
59
|
-
w, h, rgba = described_class.thumbhash_to_rgba(
|
60
|
-
thumbhash,
|
61
|
-
max_size: 32
|
62
|
-
)
|
59
|
+
w, h, rgba = described_class.thumbhash_to_rgba(thumbhash, max_size: 32)
|
63
60
|
|
64
|
-
puts [w, h].inspect # => [10, 32]
|
61
|
+
puts [w, h].inspect # => final image is [10, 32]
|
65
62
|
```
|
66
63
|
|
67
64
|
##### `homogeneous_transform` and `size`
|
@@ -102,7 +99,7 @@ w, h, rgba = described_class.thumbhash_to_rgba(
|
|
102
99
|
thumbhash,
|
103
100
|
max_size: 32,
|
104
101
|
fill_mode: :solid,
|
105
|
-
fill_color: [255, 0, 0, 100]
|
102
|
+
fill_color: [255, 0, 0, 100]
|
106
103
|
)
|
107
104
|
```
|
108
105
|
|
data/fast_thumbhash.gemspec
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fast_thumbhash
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stefano Verna
|
@@ -29,7 +29,8 @@ description: Provides a highly optimized implementation of the ThumbHash algorit
|
|
29
29
|
email:
|
30
30
|
- s.verna@datocms.com
|
31
31
|
executables: []
|
32
|
-
extensions:
|
32
|
+
extensions:
|
33
|
+
- ext/fast_thumbhash/extconf.rb
|
33
34
|
extra_rdoc_files: []
|
34
35
|
files:
|
35
36
|
- ".rspec"
|