I use libvips
to convert HEIC
images to a more tractable format and pipe the result to another process without writing to disk. I can do that using PNG
as an intermediate format:
vips copy input.heic .png
However the next process in my chain only accepts either BMP
images or raw RGB data. If I replace .png
with .bmp
in the above command I get this error:
input.heic: bad seek to 1811903
VipsForeignSave: ".bmp" is not a known target format
This happens with many other formats including the native .vips
. The conversion works fine with all formats if I write to disk instead of to stdout
.
It will help being able to convert either to BMP
or to a list of integers with the RGB information.