Skip to content

Tiled multi layer exr output #3659

Answered by lgritz
hstokholm asked this question in Q&A
Discussion options

You must be logged in to vote

"Appendsubimage" perhaps isn't quite what you think it is.

There are two ways to write multiple subimages (illustrated below schematically, this is not working code):

// Method 1: send one subimage at a time -- keep appending new subimages
// simply by repeatedly "opening" with AppendSubimage mode:
out = ImageOutput::create("filename");
out->open("filename", imagespec_for_first_subimage, Create);
out->write_image(...);   // first subimage
out->open("filename", imagespec_for_second_subimage, AppendSubimage);
out->write_image(...);   // second subimage
out->close();

// Method 2: must pre-declare the number of subimages and their ImageSpec's up front:
ImageSpec all_subimage_specs[2];
out = …

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by hstokholm
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants