add ico and bmp support

This commit is contained in:
Pete Matsyburka committed 2025-05-20 09:49:16 +03:00
1 parent 8a10852fe2
commit bfa244c8fa
4 files changed
+403 -7

No files matched your search

+1 -1
View File
@@ -309,7 +309,7 @@ module Submissions
image =
begin
Vips::Image.new_from_buffer(attachment.download, '').autorot
Submissions::GenerateResultAttachments.load_vips_image(attachment).autorot
rescue Vips::Error
next unless attachment.content_type.starts_with?('image/')
next if attachment.byte_size.zero?