MediaWiki master
|
Support for detecting/validating DjVu image files and getting some basic file metadata (resolution etc) More...
Public Member Functions | |
__construct ( $filename) | |
dump () | |
For debugging; dump the IFF chunk structure. | |
getImageSize () | |
Return width and height. | |
isValid () | |
Check if the given file is indeed a valid DjVu image file. | |
retrieveMetaData () | |
Return an array describing the DjVu image. | |
Support for detecting/validating DjVu image files and getting some basic file metadata (resolution etc)
File format docs are available in source package for DjVuLibre: http://djvulibre.djvuzone.org/
Definition at line 41 of file DjVuImage.php.
DjVuImage::__construct | ( | $filename | ) |
string | $filename | The DjVu file name. |
Definition at line 54 of file DjVuImage.php.
DjVuImage::dump | ( | ) |
For debugging; dump the IFF chunk structure.
Definition at line 89 of file DjVuImage.php.
References $header.
DjVuImage::getImageSize | ( | ) |
Return width and height.
Definition at line 72 of file DjVuImage.php.
DjVuImage::isValid | ( | ) |
Check if the given file is indeed a valid DjVu image file.
Definition at line 62 of file DjVuImage.php.
Referenced by retrieveMetaData().
DjVuImage::retrieveMetaData | ( | ) |
Return an array describing the DjVu image.
Definition at line 252 of file DjVuImage.php.
References $matches, isValid(), wfDebug(), and wfShellExec().