Page Speed Optimization Libraries
1.13.35.1
|
Utility class that reads jpeg parameter from jpeg images. More...
#include "jpeg_utils.h"
Static Public Member Functions | |
static int | GetImageQualityFromImage (const void *image_data, size_t image_length, MessageHandler *handler) |
Utility class that reads jpeg parameter from jpeg images.
|
static |
Get image quality with which the input jpeg image is compressed. This method will return -1 if it is not able to either jpeg image is invalid or image quality can't be determined.
See comments in implementation for additional details on how quality is computed.