You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It needs merging, I've been too busy to help sort it out, unfortunately. Maybe this weekend.
Background: libvips used to support file and memory read and write. In 8.10 we added a new virtual IO system based on two new classes called source and target that lets you read and write from any IO-like object. For example, you can do this:
Very handy for things like S3 -- you can write directly to a bucket over a pipe.
The old buffer/file API has been mostly moved onto this new thing, but there are a few holes, like the one you've found. Adding proper source / target support to php-vips would fix these problems, and add useful new functionality.
If I try to re-encode an image from JPEG to AVIF everything works as expected:
However if I try to write the AVIF image to a buffer I get an error:
The difference seems to be in the
vips_foreign_find
methods:I can get it to do it if I use the following workaround:
Am I doing something wrong or is this expected behaviour?
The text was updated successfully, but these errors were encountered: