halation 0.1.0 → 0.2.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/README.md +211 -0
- data/bin/halation +4 -1
- data/doc/Halation.html +14 -4
- data/doc/Halation/AttrHelpers.html +288 -0
- data/doc/Halation/Coerce.html +373 -0
- data/doc/Halation/Config.html +732 -0
- data/doc/Halation/Config/Camera.html +628 -0
- data/doc/Halation/Config/Lens.html +540 -0
- data/doc/Halation/Engine.html +928 -0
- data/doc/Halation/ExifToolImage.html +486 -0
- data/doc/Halation/Roll.html +916 -0
- data/doc/Halation/Roll/Frame.html +842 -0
- data/doc/Halation/Script.html +506 -0
- data/doc/_index.html +112 -1
- data/doc/class_list.html +1 -1
- data/doc/file.LICENSE.html +1 -1
- data/doc/file.README.html +211 -1
- data/doc/index.html +211 -1
- data/doc/method_list.html +432 -0
- data/doc/top-level-namespace.html +1 -1
- data/lib/halation.rb +4 -0
- data/lib/halation/coerce.rb +21 -0
- data/lib/halation/config.rb +53 -0
- data/lib/halation/config/camera.rb +42 -0
- data/lib/halation/config/lens.rb +32 -0
- data/lib/halation/engine.rb +91 -0
- data/lib/halation/roll.rb +57 -0
- data/lib/halation/roll/frame.rb +47 -0
- data/lib/halation/script.rb +150 -0
- data/lib/halation/tools/exif_tool/image.rb +33 -0
- data/lib/halation/version.rb +1 -1
- metadata +42 -3
@@ -0,0 +1,33 @@
|
|
1
|
+
require 'mini_exiftool'
|
2
|
+
|
3
|
+
module Halation
|
4
|
+
# Image interface implementation for ExifTool.
|
5
|
+
# Available as apt package `libimage-exiftool-perl`.
|
6
|
+
# @see http://www.sno.phy.queensu.ca/~phil/exiftool/
|
7
|
+
class ExifToolImage
|
8
|
+
|
9
|
+
# @param file_path [String] Path to the image file.
|
10
|
+
def initialize(file_path)
|
11
|
+
@image = MiniExiftool.new(file_path, numerical: true)
|
12
|
+
end
|
13
|
+
|
14
|
+
# Read an Exif tag.
|
15
|
+
# @param tag [String, Symbol]
|
16
|
+
def [](tag)
|
17
|
+
@image[tag]
|
18
|
+
end
|
19
|
+
|
20
|
+
# Write an Exif tag.
|
21
|
+
# @param tag [String, Symbol]
|
22
|
+
# @param value [String]
|
23
|
+
def []=(tag, value)
|
24
|
+
@image[tag] = value
|
25
|
+
end
|
26
|
+
|
27
|
+
# Save the Exif data to the image file.
|
28
|
+
def save
|
29
|
+
@image.save
|
30
|
+
end
|
31
|
+
|
32
|
+
end
|
33
|
+
end
|
data/lib/halation/version.rb
CHANGED
metadata
CHANGED
@@ -1,15 +1,35 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: halation
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alex McLain
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-05-
|
11
|
+
date: 2016-05-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: mini_exiftool
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '2.7'
|
20
|
+
- - ">="
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: 2.7.2
|
23
|
+
type: :runtime
|
24
|
+
prerelease: false
|
25
|
+
version_requirements: !ruby/object:Gem::Requirement
|
26
|
+
requirements:
|
27
|
+
- - "~>"
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '2.7'
|
30
|
+
- - ">="
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: 2.7.2
|
13
33
|
- !ruby/object:Gem::Dependency
|
14
34
|
name: rake
|
15
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -120,6 +140,16 @@ files:
|
|
120
140
|
- README.md
|
121
141
|
- bin/halation
|
122
142
|
- doc/Halation.html
|
143
|
+
- doc/Halation/AttrHelpers.html
|
144
|
+
- doc/Halation/Coerce.html
|
145
|
+
- doc/Halation/Config.html
|
146
|
+
- doc/Halation/Config/Camera.html
|
147
|
+
- doc/Halation/Config/Lens.html
|
148
|
+
- doc/Halation/Engine.html
|
149
|
+
- doc/Halation/ExifToolImage.html
|
150
|
+
- doc/Halation/Roll.html
|
151
|
+
- doc/Halation/Roll/Frame.html
|
152
|
+
- doc/Halation/Script.html
|
123
153
|
- doc/_index.html
|
124
154
|
- doc/class_list.html
|
125
155
|
- doc/css/common.css
|
@@ -136,6 +166,15 @@ files:
|
|
136
166
|
- doc/method_list.html
|
137
167
|
- doc/top-level-namespace.html
|
138
168
|
- lib/halation.rb
|
169
|
+
- lib/halation/coerce.rb
|
170
|
+
- lib/halation/config.rb
|
171
|
+
- lib/halation/config/camera.rb
|
172
|
+
- lib/halation/config/lens.rb
|
173
|
+
- lib/halation/engine.rb
|
174
|
+
- lib/halation/roll.rb
|
175
|
+
- lib/halation/roll/frame.rb
|
176
|
+
- lib/halation/script.rb
|
177
|
+
- lib/halation/tools/exif_tool/image.rb
|
139
178
|
- lib/halation/version.rb
|
140
179
|
homepage: https://github.com/amclain/halation
|
141
180
|
licenses:
|
@@ -157,7 +196,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
157
196
|
version: '0'
|
158
197
|
requirements: []
|
159
198
|
rubyforge_project:
|
160
|
-
rubygems_version: 2.6.
|
199
|
+
rubygems_version: 2.6.4
|
161
200
|
signing_key:
|
162
201
|
specification_version: 4
|
163
202
|
summary: Add Exif metadata to film photographs.
|