protected function writeImages()
{
$compositionCached = $this->compositionCached();
+ set_time_limit(0);
if ($this->fluidbookSettings->svgToCanvas == 2) {
$this->addPDFJSPageRenderer();
- }
-
- set_time_limit(0);
- switch ($this->fluidbookSettings->mobileVersion) {
- case 'html5-desktop':
- $this->backgroundsPrefix = [true, false];
- $this->svg = true;
- break;
- case 'html5-images':
- $this->backgroundsPrefix = [true];
- $this->svg = false;
- break;
- default:
- $this->backgroundsPrefix = [false];
- $this->svg = true;
- break;
+ $this->backgroundsPrefix = [false];
+ $this->svg = false;
+ } else {
+ switch ($this->fluidbookSettings->mobileVersion) {
+ case 'html5-desktop':
+ $this->backgroundsPrefix = [true, false];
+ $this->svg = true;
+ break;
+ case 'html5-images':
+ $this->backgroundsPrefix = [true];
+ $this->svg = false;
+ break;
+ default:
+ $this->backgroundsPrefix = [false];
+ $this->svg = true;
+ break;
+ }
}
$resolutions = $this->getResolutions();