mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-23 20:18:00 +01:00
consider all translucent values to be transparent for palette generation
This commit is contained in:
parent
bd2e9b4171
commit
4e227f1252
1 changed files with 1 additions and 1 deletions
|
@ -84,7 +84,7 @@ defmodule Philomena.Processors.Gif do
|
|||
scaled = Briefly.create!(extname: ".gif")
|
||||
|
||||
scale_filter = "scale=w=#{width}:h=#{height}:force_original_aspect_ratio=decrease"
|
||||
palette_filter = "paletteuse=dither=bayer:bayer_scale=5:diff_mode=rectangle"
|
||||
palette_filter = "paletteuse=dither=bayer:bayer_scale=5:diff_mode=rectangle:alpha_threshold=255"
|
||||
filter_graph = "[0:v]#{scale_filter}[x];[x][1:v]#{palette_filter}"
|
||||
|
||||
{_output, 0} =
|
||||
|
|
Loading…
Reference in a new issue