Skip to content

Commit d12b334

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 71b24f4 commit d12b334

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

800+
/**
801+
* @param $res
802+
* @return mixed
803+
*/
804+
protected function getImageStringForLoad(\Jcupitt\Vips\Image $res)
805+
{
806+
//return $res->pngsave_buffer();
807+
//file_put_contents("foo.tiff", $res->tiffsave_buffer(['properties' => true, 'compression' => ForeignTiffCompression::NONE]));
808+
return $res->tiffsave_buffer(['compression' => ForeignTiffCompression::NONE]);
809+
}
810+
800811
/**
801812
* Internal.
802813
*

0 commit comments

Comments
 (0)