You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to create ImageBuf using an IOMemReader pointing to an in-memory DDS file. However, ImageBuf::init_spec fails with Invalid DDS header, possibly corrupt file. ImageInput::open works fine with IOMemReader. The problem seems to be specific to DDS format, I could not reproduce with PNG.
…and PSD files (#4048)
During certain creation tasks, open may be called twice on the
ImageInput. If the first open call moves the ioproxy forward, then the
second call to open may fail.
DDS and PSD were affected so they've been fixed to mirror what other
formats (png, hdr, tga, etc.) do by always explicitly seeking to
position 0.
Fixes#4043
Signed-off-by: Jesse Yurkovich <[email protected]>
I am trying to create
ImageBuf
using anIOMemReader
pointing to an in-memory DDS file. However,ImageBuf::init_spec
fails withInvalid DDS header, possibly corrupt file
.ImageInput::open
works fine withIOMemReader
. The problem seems to be specific to DDS format, I could not reproduce with PNG.Code for reproduction:
The result I get:
The result I expect:
I am on Debian Testing, using OIIO version 2.4.14 (distro package). Here's the whole project along with
example.dds
:openimageio_test.zip
The text was updated successfully, but these errors were encountered: