Skip to content

test and fix SAVEABLE #4495

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

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from
Draft

test and fix SAVEABLE #4495

wants to merge 2 commits into from

Conversation

jcupitt
Copy link
Member

@jcupitt jcupitt commented May 1, 2025

vips__foreign_convert_saveable() doesn't seem to work for all image types, start testing it more carefully.

test_matrix tests matrixsave, which uses SAVEABLE_MONO ... test conversion of all image types.

vips__foreign_convert_saveable() doesn't seem to work for all image
types, start testing it more carefully.

test_matrix tests matrixsave, which uses SAVEABLE_MONO ... test
conversion of all image types
@jcupitt jcupitt marked this pull request as draft May 1, 2025 13:26
@jcupitt jcupitt changed the title testing and fix SAVEABLE test and fix SAVEABLE May 1, 2025
@jcupitt
Copy link
Member Author

jcupitt commented May 2, 2025

Sample bug in master from these problems -- RGB to mono works OK:

$ vips copy k2.jpg x.csv
$ vipsheader x.csv
x.csv: 1450x2048 double, 1 band, b-w, csvload

So the SAVEABLE_MONO tag on csvsave is successfully converting RGB to mono before the save, but:

$ vipsheader lion.png 
lion.png: 425x425 uchar, 4 bands, srgb, pngload
$ vips copy lion.png x.csv
csvsave_target: image must one band

It fails for RGBA. The saveable system needs simplifying and testing more carefully.

a bit saner ... and deprecate VipsSaveable
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.

1 participant