aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers/pdfresources_controller.rb
diff options
context:
space:
mode:
authorMatthew Lemon <y@yulqen.org>2024-11-14 08:32:55 +0000
committerMatthew Lemon <y@yulqen.org>2024-11-14 08:32:55 +0000
commitdf5b04f6be5b6187445fd2f084ebbf5a045bea5d (patch)
treea0a1018a632279c6a9a4583169b0ad4a41a90874 /app/controllers/pdfresources_controller.rb
parent05a673ebafaea9b2f672b9a23884dd51927f71e5 (diff)
pdf snapshotting now reduces size of image
Diffstat (limited to 'app/controllers/pdfresources_controller.rb')
-rw-r--r--app/controllers/pdfresources_controller.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/app/controllers/pdfresources_controller.rb b/app/controllers/pdfresources_controller.rb
index dfcb702..a7df8d8 100644
--- a/app/controllers/pdfresources_controller.rb
+++ b/app/controllers/pdfresources_controller.rb
@@ -62,7 +62,10 @@ class PdfresourcesController < ApplicationController
image_reduced = MiniMagick::Tool::Magick.new do |magick|
magick << image_path
magick << "-quality"
- magick << "20"
+ magick << "40"
+ magick.strip
+ magick << "-resize"
+ magick << "50%"
magick << reduced_image_path
end