Auto-orient photos

This commit is contained in:
David Eisinger
2025-09-02 16:21:23 -04:00
parent 1e25285883
commit 90fdd06b82

View File

@@ -30,6 +30,7 @@ get "/*" do |path|
convert.background("white") convert.background("white")
convert.layers("flatten") convert.layers("flatten")
convert.strip convert.strip
convert.auto_orient
if geometry if geometry
if geometry.match?(/^\d+x\d+$/) if geometry.match?(/^\d+x\d+$/)