Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Magick Save, Support ICO LOAD #470

Merged
merged 1 commit into from
Mar 14, 2025

Conversation

Flash-nDie
Copy link
Contributor

@Flash-nDie Flash-nDie commented Mar 14, 2025

PR Description

This PR adds ExportMagick(). libvips supports image encoding through ImageMagick, and formats such as BMP require ImageMagick for proper saving. (vips_magicksave)
Additionally, ICO image loading can now be handled with ImageMagick.

Added

func (r *ImageRef) ExportMagick(params *MagickExportParams) ([]byte, *ImageMetadata, error): Exports an image using ImageMagick.
MagickExportParams: Parameters for configuring ImageMagick-based export.

Modified

Previously, when saving GIFs, govips used magicksave if the libvips version was lower than 8.12. Therefore, this PR modified the GIF save logic accordingly to accommodate the changes in magick save options in this changes.

@tonimelisma tonimelisma merged commit ca62e4b into davidbyttow:master Mar 14, 2025
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants