-
Notifications
You must be signed in to change notification settings - Fork 596
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IFF doesn't accept scanlines and has only one tile size #794
Comments
Ha, I just ran into this exact problem. Unless you pass "--tiles", oiiotool crashes with a floating point exception. I actually got a request to generate image planes for Maya in IFF, as it's apparently the only format Maya can read at a reasonable speed. |
Potential fix under review, Mark: #804. |
Still crashes on latest master without --tile 64 64 (try something like "oiiotool somefile.png -o foo.iff"). Here's a stack trace:
|
Are you quite sure? When I try, 'oiiotool ../oiio-images/tahoe-gps.jpg -o test.iff' gets the crash in master, but not in the lg-iff branch that I've submitted for code review. Which platform? Can you send me a specific command line and input file that crashes (some file inside testsuite, or oiio-images, for example)? |
Oh, I see now, you said "on latest master." Right, Mark, I have not yet merged the proposed fix. Can you try the lg-iff branch from the pull request and see if it is ok for you? |
Ah, sorry, I should have read that a bit more carefully. All good with lg-iff, no more crashes. |
OK, merged into master now. |
Glancing at the IFF writer, I noticed that it doesn't accept scanlines and has only one tile size, and doesn't properly give errors if opened with a request for scanlines or for the wrong tile size. This would be really confusing to anybody trying to write an iff file. All other writers accept scanlines, and we don't even have a "supports()" query for whether an writer accepts scanlines. IFF needs to do so as well, even if it just means that it buffers the whole image until a whole row of scanlines has been sent and then outputs the tiles contained therein.
Very low priority, probably nobody is writing iff files, only reading them. I'm entering this issue mainly so that somebody remembers to go back and fix it later.
The text was updated successfully, but these errors were encountered: