Skip to content

fix(ImageSpec): ImageSpec::get_string_attribute didn't correctly translate to string#5161

Merged
lgritz merged 1 commit intoAcademySoftwareFoundation:mainfrom
lgritz:lg-get_string_attrib
Apr 23, 2026
Merged

fix(ImageSpec): ImageSpec::get_string_attribute didn't correctly translate to string#5161
lgritz merged 1 commit intoAcademySoftwareFoundation:mainfrom
lgritz:lg-get_string_attrib

Conversation

@lgritz
Copy link
Copy Markdown
Collaborator

@lgritz lgritz commented Apr 23, 2026

This method is advertised as being able to convert any type of the attribute into a string, but actually, it would only search for attributes that were entered as strings, so there was no conversion happening.

Beef up testing of paramlist and imagespec to cover the holes that let this mistake happen.

Fixed a couple typos in imageio.h comments as well.

…ring

This method was advertized as being able to convert any type of the
attribute into a string, but actually, it would only *search* for
attributes that were entered as strings, so there was no conversion
happening.

Beef up testing of paramlist and imgespec to cover the holes that let
this mistake happen.

Fixed a couple typos in imageio.h comments as well.

Signed-off-by: Larry Gritz <lg@larrygritz.com>
@lgritz lgritz merged commit caa5174 into AcademySoftwareFoundation:main Apr 23, 2026
31 checks passed
@lgritz lgritz deleted the lg-get_string_attrib branch April 23, 2026 06:12
lgritz added a commit to lgritz/OpenImageIO that referenced this pull request Apr 23, 2026
…slate to string (AcademySoftwareFoundation#5161)

This method is advertised as being able to convert any type of the
attribute into a string, but actually, it would only *search* for
attributes that were entered as strings, so there was no conversion
happening.

Beef up testing of paramlist and imagespec to cover the holes that let
this mistake happen.

Fixed a couple typos in imageio.h comments as well.

Signed-off-by: Larry Gritz <lg@larrygritz.com>
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.

2 participants