summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorerdgeist <erdgeist@erdgeist.org>2026-06-26 22:04:42 +0200
committererdgeist <erdgeist@erdgeist.org>2026-06-26 22:04:42 +0200
commit289ec85be338c6c9085497820f53f57ee714b9b7 (patch)
tree7e1d0f8e56bf509d051f917955aaf6383a62b21f
parent7c19e71780128fabd60a49960a3a829fa5f3287c (diff)
Fix ImageMagick 7: use 'magick' instead of deprecated 'convert'
-rw-r--r--app/models/concerns/file_attachment.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/concerns/file_attachment.rb b/app/models/concerns/file_attachment.rb
index b3ff0f1..5483de5 100644
--- a/app/models/concerns/file_attachment.rb
+++ b/app/models/concerns/file_attachment.rb
@@ -73,7 +73,7 @@ module FileAttachment
73 STYLES.each do |style, options| 73 STYLES.each do |style, options|
74 dest_path = file_path(style) 74 dest_path = file_path(style)
75 FileUtils.mkdir_p(File.dirname(dest_path)) 75 FileUtils.mkdir_p(File.dirname(dest_path))
76 system("convert", original_path, "-resize", options[:geometry], dest_path) 76 system("magick", original_path, "-resize", options[:geometry], dest_path)
77 end 77 end
78 end 78 end
79 79