Skip to content

fix(oiiotool): Fix expression BOTTOM when there are exactly two images#5046

Open
lgritz wants to merge 1 commit intoAcademySoftwareFoundation:mainfrom
lgritz:lg-bottom
Open

fix(oiiotool): Fix expression BOTTOM when there are exactly two images#5046
lgritz wants to merge 1 commit intoAcademySoftwareFoundation:mainfrom
lgritz:lg-bottom

Conversation

@lgritz
Copy link
Collaborator

@lgritz lgritz commented Feb 12, 2026

Fixes #5044

Oops, the logic was a little mixed up when there were exactly two images. One reason that this was a special case is that conceptually, there is just a stack, but the implementation is that there is a separate variable for the top item, and then the actual stack is all the other items.

Also add more thorough testing of TOP/BOTTOM, including what happens for 2, 1, and also 0 items on the image stack (errors in that last case).

Fixes 5044

Oops, the logic was a little mixed up when there were exactly two
images. One reason that this was a special case is that conceptually,
there is just a stack, but the implementation is that there is a
separate variable for the top item, and then the actual stack is all
the other items.

Also add more thorough testing of TOP/BOTTOM, including what happens for
2, 1, and also 0 items on the image stack (errors in that last case).

Signed-off-by: Larry Gritz <lg@larrygritz.com>
@lgritz lgritz changed the title fix(oiiotool): Fix expression BOTTOM vs TOP when there are two images fix(oiiotool): Fix expression BOTTOM when there are exactly two images Feb 12, 2026
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.

bug: (oiiotool) BOTTOM refers to TOP when NIMAGES == 2

1 participant