We do not wish to rewrite _auto_convert_to_web_type() logic just because we must be able to handle also RAW files, so here we try to render a PNG and should we fail we use a placeholder image (which user can then replace with a web-compatible one).
booleanindicating whether we could render the RAW to web type properly or not
stringthe midcom_helper_imagefilter filter chain to apply
Loads and processes the $tmpname file on disk.
stringThe name of the image attachment to be created.
stringThe file to load.
stringThe title of the image.
booleanIf this is true (the default), the temporary file will be deleted after postprocessing and attachment-creation.