Skip to content

Commit 3d90c96

Browse files
committed
getImageStringForLoad and use tiff for converting to imagick
maybe once libvips/php-vips-ext#13 is done, we can use that
1 parent f22adb7 commit 3d90c96

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

lib/Imagine/Vips/Image.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -846,6 +846,17 @@ private function prepareOutput(array $options, $path = null): self
846846
// FIXME: layer support, merge them if $options['animated'] != true or $options['flatten'] == true
847847
}
848848

849+
/**
850+
* @param $res
851+
* @return mixed
852+
*/
853+
protected function getImageStringForLoad(\Jcupitt\Vips\Image $res)
854+
{
855+
//return $res->pngsave_buffer();
856+
//file_put_contents("foo.tiff", $res->tiffsave_buffer(['properties' => true, 'compression' => ForeignTiffCompression::NONE]));
857+
return $res->tiffsave_buffer(['compression' => ForeignTiffCompression::NONE]);
858+
}
859+
849860
/**
850861
* Internal.
851862
*

0 commit comments

Comments
 (0)