libvips/libvips/module
John Cupitt 47383b5bfc
tell buffer and target savers the file format (#2499)
tell buffer and target savers the file format

Currently, buffer and target savers are not told the format they should
write.

This is usually OK (the JPEG saver already knows it should write JPEG),
but some savers can write several formats, and these currently need an
extra parameter.

For example:

```ruby
buf = x.write_to_buffer ".bmp", format: "bmp"
```

The first ".bmp" gets libvips to pick magicksave, the second
`format:` param is necessary to tell magicksave to write BMP.

This patch adds stub subclasses so that the savers know the exact format. It also improves PPM save.
2021-10-28 18:57:24 +01:00
..
Makefile.am make jxlload/save a loadable module 2021-05-10 16:45:28 +01:00
heif.c tell buffer and target savers the file format (#2499) 2021-10-28 18:57:24 +01:00
jxl.c move make_resident into modules loading (#2434) 2021-10-14 15:49:22 +01:00
magick.c tell buffer and target savers the file format (#2499) 2021-10-28 18:57:24 +01:00
openslide.c move make_resident into modules loading (#2434) 2021-10-14 15:49:22 +01:00
poppler.c move make_resident into modules loading (#2434) 2021-10-14 15:49:22 +01:00