Exemplo n.º 1
0
static gboolean
ismagick( const char *filename )
{
	VipsImage *t;
	int result;

	t = vips_image_new();
	vips_error_freeze();
	result = vips__magick_read_header( filename, t, FALSE );
	g_object_unref( t );
	vips_error_thaw();

	return( result == 0 );
}
Exemplo n.º 2
0
static gboolean
ismagick( const char *filename )
{
	VipsImage *t;

	t = vips_image_new();
	if( vips__magick_read_header( filename, t ) ) {
		g_object_unref( t );
		return( FALSE );
	}
	g_object_unref( t );

	return( TRUE );
}