If the $imageData is not set, the function assumes the $fileName is the path to the image file.
The styling and structure of the generated XHTML is heavily inspired by the XHTML generated by Calibre.
public setCoverImage ( string $fileName, string $imageData = null, string $mimetype = null ) : boolean | ||
$fileName | string | Filename to use for the image, must be unique for the book. |
$imageData | string | Binary image data |
$mimetype | string | Image mimetype, such as "image/jpeg" or "image/png". |
return | boolean | $success |