add ico and bmp support

This commit is contained in:
Pete Matsyburka
2025-05-19 14:06:37 +03:00
parent 8a10852fe2
commit bfa244c8fa
4 changed files with 403 additions and 7 deletions
+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?