From e2923e8ad765e4ef29f6ab5a7d8bd5f9f5bd14c1 Mon Sep 17 00:00:00 2001 From: "byte[]" Date: Sun, 22 Dec 2019 09:19:43 -0500 Subject: [PATCH] format=rgb32 for png thumbs --- lib/philomena/processors/png.ex | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/philomena/processors/png.ex b/lib/philomena/processors/png.ex index 83ca0d59..f970c726 100644 --- a/lib/philomena/processors/png.ex +++ b/lib/philomena/processors/png.ex @@ -49,7 +49,7 @@ defmodule Philomena.Processors.Png do defp scale(file, {width, height}) do scaled = Briefly.create!(extname: ".png") - scale_filter = "scale=w=#{width}:h=#{height}:force_original_aspect_ratio=decrease" + scale_filter = "scale=w=#{width}:h=#{height}:force_original_aspect_ratio=decrease,format=rgb32" {_output, 0} = System.cmd("ffmpeg", ["-loglevel", "0", "-y", "-i", file, "-vf", scale_filter, scaled]) @@ -58,4 +58,4 @@ defmodule Philomena.Processors.Png do scaled end -end \ No newline at end of file +end