Skip to content

Formats not supported by VipsForeignSaveRawBuffer #319

Closed
@anitagraham

Description

@anitagraham

I found - running the test suite for dragonfly-libvips - that there are several image formats which are not supported by ForeignSaveBuffer.

The formats are avif, bmp, dz, gif, hdr, heic, heif, jpc, jpt, jp2, j2c, j2k and webp.

dragonfly_libvips typically processes an image (resize, crop, encode), then returns it to the caller after writing the new image to a buffer so:

 img.write_to_buffer(".#{format}", **DragonflyLibvips.symbolize_keys(**output_options)),
        'name' => "temp.#{format}",
        'format' => format

I'm not familiar with all the image formats listed, but I can imagine wanting to handle webp or heic.
At the moment I have added them to a list of unsupported formats but I wonder if any, all or some should be added to foreign.

thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions