Skip to content

Commit b91338c

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 984c3ae commit b91338c

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

845+
/**
846+
* @param $res
847+
* @return mixed
848+
*/
849+
protected function getImageStringForLoad(\Jcupitt\Vips\Image $res)
850+
{
851+
//return $res->pngsave_buffer();
852+
//file_put_contents("foo.tiff", $res->tiffsave_buffer(['properties' => true, 'compression' => ForeignTiffCompression::NONE]));
853+
return $res->tiffsave_buffer(['compression' => ForeignTiffCompression::NONE]);
854+
}
855+
845856
/**
846857
* Internal.
847858
*

0 commit comments

Comments
 (0)