From fbb248dd4ebf2f4298cc7cec1e91080b9432fdd0 Mon Sep 17 00:00:00 2001 From: Daniel Nitsikopoulos Date: Sun, 28 Jul 2024 19:48:42 +1000 Subject: [PATCH] Remove EXIF data --- slices/micropub/commands/media/upload.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/slices/micropub/commands/media/upload.rb b/slices/micropub/commands/media/upload.rb index ab1bd0a..cb863d3 100644 --- a/slices/micropub/commands/media/upload.rb +++ b/slices/micropub/commands/media/upload.rb @@ -104,11 +104,13 @@ module Micropub fullsize_pipeline = ImageProcessing::Vips.source(file[:tempfile]) .resize_to_limit(1024, nil) .saver(quality: 100) + .remove("xmp-data") .call(save: false) thumbnail_pipeline = ImageProcessing::Vips.source(file[:tempfile]) .resize_to_limit(300, 300, crop: :attention) .saver(quality: 100) + .remove("xmp-data") .call(save: false) unless File.directory?(dirname)