pnglitch 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +20 -0
- data/.rspec +2 -0
- data/.travis.yml +4 -0
- data/Gemfile +13 -0
- data/LICENSE.txt +22 -0
- data/README.md +42 -0
- data/Rakefile +11 -0
- data/bin/pnglitch +57 -0
- data/lib/pnglitch.rb +249 -0
- data/lib/pnglitch/base.rb +479 -0
- data/lib/pnglitch/errors.rb +37 -0
- data/lib/pnglitch/filter.rb +185 -0
- data/lib/pnglitch/scanline.rb +141 -0
- data/pnglitch.gemspec +31 -0
- data/spec/fixtures/bomb.png +0 -0
- data/spec/fixtures/filter_average +0 -0
- data/spec/fixtures/filter_none +0 -0
- data/spec/fixtures/filter_paeth +0 -0
- data/spec/fixtures/filter_sub +0 -0
- data/spec/fixtures/filter_up +0 -0
- data/spec/fixtures/in.png +0 -0
- data/spec/pnglitch_filter_spec.rb +26 -0
- data/spec/pnglitch_spec.rb +603 -0
- data/spec/spec_helper.rb +8 -0
- metadata +126 -0
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,8 @@
|
|
1
|
+
# This spec contains the image borrowed from Wikipedia under spec/fixtures.
|
2
|
+
# It is generated with POV-Ray source code and licensed under CC BY-SA 3.0.
|
3
|
+
# http://en.wikipedia.org/wiki/File:PNG_transparency_demonstration_1.png
|
4
|
+
# http://creativecommons.org/licenses/by-sa/3.0/deed.en
|
5
|
+
|
6
|
+
$LOAD_PATH.unshift File.expand_path('../../lib', __FILE__)
|
7
|
+
require 'pnglitch'
|
8
|
+
require 'chunky_png'
|
metadata
ADDED
@@ -0,0 +1,126 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: pnglitch
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- ucnv
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2014-11-06 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: bundler
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ~>
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.7'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ~>
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.7'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ~>
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '10.0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ~>
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '10.0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rspec
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - '>='
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - '>='
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
description: |
|
56
|
+
PNGlitch is a Ruby library to destroy your PNG images.
|
57
|
+
With normal data-bending technique, a glitch against PNG will easily fail
|
58
|
+
because of the checksum function. We provide a fail-proof destruction for it.
|
59
|
+
Using this library you will see beautiful and various PNG artifacts.
|
60
|
+
email:
|
61
|
+
- ucnvvv@gmail.com
|
62
|
+
executables:
|
63
|
+
- pnglitch
|
64
|
+
extensions: []
|
65
|
+
extra_rdoc_files: []
|
66
|
+
files:
|
67
|
+
- .gitignore
|
68
|
+
- .rspec
|
69
|
+
- .travis.yml
|
70
|
+
- Gemfile
|
71
|
+
- LICENSE.txt
|
72
|
+
- README.md
|
73
|
+
- Rakefile
|
74
|
+
- bin/pnglitch
|
75
|
+
- lib/pnglitch.rb
|
76
|
+
- lib/pnglitch/base.rb
|
77
|
+
- lib/pnglitch/errors.rb
|
78
|
+
- lib/pnglitch/filter.rb
|
79
|
+
- lib/pnglitch/scanline.rb
|
80
|
+
- pnglitch.gemspec
|
81
|
+
- spec/fixtures/bomb.png
|
82
|
+
- spec/fixtures/filter_average
|
83
|
+
- spec/fixtures/filter_none
|
84
|
+
- spec/fixtures/filter_paeth
|
85
|
+
- spec/fixtures/filter_sub
|
86
|
+
- spec/fixtures/filter_up
|
87
|
+
- spec/fixtures/in.png
|
88
|
+
- spec/pnglitch_filter_spec.rb
|
89
|
+
- spec/pnglitch_spec.rb
|
90
|
+
- spec/spec_helper.rb
|
91
|
+
homepage: https://github.com/ucnv/pnglitch
|
92
|
+
licenses:
|
93
|
+
- MIT
|
94
|
+
metadata: {}
|
95
|
+
post_install_message:
|
96
|
+
rdoc_options: []
|
97
|
+
require_paths:
|
98
|
+
- lib
|
99
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - '>='
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: 2.0.0
|
104
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
105
|
+
requirements:
|
106
|
+
- - '>='
|
107
|
+
- !ruby/object:Gem::Version
|
108
|
+
version: '0'
|
109
|
+
requirements: []
|
110
|
+
rubyforge_project:
|
111
|
+
rubygems_version: 2.0.14
|
112
|
+
signing_key:
|
113
|
+
specification_version: 4
|
114
|
+
summary: A Ruby library to glitch PNG images.
|
115
|
+
test_files:
|
116
|
+
- spec/fixtures/bomb.png
|
117
|
+
- spec/fixtures/filter_average
|
118
|
+
- spec/fixtures/filter_none
|
119
|
+
- spec/fixtures/filter_paeth
|
120
|
+
- spec/fixtures/filter_sub
|
121
|
+
- spec/fixtures/filter_up
|
122
|
+
- spec/fixtures/in.png
|
123
|
+
- spec/pnglitch_filter_spec.rb
|
124
|
+
- spec/pnglitch_spec.rb
|
125
|
+
- spec/spec_helper.rb
|
126
|
+
has_rdoc:
|