Remove EXIF data

This commit is contained in:
2024-07-28 19:48:42 +10:00
parent 03bbc7a1dc
commit fbb248dd4e

View File

@@ -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)