Home
last modified time | relevance | path

Searched refs:height (Results 1 – 25 of 101) sorted by last modified time

12345

/PHP-7.4/
H A DNEWS1468 . Added support for aspect ratio preserving scaling to a fixed height for
H A DUPGRADING590 . imagescale() now supports aspect ratio preserving scaling to a fixed height
/PHP-7.4/ext/gd/
H A Dgd.c358 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 Dgd_png.c129 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 Dgd_interpolation.c1336 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 Dgd_wbmp.c153 if (!(im = gdImageCreate (wbmp->width, wbmp->height))) { in gdImageCreateFromWBMPCtx()
165 for (row = 0; row < wbmp->height; row++) { in gdImageCreateFromWBMPCtx()
H A Dgd_crop.c52 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 Dgetimagesize_256_ico.phpt2 GetImageSize() for ico format with 256px height
20 string(23) "width="32" height="256""
H A Dbug71848.phpt18 string(20) "width="8" height="8""
H A Dbug72278.phpt20 string(24) "width="300" height="300""
H A Dgetimagesize_basic.phpt61 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 Dgetimagesize_tif_mm.phpt27 string(20) "width="2" height="2""
H A Dgetimagesize_variation4.phpt32 string(24) "width="550" height="400""
H A Dgetimagesize_variation_005.phpt32 string(24) "width="550" height="400""
H A Dgetimagesize_wbmp.phpt27 string(22) "width="75" height="50""
H A Dgetimagesize_xbm.phpt27 string(22) "width="75" height="50""
/PHP-7.4/ext/standard/
H A Dimage.c66 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 Dexif.c85 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 Dfloat_cast_overflow.phpt26 string(20) "width="1" height="1""
/PHP-7.4/ext/gd/tests/
H A Dbug74435.phpt12 $height = imagesy($im);
14 for ($j = 0; $j < $height; $j += 16) {
H A Dbug75111.phpt14 $str .= pack("V", 256); // height
H A Dbug75124.phpt16 for ($j = 0, $height = imagesy($im); $j < $height; $j++) {
H A Dbug77943.phpt12 $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 Dfunc.inc127 $height = imagesy($image);
128 $result = imagecreatetruecolor($width, $height);
129 imagecopy($result, $image, 0,0, 0,0, $width, $height);
H A Dbug38212-mb.phpt17 Warning: imagecreatefromgd2part(): Zero width or height not allowed in %s on line %d

Completed in 65 milliseconds

12345