'imagick::RESOURCETYPE_THREAD'
=> ( defined( 'imagick::RESOURCETYPE_THREAD'
) ?
$imagick->
getResourceLimit( imagick::RESOURCETYPE_THREAD
) : 'not available'
),
'imagick::RESOURCETYPE_TIME'
=> ( defined( 'imagick::RESOURCETYPE_TIME'
) ?
$imagick->
getResourceLimit( imagick::RESOURCETYPE_TIME
) : 'not available'
),
);
$info['wp-media'
]['fields'
]['imagick_limits'
] = array
( 'label' =>
__( 'Imagick Resource Limits'
),
'value' =>
$limits,
'debug' =>
$limits_debug,
);
try { $formats = Imagick::
queryFormats( '*'
);
} catch ( Exception
$e ) { $formats = array
();
} $info['wp-media'
]['fields'
]['imagemagick_file_formats'
] = array
( 'label' =>
__( 'ImageMagick supported file formats'
),
'value'
=> ( empty( $formats ) ) ?
__( 'Unable to determine'
) :
implode( ', ',
$formats ),
'debug'
=> ( empty( $formats ) ) ? 'Unable to determine' :
implode( ', ',
$formats ),
);
}