[ Index ]

PHP Cross Reference of MediaWiki-1.24.0

title

Body

[close]

/includes/media/ -> DjVuImage.php (summary)

DjVu image handler. Copyright © 2006 Brion Vibber <[email protected]> https://www.mediawiki.org/

File Size: 436 lines (12 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

DjVuImage:: (14 methods):
  __construct()
  isValid()
  getImageSize()
  dump()
  dumpForm()
  getInfo()
  readChunk()
  skipChunk()
  getMultiPageInfo()
  getPageInfo()
  retrieveMetaData()
  pageTextCallback()
  convertDumpToXML()
  parseFormDjvu()


Class: DjVuImage  - X-Ref

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/

__construct( $filename )   X-Ref
Constructor

param: string $filename The DjVu file name.

isValid()   X-Ref
Check if the given file is indeed a valid DjVu image file

return: bool

getImageSize()   X-Ref
Return data in the style of getimagesize()

return: array|bool Array or false on failure

dump()   X-Ref
For debugging; dump the IFF chunk structure


dumpForm( $file, $length, $indent )   X-Ref
No description

getInfo()   X-Ref
No description

readChunk( $file )   X-Ref
No description

skipChunk( $file, $chunkLength )   X-Ref
No description

getMultiPageInfo( $file, $formLength )   X-Ref
No description

getPageInfo( $file, $formLength )   X-Ref
No description

retrieveMetaData()   X-Ref
Return an XML string describing the DjVu image

return: string

pageTextCallback( $matches )   X-Ref
No description

convertDumpToXML( $dump )   X-Ref
Hack to temporarily work around djvutoxml bug

param: string $dump
return: string

parseFormDjvu( $line, &$xml )   X-Ref
No description



Generated: Fri Nov 28 14:03:12 2014 Cross-referenced by PHPXref 0.7.1