lib/private/Preview/Bitmap.php 1 location
|
@@ 83-94 (lines=12) @@
|
| 80 |
|
* |
| 81 |
|
* @return \Imagick |
| 82 |
|
*/ |
| 83 |
|
private function getResizedPreview($tmpPath, $maxX, $maxY) { |
| 84 |
|
$bp = new Imagick(); |
| 85 |
|
|
| 86 |
|
// Layer 0 contains either the bitmap or a flat representation of all vector layers |
| 87 |
|
$bp->readImage($tmpPath . '[0]'); |
| 88 |
|
|
| 89 |
|
$bp = $this->resize($bp, $maxX, $maxY); |
| 90 |
|
|
| 91 |
|
$bp->setImageFormat('png'); |
| 92 |
|
|
| 93 |
|
return $bp; |
| 94 |
|
} |
| 95 |
|
|
| 96 |
|
/** |
| 97 |
|
* Returns a resized \Imagick object |
lib/private/Preview/HEIC.php 1 location
|
@@ 93-104 (lines=12) @@
|
| 90 |
|
* |
| 91 |
|
* @return \Imagick |
| 92 |
|
*/ |
| 93 |
|
private function getResizedPreview($tmpPath, $maxX, $maxY) { |
| 94 |
|
$bp = new \Imagick(); |
| 95 |
|
|
| 96 |
|
// Layer 0 contains either the bitmap or a flat representation of all vector layers |
| 97 |
|
$bp->readImage($tmpPath . '[0]'); |
| 98 |
|
|
| 99 |
|
$bp->setImageFormat('jpg'); |
| 100 |
|
|
| 101 |
|
$bp = $this->resize($bp, $maxX, $maxY); |
| 102 |
|
|
| 103 |
|
return $bp; |
| 104 |
|
} |
| 105 |
|
|
| 106 |
|
/** |
| 107 |
|
* Returns a resized \Imagick object |