From: Mark Felder Date: Tue, 25 Aug 2020 23:10:27 +0000 (-0500) Subject: Try specifying fd0, force jpg out X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=a136e7e9b590e3f23e472bf27c7c6a81d8d7792b;p=akkoma Try specifying fd0, force jpg out --- diff --git a/lib/pleroma/helpers/media_helper.ex b/lib/pleroma/helpers/media_helper.ex index 5fe135584..01f42d9b0 100644 --- a/lib/pleroma/helpers/media_helper.ex +++ b/lib/pleroma/helpers/media_helper.ex @@ -11,7 +11,7 @@ defmodule Pleroma.Helpers.MediaHelper do quality = options[:quality] || 85 cmd = ~s""" - convert - -resize '#{max_width}x#{max_height}>' -quality #{quality} - + convert fd:0 -resize '#{max_width}x#{max_height}>' -quality #{quality} jpg:- """ pid = Port.open({:spawn, cmd}, [:use_stdio, :stream, :exit_status, :binary])