Page Speed Optimization Libraries
1.13.35.1
|
#include "image.h"
Public Attributes | |
Variable * | timeout_count |
of timed-out conversions. | |
Histogram * | success_ms |
Successful conversion duration. | |
Histogram * | failure_ms |
Failed (and non-timed-out) conversion duration. | |
Images that are in the process of being transformed are represented by an Image. This class encapsulates various operations that are sensitive to the format of the compressed image file and of the image libraries we are using. In particular, the timing of compression and decompression operations may be a bit unexpected, because we may do these operations early in order to retrieve image metadata, or we may choose to skip them entirely if we don't need them or don't understand how to do them.
In future we may need to plumb this to other data sources or change how metadata is retrieved; the object is to do so locally in this class without disrupting any of its clients.