barf 1.0.1 → 1.0.3

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.
Files changed (5) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +10 -0
  3. data/lib/barf.rb +2 -0
  4. data/lib/barf/version.rb +1 -1
  5. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f7c208a39e1e1cbd5be435c9cd3ba3e3df1dea3d1e2957ebad7be33040575226
4
- data.tar.gz: 57c6ae8ab04aa8554f9b8aac7795c9c651237a73c6c980dabf16d50dfd0a12a0
3
+ metadata.gz: c096e860431d590bd5ff7cbf3e632d890c0633d61e0d27126177a32687c05563
4
+ data.tar.gz: 3b1a9269300643dd22f02adab5cb3dacbc5628f82aecd5e75954cbca077a2007
5
5
  SHA512:
6
- metadata.gz: f90f7241a8e99c168c180e437191ee68047ca76253704308833fd67c1ea9dcc8d033c1fba520ed967c9c64ee82f9888dd653a2c97806bfc4538a3ff3ca0a84c3
7
- data.tar.gz: f50c1452bbdf4cf8440a23a656c120b85a7519813889706e9bb6b57abba29292b596536649d31a86979f93b16d49aa0d648b592fe686e55793ab2ae244f011f3
6
+ metadata.gz: e1782fc7f052638741fe196820304ef874f29a600e5e1c8f22de62f7a6a334b63e8fa7fe8527b561988736e9a63c1ee96608dd14168aa2f40bba2677038035e8
7
+ data.tar.gz: e42184fd43f2a2c55837f537e95342752f68925c59749f88c3845795ee80b9cd4ebc76fb4ae969e4bd9cacad95052da4ab7a495d64a01bc5cf217f6d8fa222a1
data/README.md CHANGED
@@ -14,6 +14,16 @@ accomplish this, but they're all way too complex.
14
14
  ![Example](README.png)
15
15
 
16
16
 
17
+ ## Details
18
+ * Can display anything supported by imagemagick including web resources.
19
+ * Applies the 256 color extended Ansi color palette with dithering.
20
+ * Multithreading is used to speed up the `tco` color operations.
21
+
22
+ ```bash
23
+ $ barf https://avatars2.githubusercontent.com/u/382216
24
+ ```
25
+
26
+
17
27
  ## Contributing
18
28
 
19
29
  Bug reports and pull requests are welcome on GitHub at https://github.com/duffyjp/barf.
data/lib/barf.rb CHANGED
@@ -17,6 +17,8 @@ module Barf
17
17
  new_height = [2, (image.height * (0.5 * terminal_width / image.width)).to_i * 2].max
18
18
 
19
19
  image.combine_options do |tmp|
20
+ tmp.alpha 'remove'
21
+ tmp.flatten
20
22
  tmp.resize "#{terminal_width}x#{new_height}!"
21
23
  tmp.dither 'FloydSteinberg'
22
24
  tmp.remap @palette
data/lib/barf/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Barf
2
- VERSION = "1.0.1"
2
+ VERSION = "1.0.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: barf
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jacob Duffy