Image magick doesn't support them.
See some discussion at bug 35622 comment 9
Change-Id: I127bcb5458a4c06f043a4f5d0ae6d70bd7809e64
protected static function getScalerType( $dstPath, $checkDstPath = true ) {
return "im";
}
+
+ /**
+ * Can we render this file?
+ *
+ * Image magick doesn't support indexed xcf files as of current
+ * writing (as of 6.8.9-3)
+ */
+ public function canRender( $file ) {
+ wfSuppressWarnings();
+ $xcfMeta = unserialize( $file->getMetadata() );
+ wfRestoreWarnings();
+ if ( isset( $xcfMeta['colorType'] ) && $xcfMeta['colorType'] === 'index-coloured' ) {
+ return false;
+ }
+ return parent::canRender( $file );
+ }
}