cloudflare_image_resizing 1.0.4 → 1.0.5

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7c68b86b959931e8f6120f6a0cc8fb7b3267641e1b1d575bfb0407cbc65619d1
4
- data.tar.gz: 5c686dbcd59fedd52b17d76b53439920af6a1efb296dc66de28faa08e795c0c4
3
+ metadata.gz: a78aa3fe9354591b5b5e68196dd2a8b5a5491d8a263c7e28d999645da00da2ec
4
+ data.tar.gz: e79f7bf4cce69c2e031100e2eaabd2f2f9afd79f170a73a843f6dde1b6920b5e
5
5
  SHA512:
6
- metadata.gz: aa486b0dbc54b91378a25314c1d6cf75fe3797afbb3b9568eb06f11120c2ad49d51e6c77cb6dd7ad9db040e231633c9cd30a012aed9d2c7a3538fe905570bea5
7
- data.tar.gz: 4601a5807384d8fe238705cb2f6f0ad91558033ab90f0192ee9f2464aee15235a16328e42c4e3e8b852397f50782e2777582eb4c548d5e23322976f7cc53c69c
6
+ metadata.gz: 050e439fd61a123fe7318b21624b90bac0ce7868c2f8fce1a43c3ebf48f92951720542e88c901d5682b4268ddbe602b81340b46158ef1743018fdcc3dc461f4f
7
+ data.tar.gz: 8f1c52afe3b2b6672d8b1b1499b5fc8f8d5a4958f7a16407e42c6fb40b970f16df7edcece5c3d52115660ae3172459bbbb776df24c899c5d6b5a534414a20a71
data/README.md CHANGED
@@ -41,9 +41,9 @@ You can use the helpers outside of a controller or view, simply `include Cloudfl
41
41
 
42
42
  ### Resizable formats
43
43
 
44
- Not all formats are resizable. See Cloudflare's docs on [format limitations](https://developers.cloudflare.com/images/image-resizing/format-limitations/)
44
+ Not all formats are resizable. See Cloudflare's docs on [supported formats](https://developers.cloudflare.com/images/get-started/limits/)
45
45
 
46
- tl;dr: these helpers only try to resize `image/jpeg`, `image/gif`, `image/png`, and `image/webp`. Other formats are passed through without resizing.
46
+ tl;dr: these helpers only try to resize `image/jpeg`, `image/gif`, `image/png`, `image/webp`, `image/heic`, and `image/heif`. Other formats are passed through without resizing. Note that HEIC is input-only: Cloudflare will transcode it to a web-friendly output format (never HEIC), which makes it safe to serve HEIC uploads to any browser.
47
47
 
48
48
  ## Prerequisites
49
49
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  module CloudflareImageResizing
4
4
  module Helper
5
- RESIZABLE_CONTENT_TYPES = %w[image/jpeg image/gif image/png image/webp].freeze
5
+ RESIZABLE_CONTENT_TYPES = %w[image/jpeg image/gif image/png image/webp image/heic image/heif].freeze
6
6
 
7
7
  # Helper to use resized_image and also build an image_tag
8
8
  # Automatically adds a srcset with the same image in 2x and 3x (unless a srcset is provided.)
@@ -52,7 +52,7 @@ module CloudflareImageResizing
52
52
  end
53
53
 
54
54
  # Is the image resizable with Cloudflare Image Resizing?
55
- # https://developers.cloudflare.com/images/image-resizing/format-limitations/
55
+ # https://developers.cloudflare.com/images/get-started/limits/
56
56
  # If we try and it isn't, we get a 415
57
57
  # Someday (supposedly) setting onerror=redirect will make this unnecessary.
58
58
  def resizable?(image)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module CloudflareImageResizing
4
- VERSION = "1.0.4"
4
+ VERSION = "1.0.5"
5
5
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cloudflare_image_resizing
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.4
4
+ version: 1.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Morrison
8
8
  bindir: bin
9
9
  cert_chain: []
10
- date: 2025-02-04 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: rails
@@ -60,7 +60,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
60
60
  - !ruby/object:Gem::Version
61
61
  version: '0'
62
62
  requirements: []
63
- rubygems_version: 3.6.2
63
+ rubygems_version: 4.0.16
64
64
  specification_version: 4
65
65
  summary: Easily resize images in Rails using Cloudflare's image resizing service.
66
66
  test_files: []