This fixes "Notice: Undefined index: quality ..."
Bug: T164983
Change-Id: If72c40aeaf0ee5727e21f9fe4dac92c12436ce41
// we'll also add TinyRGB profile to images lacking a profile, but
// only if they're not low quality (which are meant to save bandwith
// and we don't want to increase the filesize by adding a profile)
// we'll also add TinyRGB profile to images lacking a profile, but
// only if they're not low quality (which are meant to save bandwith
// and we don't want to increase the filesize by adding a profile)
- if ( $params['quality'] > 30 ) {
+ if ( isset( $params['quality'] ) && $params['quality'] > 30 ) {