return trim($path, '/');
}
- public static function makeMiniShot($in, $out, $page, $format = 'jpg') {
- self::makeShotFixedWidth($in, $out, $page, 'p', 500, 65, 4, 'PNM', $format);
+ public static function makeMiniShot($in, $out, $page, $format = 'jpg', $quality = 85) {
+ self::makeShotFixedWidth($in, $out, $page, 'p', 500, max(0, min(100, $quality - 15)), 4, 'PNM', $format);
}
public static function makeShotFixedWidth($in, $out, $page, $prefix = '', $w = 100, $quality = 90, $antialiasing = 4, $method = 'PNM', $format = 'jpg') {