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

Black out polygons on images #14

Open
manthey opened this issue May 25, 2021 · 1 comment
Open

Black out polygons on images #14

manthey opened this issue May 25, 2021 · 1 comment

Comments

@manthey
Copy link
Contributor

manthey commented May 25, 2021

This is a summary of what we talked about. For any given file, we probably want to do the following:

  • If the file isn't already a tiff file, use large_image_converter to convert it to our preferred format. We might want to do this in all cases initially for a simple code path.
  • For each tiles or associated image that needs to have an area be redacted, open the image with vips, draw a filled polygon in the appropriate spot, and save that image. Vips tends to only work with a single size image, so this probably needs to be run for each image that needs redaction. For tiled images, we want to output tiled images with the same parameters that large_image_converter would have chosen. For associated images, these should be in the same compression format as the originals. Note that all outputs are tiff files.
  • Combine tiff files output from the previous step with portions of the original tiff file into a single output file. This can be done with tifftools. See large_image_converter for examples.
@manthey
Copy link
Contributor Author

manthey commented May 25, 2021

@mcovalt I've written how I would approach this.

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

No branches or pull requests

1 participant