Lines Matching refs:quality
1727 zend_long quality = 128, type = 1;
1732 /* The quality parameter for gd2 stands for chunk size */
1741 if (zend_parse_parameters(ZEND_NUM_ARGS(), "O|p!ll", &imgind, gd_image_ce, &file, &file_len, &quality, &type) == FAILURE) {
1748 /* quality must fit in an int */
1749 if (quality < INT_MIN || quality > INT_MAX) {
1770 if (quality == -1) {
1771 quality = 128;
1773 gdImageGd2(im, fp, quality, type);
1796 if (quality == -1) {
1797 quality = 128;
1799 gdImageGd2(im, tmp, quality, type);
4090 zend_long quality = -1, basefilter = -1, speed = -1;
4100 if (zend_parse_parameters(ZEND_NUM_ARGS(), "O|z!ll", &imgind, gd_image_ce, &to_zval, &quality, &basefilter) == FAILURE) {
4104 if (zend_parse_parameters(ZEND_NUM_ARGS(), "O|z!ll", &imgind, gd_image_ce, &to_zval, &quality, &speed) == FAILURE) {
4108 if (zend_parse_parameters(ZEND_NUM_ARGS(), "O|z!l", &imgind, gd_image_ce, &to_zval, &quality) == FAILURE) {
4127 gdImageJpegCtx(im, ctx, (int) quality);
4132 if (quality == -1) {
4133 quality = 80;
4135 gdImageWebpCtx(im, ctx, (int) quality);
4143 gdImageAvifCtx(im, ctx, (int) quality, (int) speed);
4149 gdImagePngCtxEx(im, ctx, (int) quality, (int) basefilter);
4151 gdImagePngCtxEx(im, ctx, (int) quality);