jekyll-images 0.4.0 → 0.4.2

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
2
  SHA256:
3
- metadata.gz: 5a21d54b5376b7cc12c7c1e810cc2e795d591f8529e68c580707410ab0d0441e
4
- data.tar.gz: b043ee590e0063da3f848a8f144844796de39fdd669d73c87036a48762f7a384
3
+ metadata.gz: 5a2cdd706053184dce8cd6b09fd823fc19b18eea0b8e73b88178fe5397eb7341
4
+ data.tar.gz: 0ab8bf9f36a700fd570d423856d4b5033d89f6a2c4983c445a3b286cfc47976a
5
5
  SHA512:
6
- metadata.gz: 8986eb8f422d2f5fce0c8a81241a0d0bdf1ae001bd394b5c58bc8e2e4f60eb74d65bcc944161ae8e003c1171e4ceab413cf5903247d7a9092dc4f09a5199403a
7
- data.tar.gz: 1da1fd9eb3cc69456ab9d2a18a1af6bb70232ae138c4bd4902f36d8b37653183520d5fd7d65347410fab85c45add8a4e904f469792301b1149ae140564ffa2a1
6
+ metadata.gz: 6aadada53470565b42f37767ffbd7162aac0494bee015203320f663aa1d6d12b8edd82ab43558f53ebc2e14e049a192d359e3a2e43dc65d4de0fdcf1bf84698e
7
+ data.tar.gz: ac5a5927032d74d21094980e08fc667dc0af496fc63086ef5d7fc21214f53de1f6078ad32ee569dc900ef240432630205ba4cc686056ffacb91a62632839043d
@@ -21,7 +21,7 @@ module Jekyll
21
21
  image = Vips::Image.new_from_file path, access: :sequential
22
22
  image.dzsave(dir, layout: layout, tile_size: tile_size)
23
23
 
24
- "#{dir}/{z}/{y}/{x}.#{::File.extname input}"
24
+ "#{dir}/{z}/{y}/{x}#{::File.extname input}"
25
25
  rescue Vips::Error => e
26
26
  Jekyll.logger.warn "Failed to process #{input}: #{e.message}"
27
27
  input
@@ -7,6 +7,7 @@ module Jekyll
7
7
  # Generates a thumbnail and returns its alternate destination
8
8
  def thumbnail(input, width = nil, height = nil, crop = nil, auto_rotate = nil)
9
9
  return input unless input
10
+ return input if input.downcase.end_with? '.gif'
10
11
  return input unless Jekyll.env == 'production'
11
12
 
12
13
  path = @context.registers[:site].in_source_dir input
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-images
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - f
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-12-30 00:00:00.000000000 Z
11
+ date: 2023-10-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll