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

Feat: Expose export params #382

Merged
merged 2 commits into from
Sep 26, 2023
Merged

Conversation

chakflying
Copy link
Contributor

@chakflying chakflying commented Aug 8, 2023

Description

Fixes #379

Add parameters for exported file formats as optional filters.

format(png):palette():bitdepth(4):compression(8)

The code should work with PNGs as is, but I'm not entirely familiar with golang so I'm opening this as draft to see if the current idea of implementation is okay.

@chakflying
Copy link
Contributor Author

Code has been running fine in production for a while. Can add tests if there is interest.

@chakflying chakflying marked this pull request as ready for review September 23, 2023 08:31
vips/process.go Outdated Show resolved Hide resolved
vips/process.go Outdated Show resolved Hide resolved
@chakflying
Copy link
Contributor Author

Modified code according to suggestions.

@cshum cshum merged commit c5c49ee into cshum:master Sep 26, 2023
3 checks passed
@chakflying chakflying deleted the feat/export-params branch September 26, 2023 17:15
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.

Feat: Expose *ExportParams in Filters
2 participants