defmodule ExCaptcha do @moduledoc """ """ def get do case System.cmd(Application.app_dir(:ex_captcha, "priv/captcha"), []) do {data, 0} -> <> = data {:ok, text, img} _other -> :error end end end