Pixbuf.getFileInfoAsync

void getFileInfoAsync(string filename, gio.cancellable.Cancellable cancellable = null, gio.types.AsyncReadyCallback callback = null)

Asynchronously parses an image file far enough to determine its format and size.

For more details see [gdkpixbuf.pixbuf.Pixbuf.getFileInfo], which is the synchronous version of this function.

When the operation is finished, callback will be called in the main thread. You can then call [gdkpixbuf.pixbuf.Pixbuf.getFileInfoFinish] to get the result of the operation.

Parameters

filenameThe name of the file to identify
cancellableoptional [gio.cancellable.Cancellable] object, NULL to ignore
callbacka [gio.types.AsyncReadyCallback] to call when the file info is available