mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-27 21:47:59 +01:00
format=rgb32 for png thumbs
This commit is contained in:
parent
a3b0638aa3
commit
e2923e8ad7
1 changed files with 2 additions and 2 deletions
|
@ -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])
|
||||||
|
|
Loading…
Reference in a new issue