Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
I found that when the image is really big the ChunkyPNG gem is slow to encode/decode the PNG pixels. As we only want to strip the metadata we can work in the Datastream that doesn't transform the pixels. With my test image this method went from 10s to 0.01s.
- Loading branch information
1 parent
9cca48e
commit 270cf5d
Showing
2 changed files
with
9 additions
and
5 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