We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 95d8d0f commit 549e84aCopy full SHA for 549e84a
lib/resvg.ex
@@ -50,6 +50,8 @@ defmodule Resvg do
50
51
alias Resvg.Options
52
53
+ @type png_buffer :: [0..255]
54
+
55
@doc """
56
Try to convert the contents of `in_svg` to `out_png`.
57
@@ -130,7 +132,7 @@ defmodule Resvg do
130
132
@spec svg_string_to_png_buffer(
131
133
svg_string :: String.t(),
134
options :: Options.resvg_options()
- ) :: {:ok, binary()} | {:error, String.t()}
135
+ ) :: {:ok, png_buffer} | {:error, String.t()}
136
def svg_string_to_png_buffer(svg_string, opts) do
137
options = struct(Options, opts)
138
Resvg.Native.svg_string_to_png_buffer(svg_string, options)
0 commit comments