Function
Vipspngload
Declaration [src]
int
vips_pngload (
const char* filename,
VipsImage** out,
...
)
Description [src]
Optional arguments:
fail_on
:VipsFailOn
, types of read error to fail onunlimited
: %gboolean, remove all denial of service limits
Read a PNG file into a VIPS image. It can read all png images, including 8- and 16-bit images, 1 and 3 channel, with and without an alpha channel.
Any ICC profile is read and attached to the VIPS image. It also supports XMP metadata.
Use fail_on
to set the type of error that will cause load to fail. By
default, loaders are permissive, that is, #VIPS_FAIL_ON_NONE.
By default, the PNG loader limits the number of text and data chunks to
block some denial of service attacks. Set unlimited
to disable these limits.
See also: vips_image_new_from_file().
This function is not directly available to language bindings |
Parameters
filename |
const char* |
File to load. |
|
The data is owned by the caller of the function. | |
The value is a NUL terminated UTF-8 string. | |
out |
VipsImage |
Decompressed image. |
|
The argument will be set by the function. | |
The called function takes ownership of the data, and is responsible for freeing it. | |
... |
|
|