/PHP-7.4/ |
H A D | NEWS | 1468 . Added support for aspect ratio preserving scaling to a fixed height for
|
H A D | UPGRADING | 590 . imagescale() now supports aspect ratio preserving scaling to a fixed height
|
/PHP-7.4/ext/gd/ |
H A D | gd.c | 358 ZEND_ARG_INFO(0, height) 2447 zend_long srcx, srcy, width, height; in _php_image_create_from() local 2456 …parameters(ZEND_NUM_ARGS(), "pllll", &file, &file_len, &srcx, &srcy, &width, &height) == FAILURE) { in _php_image_create_from() 2459 if (width < 1 || height < 1) { in _php_image_create_from() 2504 im = (*ioctx_func_p)(io_ctx, srcx, srcy, width, height); in _php_image_create_from() 2522 im = (*func_p)(fp, srcx, srcy, width, height); in _php_image_create_from() 4179 zend_long height, width, threshold; in _php_image_convert() local 4202 dest_height = height; in _php_image_convert() 4792 rect.height = zval_get_long(tmp); in PHP_FUNCTION() 4988 rect.height = zval_get_long(tmp); in PHP_FUNCTION() [all …]
|
/PHP-7.4/ext/gd/libgd/ |
H A D | gd_png.c | 129 png_uint_32 width, height, rowbytes, w, h, res_x, res_y; in gdImageCreateFromPngCtx() local 204 im = gdImageCreate((int) width, (int) height); in gdImageCreateFromPngCtx() 348 for (h = 0; h < height; ++h) { in gdImageCreateFromPngCtx() 380 for (h = 0; h < height; h++) { in gdImageCreateFromPngCtx() 393 for (h = 0; h < height; h++) { in gdImageCreateFromPngCtx() 413 for (h = 0; h < height; ++h) { in gdImageCreateFromPngCtx() 488 int height = im->sy; in gdImagePngCtxEx() local 718 for (j = 0; j < height; ++j) { in gdImagePngCtxEx() 744 for (j = 0; j < height; ++j) { in gdImagePngCtxEx() 753 for (j = 0; j < height; ++j) { in gdImagePngCtxEx() [all …]
|
H A D | gd_interpolation.c | 1336 const long new_height = MAX(1, height); in gdImageScaleBicubicFixed() 1604 src_area.height = gdImageSY(src); in gdRotatedImageSize() 1632 new_height = bbox.height; in gdImageRotateNearestNeighbour() 1700 new_height = bbox.height; in gdImageRotateGeneric() 1757 new_height = bbox.height; in gdImageRotateBilinear() 1875 new_height = bbox.height; in gdImageRotateBicubicFixed() 2200 y1 = r->y + r->height - 1; in gdImageClipRectangle() 2242 area_full.height = gdImageSY(src); in gdTransformAffineGetImage() 2346 end_y = bbox.height + abs(bbox.y); in gdTransformAffineCopy() 2419 extent[2].y=(double) src->height; in gdTransformAffineBoundingBox() [all …]
|
H A D | gd_wbmp.c | 153 if (!(im = gdImageCreate (wbmp->width, wbmp->height))) { in gdImageCreateFromWBMPCtx() 165 for (row = 0; row < wbmp->height; row++) { in gdImageCreateFromWBMPCtx()
|
H A D | gd_crop.c | 52 dst = gdImageCreate(crop->width, crop->height); in gdImageCrop() 82 const int height = gdImageSY(im); in gdImageCropAuto() local 91 crop.height = 0; in gdImageCropAuto() 121 for (y = 0; match && y < height; y++) { in gdImageCropAuto() 136 for (y = height - 1; match && y >= 0; y--) { in gdImageCropAuto() 141 crop.height = y - crop.y + 2; in gdImageCropAuto() 184 const int height = gdImageSY(im); in gdImageCropThreshold() local 193 crop.height = 0; in gdImageCropThreshold() 209 for (y = 0; match && y < height; y++) { in gdImageCropThreshold() 223 for (y = height - 1; match && y >= 0; y--) { in gdImageCropThreshold() [all …]
|
/PHP-7.4/ext/standard/tests/image/ |
H A D | getimagesize_256_ico.phpt | 2 GetImageSize() for ico format with 256px height 20 string(23) "width="32" height="256""
|
H A D | bug71848.phpt | 18 string(20) "width="8" height="8""
|
H A D | bug72278.phpt | 20 string(24) "width="300" height="300""
|
H A D | getimagesize_basic.phpt | 61 string(24) "width="200" height="100"" 81 string(24) "width="200" height="100"" 103 string(24) "width="200" height="100"" 121 string(24) "width="200" height="100"" 137 string(24) "width="200" height="100"" 155 string(24) "width="200" height="100"" 171 string(20) "width="1" height="1"" 191 string(20) "width="1" height="1"" 211 string(20) "width="4" height="1""
|
H A D | getimagesize_tif_mm.phpt | 27 string(20) "width="2" height="2""
|
H A D | getimagesize_variation4.phpt | 32 string(24) "width="550" height="400""
|
H A D | getimagesize_variation_005.phpt | 32 string(24) "width="550" height="400""
|
H A D | getimagesize_wbmp.phpt | 27 string(22) "width="75" height="50""
|
H A D | getimagesize_xbm.phpt | 27 string(22) "width="75" height="50""
|
/PHP-7.4/ext/standard/ |
H A D | image.c | 66 unsigned int height; member 170 result->height = abs((int32_t)result->height); in php_handle_bmp() 866 if ( width && height) { in php_handle_tiff() 869 result->height = height; in php_handle_tiff() 919 result->height = height; in php_handle_iff() 982 height = (height << 7) | (i & 0x7f); in php_get_wbmp() 995 (*result)->height = height; in php_get_wbmp() 1044 if (height) { in php_get_xbm() 1064 if (width && height) { in php_get_xbm() 1068 (*result)->height = height; in php_get_xbm() [all …]
|
/PHP-7.4/ext/exif/ |
H A D | exif.c | 85 ZEND_ARG_INFO(1, height) 1962 size_t width, height; member 2071 size_t height; member 2691 result->height = php_jpg_get16(Data+3); in exif_process_SOFn() 3958 ImageInfo->Height = sof_info.height; in exif_scan_JPEG_header() 4046 ImageInfo->Thumbnail.height = sof_info.height; in exif_scan_thumbnail() 4688 if (!ImageInfo.Thumbnail.width || !ImageInfo.Thumbnail.height) { in PHP_FUNCTION() 4695 if (ImageInfo.Thumbnail.width && ImageInfo.Thumbnail.height) { in PHP_FUNCTION() 4790 if (!ImageInfo.Thumbnail.width || !ImageInfo.Thumbnail.height) { in PHP_FUNCTION() 4792 ImageInfo.Thumbnail.width = ImageInfo.Thumbnail.height = 0; in PHP_FUNCTION() [all …]
|
/PHP-7.4/ext/exif/tests/ |
H A D | float_cast_overflow.phpt | 26 string(20) "width="1" height="1""
|
/PHP-7.4/ext/gd/tests/ |
H A D | bug74435.phpt | 12 $height = imagesy($im); 14 for ($j = 0; $j < $height; $j += 16) {
|
H A D | bug75111.phpt | 14 $str .= pack("V", 256); // height
|
H A D | bug75124.phpt | 16 for ($j = 0, $height = imagesy($im); $j < $height; $j++) {
|
H A D | bug77943.phpt | 12 $height = 300; 13 $im = imagecreatetruecolor($width, $height); 18 imagefilledrectangle($im, 0, 0, $width-1, $height-1, $white); 20 imageline($im, 0, 0, $width, $height, $blue); 22 imageline($im, 10, 0, $width, $height-10, $blue);
|
H A D | func.inc | 127 $height = imagesy($image); 128 $result = imagecreatetruecolor($width, $height); 129 imagecopy($result, $image, 0,0, 0,0, $width, $height);
|
H A D | bug38212-mb.phpt | 17 Warning: imagecreatefromgd2part(): Zero width or height not allowed in %s on line %d
|