libvips / php-vips

php binding for libvips
MIT License
606 stars 24 forks source link

libvips can't find srgb profile #196

Closed axkirillov closed 1 year ago

axkirillov commented 1 year ago

Hi! I assumed that libvips has a buildtin srgb profile but when using it in php-vips im getting the error:

icc_transform: unable to open profile "srgb"

The code is simply:

$image = $image->icc_transform('srgb');

The php-vips version is 2.1.1 the vips version is 8.12.1

jcupitt commented 1 year ago

Hi again,

Yes, a set of builtin profiles were added in libvips 8.8.

Are you certain your php is picking up the right libvips at runtime?

echo Vips\Config::version();

Should show the library version that php has linked to.

axkirillov commented 1 year ago

You are correct, it shows 8.7.4. I'll investigate.

axkirillov commented 1 year ago

The problem was that I had the old vips php extension installed it seems like