IMG-25: load ICO files (#1458)

* disk_sink + fixes

* Always 4 bands for v3+ bmp on save

* bmpsave fixed (w/o orientation)

* fixed ico for target save

* icosave.c

* Removed leftover comments

* icoload.c

* Row buffer (skripatch) is not needed anymore

* Minor fixes for icoload/save

* Use wips_image_write instead of vips_copy

* Forgotten &

* Check resulting dimensions

* -debug printf
This commit is contained in:
Victor Sokolov
2025-07-11 22:00:08 +04:00
committed by GitHub
parent 0567655437
commit b18b678df2
7 changed files with 548 additions and 6 deletions

View File

@@ -26,6 +26,8 @@ VIPS_API
int vips_bmpload_source(VipsSource *source, VipsImage **out, ...)
G_GNUC_NULL_TERMINATED;
int vips_bmpload_source_go(VipsImgproxySource *source, VipsImage **out);
int
vips_bmpload_buffer(void *buf, size_t len, VipsImage **out, ...);
// defined in bmpsave.c
int vips_bmpsave_target_go(VipsImage *in, VipsTarget *target);