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 compression option for exr and jpg images #1408

Merged
merged 5 commits into from
Jun 7, 2023
Merged

Conversation

demoulinv
Copy link
Contributor

@demoulinv demoulinv commented Apr 11, 2023

Description

Add new input options compressionMethod and compressionLevel in imageProcessing and panoramaPostProcessing.
CompressionLevel acts as "Quality" parameter for jpeg images and relies on selected method or exr images.

References

JPEG compression: https://openimageio.readthedocs.io/en/v2.4.11.1/builtinplugins.html#jpeg
EXR compression: https://openimageio.readthedocs.io/en/v2.4.11.1/builtinplugins.html#openexr

}
}
outputSpec.attribute("compression", compressionMethod_str);

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Duplicate of write image content, maybe create a function ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not an exact duplicate (no jpg case) but we could create a function for exr case or a more generic one with a parameter for the image type.

src/aliceVision/image/io.cpp Outdated Show resolved Hide resolved
@mugulmd mugulmd force-pushed the dev/compressionImage branch from d3ffed2 to 3969c7e Compare June 7, 2023 09:51
@mugulmd mugulmd merged commit fefe7ee into develop Jun 7, 2023
@mugulmd mugulmd deleted the dev/compressionImage branch June 7, 2023 14:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants