From c2d3221be30fe1a6fef04a83f7144d247fd82e5d Mon Sep 17 00:00:00 2001 From: Norm Date: Thu, 23 May 2024 14:40:25 -0400 Subject: [PATCH] Fix Exiftool stderr being read as an image description Fixes: https://akkoma.dev/AkkomaGang/akkoma/issues/773 --- lib/pleroma/upload/filter/exiftool/read_description.ex | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/pleroma/upload/filter/exiftool/read_description.ex b/lib/pleroma/upload/filter/exiftool/read_description.ex index 5dfe60cd8..372907076 100644 --- a/lib/pleroma/upload/filter/exiftool/read_description.ex +++ b/lib/pleroma/upload/filter/exiftool/read_description.ex @@ -33,8 +33,7 @@ defp read_when_empty(current_description, _, _) when is_binary(current_descripti defp read_when_empty(_, file, tag) do try do {tag_content, 0} = - System.cmd("exiftool", ["-b", "-s3", tag, file], - stderr_to_stdout: true, + System.cmd("exiftool", ["-b", "-s3", "-ignoreMinorErrors", "-q", "-q", tag, file], parallelism: true ) -- 2.43.0