commit 51de050434d6a893cd9460ffd75ecdd6b71ac18b
parent cbe415c51f3992998498340c1115f6491da7eba4
Author: David Eisinger <[email protected]>
Date: Thu, 9 Jan 2025 15:06:21 -0500
Use PNG even went not dithering
Seeing webp encoding issues
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/bin/dither/dither.rb b/bin/dither/dither.rb
@@ -6,7 +6,7 @@ MiniMagick.logger.level = Logger::DEBUG
ROOT = ENV.fetch("ROOT")
KEY = ENV.fetch("KEY")
DITHER = ENV["DITHER"] != "0"
-FORMAT = DITHER ? "png" : "webp"
+FORMAT = "png"
get "/*" do |path|
halt 404, {"Content-Type" => "text/plain"}, "not found" unless File.exist?("#{ROOT}/#{path}.enc")