exiftool 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.
data/test/iPhone 4S.jpg DELETED
Binary file
@@ -1,82 +0,0 @@
1
- ---
2
- :source_file: /Users/mrm/Dropbox/code/exiftoolr/test/iPhone 4S.jpg
3
- :exif_tool_version: 9.31
4
- :file_name: iPhone 4S.jpg
5
- :directory: /Users/mrm/Dropbox/code/exiftoolr/test
6
- :file_size: 1954 kB
7
- :file_modify_date: 2012-02-23 05:22:18.000000000 +00:00
8
- :file_access_date: 2013-07-14 20:25:41.000000000 +00:00
9
- :file_inode_change_date: 2013-02-16 19:21:57.000000000 +00:00
10
- :file_permissions: rw-r--r--
11
- :file_type: JPEG
12
- :mime_type: image/jpeg
13
- :exif_byte_order: Big-endian (Motorola, MM)
14
- :make: Apple
15
- :model: iPhone 4S
16
- :orientation: Horizontal (normal)
17
- :x_resolution: 72
18
- :y_resolution: 72
19
- :resolution_unit: inches
20
- :software: 5.0.1
21
- :modify_date: 2011-11-23 09:39:52.000000000 +00:00
22
- :y_cb_cr_positioning: Centered
23
- :exposure_time: !ruby/object:Rational
24
- denominator: 6135
25
- numerator: 1
26
- :f_number: 2.4
27
- :exposure_program: Program AE
28
- :iso: 64
29
- :exif_version: '0221'
30
- :date_time_original: 2011-11-23 09:39:52.000000000 +00:00
31
- :create_date: 2011-11-23 09:39:52.000000000 +00:00
32
- :components_configuration: Y, Cb, Cr, -
33
- :shutter_speed_value: !ruby/object:Rational
34
- denominator: 6135
35
- numerator: 1
36
- :aperture_value: 2.4
37
- :brightness_value: 11.27442702
38
- :metering_mode: Multi-segment
39
- :flash: Auto, Did not fire
40
- :focal_length: 4.3 mm
41
- :subject_area: 1631 1223 881 881
42
- :flashpix_version: '0100'
43
- :color_space: sRGB
44
- :exif_image_width: 3264
45
- :exif_image_height: 2448
46
- :sensing_method: One-chip color area
47
- :exposure_mode: Auto
48
- :white_balance: Auto
49
- :focal_length_in35mm_format: 35 mm
50
- :scene_capture_type: Standard
51
- :sharpness: Normal
52
- :gps_latitude_ref: North
53
- :gps_longitude_ref: West
54
- :gps_altitude_ref: Above Sea Level
55
- :gps_time_stamp: '19:03:32'
56
- :gps_img_direction_ref: True North
57
- :gps_img_direction: 121.9838275
58
- :compression: JPEG (old-style)
59
- :thumbnail_offset: 914
60
- :thumbnail_length: 5987
61
- :image_width: 3264
62
- :image_height: 2448
63
- :encoding_process: Baseline DCT, Huffman coding
64
- :bits_per_sample: 8
65
- :color_components: 3
66
- :y_cb_cr_sub_sampling: YCbCr4:2:0 (2 2)
67
- :aperture: 2.4
68
- :gps_altitude: 14.2 m Above Sea Level
69
- :gps_latitude: 37.50233333
70
- :gps_longitude: -122.47566667
71
- :gps_position: 37.50233333 N, 122.47566667 W
72
- :image_size: 3264x2448
73
- :scale_factor35efl: 8.2
74
- :shutter_speed: !ruby/object:Rational
75
- denominator: 6135
76
- numerator: 1
77
- :thumbnail_image: (Binary data 5987 bytes)
78
- :circle_of_confusion: 0.004 mm
79
- :fov: 54.4 deg
80
- :focal_length35efl: '4.3 mm (35 mm equivalent: 35.0 mm)'
81
- :hyperfocal_distance: 2.08 m
82
- :light_value: 15.8
data/test/parser_test.rb DELETED
@@ -1,58 +0,0 @@
1
- require 'test_helper'
2
-
3
- describe Exiftool::Parser do
4
- it 'creates snake-case symbolic keys properly' do
5
- p = Exiftool::Parser.new('HyperfocalDistance', '')
6
- p.sym_key.must_equal :hyperfocal_distance
7
- end
8
-
9
- it 'creates display keys properly' do
10
- p = Exiftool::Parser.new('InternalSerialNumber', '')
11
- p.display_key.must_equal 'Internal Serial Number'
12
- end
13
-
14
- it 'parses date flags without warnings' do
15
- p = Exiftool::Parser.new('DateStampMode', 'Off')
16
- p.value.must_equal 'Off'
17
- end
18
-
19
- it 'parses dates without timezones' do
20
- p = Exiftool::Parser.new('CreateDate', '2004:09:19 12:25:20')
21
- p.value.must_equal Time.parse('2004-09-19 12:25:20')
22
- end
23
-
24
- it 'parses sub-second times' do
25
- p = Exiftool::Parser.new('SubSecDateTimeOriginal', '2011:09:25 20:08:09.00')
26
- p.value.must_equal Time.parse('2011-09-25 20:08:09')
27
- end
28
-
29
- it 'parses dates with timezones' do
30
- p = Exiftool::Parser.new('FileAccessDate', '2013:07:14 10:50:33-07:00')
31
- p.value.must_equal Time.parse('2013-07-14 10:50:33-07:00')
32
- end
33
-
34
- it 'parses fractions properly' do
35
- p = Exiftool::Parser.new('ShutterSpeedValue', '1/6135')
36
- p.value.must_equal Rational(1, 6135)
37
- end
38
-
39
- it 'parses N GPS coords' do
40
- p = Exiftool::Parser.new('GPSLatitude', '37.50233333 N')
41
- p.value.must_be_close_to 37.50233333
42
- end
43
-
44
- it 'parses S GPS coords' do
45
- p = Exiftool::Parser.new('GPSLatitude', '37.50233333 S')
46
- p.value.must_be_close_to -37.50233333
47
- end
48
-
49
- it 'parses E GPS coords' do
50
- p = Exiftool::Parser.new('GPSLongitude', '122.47566667 E')
51
- p.value.must_be_close_to 122.47566667
52
- end
53
-
54
- it 'parses W GPS coords' do
55
- p = Exiftool::Parser.new('GPSLongitude', '122.47566667 W')
56
- p.value.must_be_close_to -122.47566667
57
- end
58
- end
data/test/test_helper.rb DELETED
@@ -1,14 +0,0 @@
1
- require 'minitest/autorun'
2
- require 'minitest/great_expectations'
3
- require 'yaml'
4
- require 'exiftool'
5
-
6
- # We need a predictable timezone offset so non-tz-offset timestamps are comparable:
7
- ENV['TZ'] = 'UTC'
8
-
9
- unless ENV['CI']
10
- require 'minitest/reporters'
11
- MiniTest::Reporters.use!
12
- end
13
-
14
- puts "Exiftool.exiftool_version = #{Exiftool.exiftool_version}"