Aludel.Interfaces.DocumentConverter.Adapters.Imagemagick (aludel v0.7.0)

Copy Markdown View Source

Converts the first page of a PDF to PNG with bounded ImageMagick resources.

Each conversion runs in a private temporary workspace. Input size, output size, execution time, ImageMagick resources, and captured diagnostics are limited. The converter and its delegates run in a dedicated OS process group that is terminated as a unit. The magick executable is preferred, with convert used as a compatibility fallback.

Summary

Types

error_reason()

@type error_reason() ::
  :executable_not_found
  | :invalid_options
  | :output_missing
  | :invalid_output
  | {:cleanup_failed, File.posix()}
  | {:conversion_crashed, atom(), :internal_error}
  | {:conversion_failed, non_neg_integer(), binary()}
  | {:conversion_io_failed, File.posix()}
  | :conversion_termination_unconfirmed
  | {:conversion_timeout, pos_integer()}
  | {:input_too_large, non_neg_integer(), pos_integer()}
  | {:output_too_large, non_neg_integer(), pos_integer()}
  | {:workspace_unavailable, File.posix()}