From df5b04f6be5b6187445fd2f084ebbf5a045bea5d Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Thu, 14 Nov 2024 08:32:55 +0000 Subject: pdf snapshotting now reduces size of image --- app/controllers/pdfresources_controller.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'app/controllers/pdfresources_controller.rb') 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 -- cgit v1.2.3