Documentation

Layer
in package

GD abstractions

Tags
subpackage

Gd

author

Dodonov A.A.

version

v.1.0 (2021/11/13)

copyright

Copyright (c) 2021, http://aeon.su

Table of Contents

getImageSize()  : array<string|int, mixed>
Method returns image size
imageBmp()  : void
Method stores image into file
imageCreateFromBmp()  : false|resource
Creating image from file
imageCreateFromGif()  : false|resource
Creating image from file
imageCreateFromJpeg()  : false|resource
Creating image from file
imageCreateFromPng()  : false|resource
Creating image from file
imageCreateFromWebp()  : false|resource
Creating image from file
imageGif()  : void
Method stores image into file
imageJpeg()  : void
Method stores image into file
imagePng()  : void
Method stores image into file
imageWebp()  : void
Method stores image into file

Methods

getImageSize()

Method returns image size

public static getImageSize(string $filePath[, array<string|int, mixed> &$imageInfo = null ]) : array<string|int, mixed>
Parameters
$filePath : string

path to the image size

$imageInfo : array<string|int, mixed> = null

image info

Tags
psalm-suppress

MixedReturnTypeCoercion

Return values
array<string|int, mixed>

imageBmp()

Method stores image into file

public static imageBmp(resource $resource, string $filePath) : void
Parameters
$resource : resource

resource

$filePath : string

path to the saving file

Return values
void

imageCreateFromBmp()

Creating image from file

public static imageCreateFromBmp(string $filePath) : false|resource
Parameters
$filePath : string

path to the file

Return values
false|resource

created image

imageCreateFromGif()

Creating image from file

public static imageCreateFromGif(string $filePath) : false|resource
Parameters
$filePath : string

path to the file

Return values
false|resource

created image

imageCreateFromJpeg()

Creating image from file

public static imageCreateFromJpeg(string $filePath) : false|resource
Parameters
$filePath : string

path to the file

Return values
false|resource

created image

imageCreateFromPng()

Creating image from file

public static imageCreateFromPng(string $filePath) : false|resource
Parameters
$filePath : string

path to the file

Return values
false|resource

created image

imageCreateFromWebp()

Creating image from file

public static imageCreateFromWebp(string $filePath) : false|resource
Parameters
$filePath : string

path to the file

Return values
false|resource

created image

imageGif()

Method stores image into file

public static imageGif(resource $resource, string $filePath) : void
Parameters
$resource : resource

resource

$filePath : string

path to the saving file

Return values
void

imageJpeg()

Method stores image into file

public static imageJpeg(resource $resource, string $filePath) : void
Parameters
$resource : resource

resource

$filePath : string

path to the saving file

Return values
void

imagePng()

Method stores image into file

public static imagePng(resource $resource, string $filePath) : void
Parameters
$resource : resource

resource

$filePath : string

path to the saving file

Return values
void

imageWebp()

Method stores image into file

public static imageWebp(resource $resource, string $filePath) : void
Parameters
$resource : resource

resource

$filePath : string

path to the saving file

Return values
void

Search results

    Яндекс.Метрика