Created
March 22, 2012 20:02
-
-
Save jrmuizel/2163010 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
diff --git a/image/decoders/nsJPEGDecoder.cpp b/image/decoders/nsJPEGDecoder.cpp | |
index 30590f0..6bccb1a 100644 | |
--- a/image/decoders/nsJPEGDecoder.cpp | |
+++ b/image/decoders/nsJPEGDecoder.cpp | |
@@ -422,6 +422,8 @@ nsJPEGDecoder::WriteInternal(const char *aBuffer, PRUint32 aCount) | |
*/ | |
mInfo.dct_method = JDCT_ISLOW; | |
mInfo.dither_mode = JDITHER_FS; | |
+ mInfo.scale_denom = 4; | |
+ mInfo.scale_num = 1; | |
mInfo.do_fancy_upsampling = TRUE; | |
mInfo.enable_2pass_quant = FALSE; | |
mInfo.do_block_smoothing = TRUE; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment