better width x height support
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user