Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 Image Compression?
ZiNgA BuRgA Offline
Fag
*******
Posts: 3,357
Joined: Jan 2008
Post: #7
RE: Image Compression?
Yes, it uses MyBB's resize functions to do the job.
Note that there's two primary factors affecting quality in scaling:
- scaling algorithm used (I suspect PHP's GD does a simple Bilinear scale)
- for JPEG, there's further quantization applied to the image - this is probably the source of graininess.
http://php.net/manual/en/function.imagejpeg.php
MyBB doesn't supply a quality argument, so it'd be using the default of 75%.  If you wanted better quality, you'd have to edit the imagejpeg calls, including a higher quality (say 90%) - note that this would affect all MyBB thumbnails too

Alternatively, if images are uploaded as PNG, there won't be further quantization, so no further quality reduction.

My Blog
(This post was last modified: 05-19-2011 08:45 AM by ZiNgA BuRgA.)
05-19-2011 08:44 AM
Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

Messages In This Thread
Image Compression? - brad-t - 05-19-2011, 01:11 AM
RE: Image Compression? - RateU - 05-19-2011, 01:45 AM
RE: Image Compression? - brad-t - 05-19-2011, 01:47 AM
RE: Image Compression? - RateU - 05-19-2011, 02:09 AM
RE: Image Compression? - brad-t - 05-19-2011, 02:19 AM
RE: Image Compression? - RateU - 05-19-2011, 02:33 AM
RE: Image Compression? - ZiNgA BuRgA - 05-19-2011 08:44 AM
RE: Image Compression? - brad-t - 05-19-2011, 10:38 AM
RE: Image Compression? - leefish - 03-24-2014, 02:02 AM
RE: Image Compression? - ZiNgA BuRgA - 03-24-2014, 09:31 AM
RE: Image Compression? - leefish - 03-24-2014, 10:29 AM

 Standard Tools
Forum Jump: