Related to Bug 19633.
}
}
+ /**
+ * Get the duration of a media file in seconds
+ */
+ public function isVectorized() {
+ $handler = $this->getHandler();
+ if ( $handler ) {
+ return $handler->isVectorized( $this );
+ } else {
+ return false;
+ }
+ }
+
+
/**
* Get handler-specific metadata
* Overridden by LocalFile, UnregisteredLocalFile
* Page count for a multi-page document, false if unsupported or unknown
*/
function pageCount( $file ) { return false; }
+ /**
+ * The material is vectorized and thus scaling is lossless
+ */
+ function isVectorized( $file ) { return false; }
/**
* False if the handler is disabled for all files
*/
return true;
}
+ function isVectorized( $file ) {
+ return true;
+ }
+
function normaliseParams( $image, &$params ) {
global $wgSVGMaxSize;
if ( !parent::normaliseParams( $image, $params ) ) {