typst-pdf: Attach known image types without compression#7876
typst-pdf: Attach known image types without compression#7876krkk wants to merge 1 commit intotypst:mainfrom
Conversation
Most of the image files already have the data compressed, so sprinkling deflate on top of it won't do much besides making it take longer to compile the document.
|
waaaaait this is only for |
Hmm, have you noticed or measured the performance impact of the deflate compression? Because in my testing I've had some cases where images weren't very efficiently encoded and this made quite the difference in size. Note that |
That might be worth a comment, because I also thought it's a typo 😅 |
|
Yeah, maybe we can also return a |
Relevant #7668 |
|
Since this is intentional, let's close this. We could switch to Thanks for the PR anyway! |
Most of the image files already have the data compressed, so sprinkling deflate on top of it won't do much besides making it take longer to compile the document.
Initially, #6256 had it right, but then it got flipped during refactoring. I believe it wasn't intentional, hence my PR. :^)
(interesting that clippy doesn't catch equal match cases)