dynamic_image 2.0.14 → 2.0.15

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 20c84bf7939b0450acb161b046d8c42e5f3c8e12
4
- data.tar.gz: '09367ca2c355b0d54180247e87bf9d72dd38c02c'
2
+ SHA256:
3
+ metadata.gz: a69d22f3315edf77dae92edc7629a19f997ad75acd07f4767b99c9eea45db784
4
+ data.tar.gz: 16cd414f158f77e7b9f94e0c688db074c596234d68199310fca89e1bf7f90f58
5
5
  SHA512:
6
- metadata.gz: f2ab39cadc60f5ffd21e3ecb017a77f2ccc2442427c97efb10acdc62d19c30f0c4793fc3460e283337bc02fce92cbdb14a1125dcef75e0cc34b38b3aec0553b9
7
- data.tar.gz: 7d2b3816a103a1f76079326ed4aa90b2e9eb43ee4a7803c1bb8b1b4825ac0e64a0d7f3feac616f3a2dfa72703a8ace2ed5fc16f71b19f771d83b5332991fa6ae
6
+ metadata.gz: c714fa7783288e08ec5cdbeac3a54df4de2042b528b5c447237d97debf454a97b1150cd74f011b603bd42006faaecbb1f582cfd83df6c7cba1d85a7f344d9a2e
7
+ data.tar.gz: 442337018febbed1fd53b2557a47799a218de1b826100e6eb7515c9d41bce963f18e742d01e74cdfc81f0ea84c33eed78eba55b63791dfb7d3ae953431217f33
data/README.md CHANGED
@@ -16,7 +16,7 @@ uploaded, DynamicImage stores the original file and generates images
16
16
  on demand. It handles cropping, resizing, format and colorspace
17
17
  conversion.
18
18
 
19
- Supported formats at the moment are JPEG, PNG, GIF and TIFF. The
19
+ Supported formats at the moment are JPEG, PNG, GIF, BMP and TIFF. The
20
20
  latter will automatically be converted to JPG. CMYK images will be
21
21
  converted to RGB, and RGB images will be converted to the sRGB
22
22
  colorspace for consistent appearance in all browsers.
@@ -32,7 +32,8 @@ module DynamicImage
32
32
  "\x89\x50\x4e\x47\x0d\x0a\x1a\x0a".force_encoding("binary"), # PNG
33
33
  "\xff\xd8".force_encoding("binary"), # JPEG
34
34
  "\x49\x49\x2a\x00".force_encoding("binary"), # TIFF
35
- "\x4d\x4d\x00\x2a".force_encoding("binary")
35
+ "\x4d\x4d\x00\x2a".force_encoding("binary"),
36
+ "\x42\x4d".force_encoding("binary") # BMP
36
37
  ]
37
38
  end
38
39
  end
@@ -66,6 +66,7 @@ module DynamicImage
66
66
 
67
67
  def allowed_content_types
68
68
  %w(
69
+ image/bmp
69
70
  image/gif
70
71
  image/jpeg
71
72
  image/pjpeg
@@ -127,6 +127,8 @@ module DynamicImage
127
127
 
128
128
  def record_format
129
129
  case record.content_type
130
+ when "image/bmp"
131
+ "BMP"
130
132
  when "image/png"
131
133
  "PNG"
132
134
  when "image/gif"
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
2
 
3
3
  module DynamicImage
4
- VERSION = "2.0.14".freeze
4
+ VERSION = "2.0.15".freeze
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dynamic_image
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.14
4
+ version: 2.0.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - Inge Jørgensen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-05-23 00:00:00.000000000 Z
11
+ date: 2018-06-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -155,7 +155,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
155
155
  version: '0'
156
156
  requirements: []
157
157
  rubyforge_project:
158
- rubygems_version: 2.6.14
158
+ rubygems_version: 2.7.6
159
159
  signing_key:
160
160
  specification_version: 4
161
161
  summary: Rails plugin that simplifies image uploading and processing