From f7e2b4e0ba93f17523efe8ba569100578718874f Mon Sep 17 00:00:00 2001 From: Kevin McConnell Date: Tue, 2 Dec 2025 10:39:56 +0000 Subject: [PATCH] Don't compress attachments in export Since they are typically images and videos, which are already compressed. --- app/models/account/export.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/account/export.rb b/app/models/account/export.rb index 3f1832b3a..c5e3d64c3 100644 --- a/app/models/account/export.rb +++ b/app/models/account/export.rb @@ -63,7 +63,7 @@ class Account::Export < ApplicationRecord end card.export_attachments.each do |attachment| - zip.get_output_stream(attachment[:path]) do |f| + zip.get_output_stream(attachment[:path], compression_method: Zip::Entry::STORED) do |f| attachment[:blob].download { |chunk| f.write(chunk) } end rescue ActiveStorage::FileNotFoundError