diff --git a/lib/vix/vips/blob.ex b/lib/vix/vips/blob.ex index 331fd98..00c23cd 100644 --- a/lib/vix/vips/blob.ex +++ b/lib/vix/vips/blob.ex @@ -1,7 +1,5 @@ defmodule Vix.Vips.Blob do - @moduledoc """ - *NOT supported yet* - """ + @moduledoc false alias Vix.Type diff --git a/lib/vix/vips/image.ex b/lib/vix/vips/image.ex index 50a6050..4cf98e7 100644 --- a/lib/vix/vips/image.ex +++ b/lib/vix/vips/image.ex @@ -91,6 +91,8 @@ defmodule Vix.Vips.Image do @doc """ Returns `vips_image` as binary based on the format specified by `suffix`. This function is similar to `write_to_file` but instead of writing the output to the file, it returns it as a binary. + Currently only TIFF, JPEG and PNG formats are supported. + Save options may be encoded in the filename or given as a hash. For example: ```elixir diff --git a/lib/vix/vips/operation.ex b/lib/vix/vips/operation.ex index d83d006..5157970 100644 --- a/lib/vix/vips/operation.ex +++ b/lib/vix/vips/operation.ex @@ -76,9 +76,12 @@ defmodule Vix.Vips.OperationHelper do def reject_unsupported_operations(op_name) do {_desc, args} = vips_operation_arguments(op_name) - # we do not support mutable operations yet - Enum.any?(args, fn %{flags: flags} -> - :vips_argument_modify in flags + Enum.any?(args, fn %{flags: flags, value_type: value_type} -> + # we do not support mutable operations yet. Skip operations which use un-supported types as arguments + :vips_argument_modify in flags || + value_type == "VipsSource" || + value_type == "VipsTarget" || + value_type == "VipsBlob" end) end diff --git a/lib/vix/vips/source.ex b/lib/vix/vips/source.ex index d3b1a66..394c3f2 100644 --- a/lib/vix/vips/source.ex +++ b/lib/vix/vips/source.ex @@ -1,7 +1,5 @@ defmodule Vix.Vips.Source do - @moduledoc """ - *NOT supported yet* - """ + @moduledoc false alias Vix.Type diff --git a/lib/vix/vips/target.ex b/lib/vix/vips/target.ex index ff88696..ec7c644 100644 --- a/lib/vix/vips/target.ex +++ b/lib/vix/vips/target.ex @@ -1,7 +1,5 @@ defmodule Vix.Vips.Target do - @moduledoc """ - *NOT supported yet* - """ + @moduledoc false alias Vix.Type