logo

pleroma

My custom branche(s) on git.pleroma.social/pleroma/pleroma git clone https://hacktivis.me/git/pleroma.git
commit: a136e7e9b590e3f23e472bf27c7c6a81d8d7792b
parent afa03ca8e2cffc85628beb5f9a70401d984ab216
Author: Mark Felder <feld@FreeBSD.org>
Date:   Tue, 25 Aug 2020 18:10:27 -0500

Try specifying fd0, force jpg out

Diffstat:

Mlib/pleroma/helpers/media_helper.ex2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 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])