Skip to content

Commit 5d29a9c

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 1ff2cec commit 5d29a9c

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
@@ -762,6 +762,17 @@ private function prepareOutput(array $options, $path = null)
762762
// FIXME: layer support, merge them if $options['animated'] != true or $options['flatten'] == true
763763
}
764764

765+
/**
766+
* @param $res
767+
* @return mixed
768+
*/
769+
protected function getImageStringForLoad(\Jcupitt\Vips\Image $res)
770+
{
771+
//return $res->pngsave_buffer();
772+
//file_put_contents("foo.tiff", $res->tiffsave_buffer(['properties' => true, 'compression' => ForeignTiffCompression::NONE]));
773+
return $res->tiffsave_buffer(['compression' => ForeignTiffCompression::NONE]);
774+
}
775+
765776
/**
766777
* Internal.
767778
*

0 commit comments

Comments
 (0)