jr-paperclip 8.0.6 → 8.0.7
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 +4 -4
- data/{NEWS → CHANGELOG.md} +6 -0
- data/lib/paperclip/attachment.rb +1 -2
- data/lib/paperclip/thumbnail.rb +7 -3
- data/lib/paperclip/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c6f82555ee3f8910d061b36b9aadf5191e6a25e0bfd3d76f6022405a43020784
|
|
4
|
+
data.tar.gz: 82816bd5d6e23b6104a4b518e1b24e3945503878deac4761ec5312fe252548dd
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7b42267a2e65083835fcf28041042c6dff92e953ffac30e25ebd55ae74c1d341a88b9f9176bda59ab2751c464230e60f87f4ed2a3c9d874ebee3c42b4a43ba87
|
|
7
|
+
data.tar.gz: 0444c975aa115cf08eb3ead118bfd5bfc4a1119a05f29dc87b3a49bfd7d1cfeb33820ea7c778b75fd3d1aa54c91cbe222fa8bdd18c965556428fb704cc501b2f
|
data/{NEWS → CHANGELOG.md}
RENAMED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
8.0.7 (2026-06-11)
|
|
2
|
+
|
|
3
|
+
* Performance: Fix repeated animation probing in Thumbnail.
|
|
4
|
+
* Bugfix: The global backend (Paperclip.options[:backend]) is now read at processing time instead of
|
|
5
|
+
being captured into Attachment.default_options when that hash is first built.
|
|
6
|
+
|
|
1
7
|
8.0.6 (2026-05-22)
|
|
2
8
|
|
|
3
9
|
* Chore: Update image_processing runtime dependency to ~> 2.0
|
data/lib/paperclip/attachment.rb
CHANGED
|
@@ -36,8 +36,7 @@ module Paperclip
|
|
|
36
36
|
validate_media_type: true,
|
|
37
37
|
adapter_options: { hash_digest: Digest::MD5 },
|
|
38
38
|
check_validity_before_processing: true,
|
|
39
|
-
return_file_attributes_on_destroy: false
|
|
40
|
-
backend: Paperclip.options[:backend]
|
|
39
|
+
return_file_attributes_on_destroy: false
|
|
41
40
|
}
|
|
42
41
|
end
|
|
43
42
|
|
data/lib/paperclip/thumbnail.rb
CHANGED
|
@@ -641,12 +641,16 @@ module Paperclip
|
|
|
641
641
|
end
|
|
642
642
|
|
|
643
643
|
def animated_source?
|
|
644
|
-
@animated_source
|
|
644
|
+
return @animated_source if defined?(@animated_source)
|
|
645
|
+
|
|
646
|
+
@animated_source = begin
|
|
645
647
|
case backend
|
|
646
648
|
when :vips
|
|
647
|
-
vips_image(File.expand_path(@file.path)).get("n-pages").to_i > 1
|
|
649
|
+
vips_image(File.expand_path(@file.path), access: :sequential).get("n-pages").to_i > 1
|
|
648
650
|
when :image_magick
|
|
649
|
-
identify
|
|
651
|
+
# Limit identify to the first two frames: counting all frames with
|
|
652
|
+
# %n decodes the entire file, which is expensive for large animations.
|
|
653
|
+
identify("-format %n :file", file: "#{File.expand_path(@file.path)}[0-1]").to_i > 1
|
|
650
654
|
else
|
|
651
655
|
extension_indicates_animation?
|
|
652
656
|
end
|
data/lib/paperclip/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: jr-paperclip
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 8.0.
|
|
4
|
+
version: 8.0.7
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Jukka Rautanen
|
|
@@ -427,9 +427,9 @@ extensions: []
|
|
|
427
427
|
extra_rdoc_files: []
|
|
428
428
|
files:
|
|
429
429
|
- ".rubocop.yml"
|
|
430
|
+
- CHANGELOG.md
|
|
430
431
|
- CONTRIBUTING.md
|
|
431
432
|
- LICENSE
|
|
432
|
-
- NEWS
|
|
433
433
|
- README.md
|
|
434
434
|
- RELEASING.md
|
|
435
435
|
- Rakefile
|