Skip to content

Instantly share code, notes, and snippets.

@jrmuizel
Created March 22, 2012 20:02
Show Gist options
  • Save jrmuizel/2163010 to your computer and use it in GitHub Desktop.
Save jrmuizel/2163010 to your computer and use it in GitHub Desktop.
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