thingfish-processor-image 0.1.1 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/ChangeLog +36 -2
- data/History.md +5 -0
- data/LICENSE.txt +1 -1
- data/README.md +3 -3
- data/lib/thingfish/processor/image.rb +8 -23
- metadata +22 -27
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1bb1025a0265161b538335fa929884f3d1fdf786
|
4
|
+
data.tar.gz: 23a7faf21fdac87f3a1c12b5b42c8a25dc8e565d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4cea9d8efbab2f1c9f6f566baccbba9dd0e189572feaf4c796ea770b4a095873bd1e80bd1cce9e022053b951b4dcde27511958a22545df6f2ad60a6d62abf4c7
|
7
|
+
data.tar.gz: eae99ece63cbfd0526fabd0d2637ade708799cc08cf6d2a4de97f44df75721958161d66726a9f6454f6aab2ea4fb34b51a7c94c151c0c379dc94fc03b9c3ed90
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/ChangeLog
CHANGED
@@ -1,10 +1,44 @@
|
|
1
|
+
2017-01-16 Mahlon E. Smith <mahlon@martini.nu>
|
2
|
+
|
3
|
+
* History.md, LICENSE.txt, README.md,
|
4
|
+
lib/thingfish/processor/image.rb:
|
5
|
+
Update for Configurability 3.x.
|
6
|
+
[36754e6ded9d] [tip]
|
7
|
+
|
8
|
+
2016-11-16 Michael Granger <ged@FaerieMUD.org>
|
9
|
+
|
10
|
+
* .hgtags:
|
11
|
+
Added tag v0.1.1 for changeset 55ddff2950ba
|
12
|
+
[b55753288dd8]
|
13
|
+
|
14
|
+
* .hgsigs:
|
15
|
+
Added signature for changeset c3964930bd4f
|
16
|
+
[55ddff2950ba] [v0.1.1]
|
17
|
+
|
18
|
+
* History.md, Rakefile, lib/thingfish/processor/image.rb, thingfish-
|
19
|
+
processor-image.gemspec:
|
20
|
+
Allow public release, update history, bump patch version.
|
21
|
+
[c3964930bd4f]
|
22
|
+
|
23
|
+
* .hgtags:
|
24
|
+
Added tag v0.1.0 for changeset a4094d45e915
|
25
|
+
[1a3ef2bccc1e]
|
26
|
+
|
27
|
+
* .hgsigs:
|
28
|
+
Added signature for changeset 19ca547fde2d
|
29
|
+
[a4094d45e915] [v0.1.0]
|
30
|
+
|
31
|
+
* History.md, thingfish-processor-image.gemspec:
|
32
|
+
Update history for initial release.
|
33
|
+
[19ca547fde2d]
|
34
|
+
|
1
35
|
2016-11-16 Mahlon E. Smith <mahlon@martini.nu>
|
2
36
|
|
3
37
|
* lib/thingfish/processor/image.rb,
|
4
38
|
spec/thingfish/processor/image_spec.rb:
|
5
39
|
Add ImageMagick parsing catch. Only load the first
|
6
40
|
frame/page/whatever into memory to generate a thumbnail.
|
7
|
-
[663fd528faed]
|
41
|
+
[663fd528faed]
|
8
42
|
|
9
43
|
2016-11-14 Michael Granger <ged@FaerieMUD.org>
|
10
44
|
|
@@ -21,7 +55,7 @@
|
|
21
55
|
|
22
56
|
* thingfish-processor-image.gemspec:
|
23
57
|
Add the gemspec
|
24
|
-
[a43952fd8558]
|
58
|
+
[a43952fd8558]
|
25
59
|
|
26
60
|
* .hgignore, Manifest.txt, Rakefile:
|
27
61
|
Update manifest, specify minimum version of Mongrel2
|
data/History.md
CHANGED
data/LICENSE.txt
CHANGED
data/README.md
CHANGED
@@ -49,8 +49,8 @@ Here's an example configuration file that enables this plugin.
|
|
49
49
|
processors:
|
50
50
|
- image
|
51
51
|
|
52
|
-
|
53
|
-
|
52
|
+
image_processor:
|
53
|
+
thumbnail_dimensions: 150x150
|
54
54
|
|
55
55
|
|
56
56
|
|
@@ -70,7 +70,7 @@ and generate the API documentation.
|
|
70
70
|
|
71
71
|
## License
|
72
72
|
|
73
|
-
Copyright (c) 2016, Michael Granger
|
73
|
+
Copyright (c) 2016-2017, Michael Granger
|
74
74
|
All rights reserved.
|
75
75
|
|
76
76
|
Redistribution and use in source and binary forms, with or without
|
@@ -18,23 +18,24 @@ class Thingfish::Processor::Image < Thingfish::Processor
|
|
18
18
|
|
19
19
|
|
20
20
|
# Package version
|
21
|
-
VERSION = '0.
|
21
|
+
VERSION = '0.2.0'
|
22
22
|
|
23
23
|
# Version control revision
|
24
|
-
REVISION = %q$Revision:
|
24
|
+
REVISION = %q$Revision: 36754e6ded9d $
|
25
25
|
|
26
26
|
|
27
27
|
# Loggability API -- log to the :angelfish logger
|
28
28
|
log_to :thingfish
|
29
29
|
|
30
30
|
# Configurability API -- use the 'image_processor' section of the config
|
31
|
-
|
31
|
+
configurability( 'thingfish.image_processor' ) do
|
32
32
|
|
33
|
+
# The (maximum) dimensions of generated thumbnails
|
34
|
+
setting :thumbnail_dimensions, default: [ '100', '100' ] do |val|
|
35
|
+
val.split( 'x', 2 ).map( &:to_i )
|
36
|
+
end
|
37
|
+
end
|
33
38
|
|
34
|
-
# The default dimensions of thumbnails
|
35
|
-
CONFIG_DEFAULTS = {
|
36
|
-
thumbnail_dimensions: '100x100',
|
37
|
-
}
|
38
39
|
|
39
40
|
# An array of mediatypes to ignore, even though ImageMagick claims it groks them
|
40
41
|
IGNORED_MIMETYPES = %w[
|
@@ -45,22 +46,6 @@ class Thingfish::Processor::Image < Thingfish::Processor
|
|
45
46
|
]
|
46
47
|
|
47
48
|
|
48
|
-
##
|
49
|
-
# The (maximum) dimensions of generated thumbnails
|
50
|
-
singleton_attr_accessor :thumbnail_dimensions
|
51
|
-
@thumbnail_dimensions = [ 100, 100 ]
|
52
|
-
|
53
|
-
|
54
|
-
### Configurability API -- configure the processor with the :images section of
|
55
|
-
### the config.
|
56
|
-
def self::configure( config=nil )
|
57
|
-
config = self.defaults.merge( config || {} )
|
58
|
-
|
59
|
-
self.thumbnail_dimensions = config[:thumbnail_dimensions].split('x', 2).map( &:to_i )
|
60
|
-
end
|
61
|
-
|
62
|
-
|
63
|
-
|
64
49
|
#################################################################
|
65
50
|
### I N S T A N C E M E T H O D S
|
66
51
|
#################################################################
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: thingfish-processor-image
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Granger
|
@@ -10,32 +10,27 @@ bindir: bin
|
|
10
10
|
cert_chain:
|
11
11
|
- |
|
12
12
|
-----BEGIN CERTIFICATE-----
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
DMOr26DBv+qLJRRC/2h34uX71q5QgeOyxvMg+7V3u/Q06DXyQ2VgeeqiwDFFpEH0
|
33
|
-
PFkdPO6ZqbTRcLfNH7mFgCBJjsfSjJrn0sPBlYyOXgCoByfZnZyrIMH/UY+lgQqS
|
34
|
-
6Von1VDsfQm0eJh5zYZD64ZF86phSR7mUX3mXItwH04HrZwkWpvgd871DZVR3i1n
|
35
|
-
w8aNA5re5+Rt/Vvjxj5AcEnZnZiz5x959NaddQocX32Z1unHw44pzRNUur1GInfW
|
36
|
-
p4vpx2kUSFSAGjtCbDGTNV2AH8w9OU4xEmNz8c5lyoA=
|
13
|
+
MIIDbDCCAlSgAwIBAgIBATANBgkqhkiG9w0BAQUFADA+MQ8wDQYDVQQDDAZtYWhs
|
14
|
+
b24xFzAVBgoJkiaJk/IsZAEZFgdtYXJ0aW5pMRIwEAYKCZImiZPyLGQBGRYCbnUw
|
15
|
+
HhcNMTYxMTE2MTkxMTM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+qti
|
30
|
+
DHE5pl144V24tqxZb65WTup/ov22SCXmpU8/wTeZVL3rePGRfwTJNpm+6iYszl7A
|
31
|
+
SixmX0X3SOeYg4FRkblUIA==
|
37
32
|
-----END CERTIFICATE-----
|
38
|
-
date:
|
33
|
+
date: 2017-01-16 00:00:00.000000000 Z
|
39
34
|
dependencies:
|
40
35
|
- !ruby/object:Gem::Dependency
|
41
36
|
name: mongrel2
|
@@ -241,7 +236,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
241
236
|
version: '0'
|
242
237
|
requirements: []
|
243
238
|
rubyforge_project:
|
244
|
-
rubygems_version: 2.
|
239
|
+
rubygems_version: 2.5.1
|
245
240
|
signing_key:
|
246
241
|
specification_version: 4
|
247
242
|
summary: This is a basic image-processor plugin for the Thingfish digital asset manager
|
metadata.gz.sig
CHANGED
Binary file
|