better width x height support

This commit is contained in:
Gavin McDonald
2025-08-21 16:08:47 -04:00
parent 8baa70485f
commit 6baaa152ed
8 changed files with 193 additions and 410 deletions

View File

@@ -42,7 +42,7 @@ defmodule LabelmakerWeb.LabelController do
]
end
defp size_settings(args, %{height: 0, width: 0} = options) do
defp size_settings(args, %{height: "", width: ""} = options) do
args ++
[
"-pointsize",
@@ -87,6 +87,9 @@ defmodule LabelmakerWeb.LabelController do
defp generate_image(args) do
File.mkdir_p!(@label_dir)
# IO.puts("-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-")
# IO.inspect(args)
{_, 0} = System.cmd("magick", args)
end
end