MediaWiki
1.32.5
|
Public Member Functions | |
massageSvgPathdata ( $svg) | |
Massage the SVG image data for converters which don't understand some path data syntax. More... | |
rasterize ( $svg) | |
Convert passed image data, which is assumed to be SVG, to PNG. More... | |
Public Member Functions inherited from ResourceLoaderImage | |
__construct ( $name, $module, $descriptor, $basePath, $variants, $defaultColor=null) | |
getDataUri (ResourceLoaderContext $context, $variant, $format) | |
Get the data: URI that will produce this image. More... | |
getExtension ( $format='original') | |
Get the extension of the image. More... | |
getImageData (ResourceLoaderContext $context, $variant=false, $format=false) | |
Get actual image data for this image. More... | |
getMimeType ( $format='original') | |
Get the MIME type of the image. More... | |
getModule () | |
Get name of the module this image belongs to. More... | |
getName () | |
Get name of this image. More... | |
getPath (ResourceLoaderContext $context) | |
Get the path to image file for given context. More... | |
getUrl (ResourceLoaderContext $context, $script, $variant, $format) | |
Get the load.php URL that will produce this image. More... | |
getVariants () | |
Get the list of variants this image can be converted to. More... | |
sendResponseHeaders (ResourceLoaderContext $context) | |
Send response headers (using the header() function) that are necessary to correctly serve the image data for this image, as returned by getImageData(). More... | |
Additional Inherited Members | |
Protected Member Functions inherited from ResourceLoaderImage | |
variantize ( $variantConf, ResourceLoaderContext $context) | |
Convert this image, which is assumed to be SVG, to given variant. More... | |
Static Protected Attributes inherited from ResourceLoaderImage | |
static array | $fileTypes |
Map of allowed file extensions to their MIME types. More... | |
Definition at line 127 of file ResourceLoaderImageTest.php.
ResourceLoaderImageTestable::massageSvgPathdata | ( | $svg | ) |
Massage the SVG image data for converters which don't understand some path data syntax.
This is necessary for rsvg and ImageMagick when compiled with rsvg support. Upstream bug is https://bugzilla.gnome.org/show_bug.cgi?id=620923, fixed 2014-11-10, so this will be needed for a while. (T76852)
string | $svg | SVG image data |
Reimplemented from ResourceLoaderImage.
Definition at line 129 of file ResourceLoaderImageTest.php.
ResourceLoaderImageTestable::rasterize | ( | $svg | ) |
Convert passed image data, which is assumed to be SVG, to PNG.
string | $svg | SVG image data |
Reimplemented from ResourceLoaderImage.
Definition at line 133 of file ResourceLoaderImageTest.php.