Skip to content

feat(iconvert): allow -o for convenience#5173

Merged
lgritz merged 1 commit into
AcademySoftwareFoundation:mainfrom
lgritz:lg-iconvert
May 10, 2026
Merged

feat(iconvert): allow -o for convenience#5173
lgritz merged 1 commit into
AcademySoftwareFoundation:mainfrom
lgritz:lg-iconvert

Conversation

@lgritz
Copy link
Copy Markdown
Collaborator

@lgritz lgritz commented Apr 30, 2026

iconvert was the very first command line utility for OIIO, and its syntax was just iconvert [options] infile outfile. YEARS later, oiiotool came along, superceding iconvert with 100x the functionality, and also differed by requiring -o to specify output file.

iconvert still exists for testing and examples -- iconvert uses just plain old ImageInput + ImageOutput straightforwardly, whereas oiiotool is a very complex app that's ImageBuf powered. It's often useful for debugging to test the ImageInput/ImageOutput layer without any extra complication, or to directly see how going through an ImageBuf might differ.

The fact that oiiotool requires -o to specify an output file, whereas iconvert considers that an error, is a minor annoyance when switching back and forth while debugging, and it's really bugging me.

So here it is, a tiny patch to let iconvert silently accept -o, or not, and do the obviously right thing. A little quality of life gift to myself.

iconvert was the very first command line utility for OIIO, and its
syntax was just `iconvert [options] infile outfile`. YEARS later,
oiiotool came along, superceding iconvert with 100x the functionality,
and also differed by requiring `-o` to specify output file.

iconvert still exists for testing and examples -- iconvert uses just
plain old ImageInput + ImageOutput straightforwardly, whereas oiiotool
is a very complex app that's ImageBuf powered. It's often useful for
debugging to test the ImageInput/ImageOutput layer without any extra
complication, or to directly see how going through an ImageBuf might
differ.

The fact that oiiotool requires `-o` to specify an output file,
whereas iconvert considers that an error, is a minor annoyance when
switching back and forth while debugging, and it's really bugging me.

So here it is, a tiny patch to let iconvert silently accept -o, or
not, and do the obviously right thing. A little quality of life gift
to myself.

Signed-off-by: Larry Gritz <lg@larrygritz.com>
@lgritz
Copy link
Copy Markdown
Collaborator Author

lgritz commented May 8, 2026

Any comments? Will merge over the weekend if nobody objects.

@lgritz lgritz merged commit 9360099 into AcademySoftwareFoundation:main May 10, 2026
31 checks passed
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