blurhash icon indicating copy to clipboard operation
blurhash copied to clipboard

Using with php-vips

Open binaryfire opened this issue 1 year ago • 1 comments

Great package!

My app has a media library feature and I’m using php-vips to automatically generate multiple sizes for each upload.

It’s a multi tenant app so I need to keep resource usage low (vips is much faster and more efficient than gd).

Is there a way I can use this package without triggering any Intervention processing? I only need to generate the blurhash. I’m using JS for decoding.

What if I use vips to generate an image that’s smaller than the max width setting?

binaryfire avatar Apr 30 '23 15:04 binaryfire

Hello @binaryfire,

Abstracting the image library is a good idea, I plan to research it later. However, due to my current workload, it may take some time before I can develop it, and I cannot provide a time estimate at the moment.

bepsvpt avatar May 01 '23 14:05 bepsvpt

Hello @binaryfire,

The php-vips driver is included in version 3. However, I've encountered a performance issue when decoding from a blurhash string. The libvips and php-vips documentation were too vague for further improvements.

bepsvpt avatar Feb 09 '24 17:02 bepsvpt

Hey @bepsvpt, thanks for adding this! Will do some testing as soon as I have time.

binaryfire avatar Feb 11 '24 08:02 binaryfire