TCPDF_IMAGES

class

TCPDF_IMAGES Static image methods used by the TCPDF class.

package

com.tecnick.tcpdf

brief

PHP class for generating PDF documents without requiring external extensions.

version 1.0.005
author

Nicola Asuni - info@tecnick.com

Methods

Extract info from a JPEG file without using the GD library.

_parsejpeg(string $file): array|false
static
public

static

Arguments

$file

string

image file to parse

Response

array|false

structure containing the image data

Extract info from a PNG file without using the GD library.

_parsepng(string $file): array|false
static
public

static

Arguments

$file

string

image file to parse

Response

array|false

structure containing the image data

Convert the loaded image to a JPEG and then return a structure for the PDF creator.

_toJPEG(resource $image,integer $quality,string $tempfile)
static

This function requires GD library and write access to the directory defined on K_PATH_CACHE constant.

public

static

Arguments

$image

resource

Image object.

$quality

integer

JPEG quality.

$tempfile

string

Temporary file name. return array|false image JPEG image object.

Convert the loaded image to a PNG and then return a structure for the PDF creator.

_toPNG(resource $image,string $tempfile)
static

This function requires GD library and write access to the directory defined on K_PATH_CACHE constant.

since 4.9.016

(2010-04-20)

public

static

Arguments

$image

resource

Image object.

$tempfile

string

Temporary file name. return image PNG image object.

Return the image type given the file name or array returned by getimagesize() function.

getImageFileType(string $imgfile,array $iminfo = array()): string
static
since 4.8.017

(2009-11-27)

public

static

Arguments

$imgfile

string

image file name

$iminfo

array

array of image information returned by getimagesize() function.

Response

string

image type

Set the transparency for the given GD image.

setGDImageTransparency(resource $new_image,resource $image): resource
static
since 4.9.016

(2010-04-20)

public

static

Arguments

$new_image

resource

GD image object

$image

resource

GD image object.

Response

resource

GD image object $new_image

Properties

Array of hinheritable SVG properties.

svginheritprop :array<mixed,string>
static
since

(2010-05-02)

public

static

var

Type(s)

array<mixed,string>