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 a vips tilesource #816

Merged
merged 4 commits into from
Apr 13, 2022
Merged

Add a vips tilesource #816

merged 4 commits into from
Apr 13, 2022

Conversation

manthey
Copy link
Member

@manthey manthey commented Apr 7, 2022

This class can be used to write files as well. This is a new capability and should be regarded as somewhat in flux. Specifically, you can do

import large_image_source_vips

newsrc = large_image_source_vips.new()
for chunk, x, y in chunk_generator: # some process that generates numpy arrays or images
    newsrc.addTile(chunk, x, y)
newsrc.write('output.tiff')

@manthey
Copy link
Member Author

manthey commented Apr 7, 2022

Eventually, this should be generalized, so that there is a large_image.new(<some criterion>) method that would choose a sink based on some feature and could emit multiple file formats. There are TODOs listed in the source for this for other ways to extend it.

@manthey manthey force-pushed the vips-tilesource branch 9 times, most recently from e518575 to 3595967 Compare April 11, 2022 20:31
manthey added 3 commits April 13, 2022 09:07
This class can be used to write files as well.
Support cropping the output image.  Support having a minimum width and
height for the output image.  Support specifying output resolution.
@manthey manthey merged commit cd54a63 into master Apr 13, 2022
@manthey manthey deleted the vips-tilesource branch April 13, 2022 13:54
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