alignment

This commit is contained in:
Gavin McDonald
2025-08-21 17:56:06 -04:00
parent 6baaa152ed
commit 677af45c73
3 changed files with 19 additions and 3 deletions

View File

@@ -51,11 +51,11 @@ defmodule LabelmakerWeb.LabelController do
]
end
defp size_settings(args, %{gravity: gravity, height: height, width: width} = options) do
defp size_settings(args, %{align: align, height: height, width: width} = options) do
args ++
[
"-gravity",
gravity,
align,
"-size",
"#{width}x#{height}",
"caption:#{String.slice(options.label, 0, Constants.max_label_length())}"