imagesy
Intervention/image
Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Get image height
imagesy
(
GdImage $image
):
int
{
$this
->
setOutput
(new
Size
(
imagesx
(
$image
->
getCore
()),
imagesy
(
$image
->
getCore
())
));
return
true
;
src/Intervention/Image/Gd/Commands/GetSizeCommand.php
public function
gdResourceToTruecolor
(&
$resource
)
{
$width
=
imagesx
(
$resource
);
$height
=
imagesy
(
$resource
);
$canvas
=
imagecreatetruecolor
(
$width
,
$height
);
src/Intervention/Image/Gd/Decoder.php
public function
cloneCore
(
$core
)
{
$width
=
imagesx
(
$core
);
$height
=
imagesy
(
$core
);
$clone
=
imagecreatetruecolor
(
$width
,
$height
);
imagealphablending
(
$clone
,
false
);
imagesavealpha
(
$clone
,
true
);
src/Intervention/Image/Gd/Driver.php