-
-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
During the upgrade from image 0.23 to 0.24, `ImageBuffer::write_to()` was changed to require a seekable writer. This doesn't work when writing to stdout, so we were forced to buffer the output before writing it out in one go. It turns out that most individual encoders don't actually require seeking, and neither of the two we use does. Restore streaming behavior by invoking encoders directly. See: image-rs/image#1922
- Loading branch information
Showing
2 changed files
with
39 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters