format=rgb32 for png thumbs

This commit is contained in:
byte[] 2019-12-22 09:19:43 -05:00
parent a3b0638aa3
commit e2923e8ad7

View file

@ -49,7 +49,7 @@ defmodule Philomena.Processors.Png do
defp scale(file, {width, height}) do defp scale(file, {width, height}) do
scaled = Briefly.create!(extname: ".png") 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} = {_output, 0} =
System.cmd("ffmpeg", ["-loglevel", "0", "-y", "-i", file, "-vf", scale_filter, scaled]) System.cmd("ffmpeg", ["-loglevel", "0", "-y", "-i", file, "-vf", scale_filter, scaled])