[ Index ]

PHP Cross Reference of phpBB-3.2.11-deutsch




/vendor/marc1706/fast-image-size/lib/Type/ -> TypeWebp.php (summary)

fast-image-size image type webp

Copyright: (c) Marc Alexander <admin@m-a-styles.de>
File Size: 141 lines (4 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

TypeWebp:: (5 methods):

Class: TypeWebp  - X-Ref

__construct(FastImageSize $fastImageSize)   X-Ref
Constructor for webp image type. Adds missing constant if necessary.

param: FastImageSize $fastImageSize

getSize($filename)   X-Ref

hasWebpHeader($data)   X-Ref
Check if $data has valid WebP header

param: string $data Image data
return: bool True if $data has valid WebP header, false if not

isValidFormat($format)   X-Ref
Check if $format is a valid WebP format

param: string $format Format string
return: bool True if format is valid WebP format, false if not

getWebpSize($data, $format)   X-Ref
Get webp size info depending on format type and set size array values

param: string $data Data string
param: string $format Format string

Generated: Wed Nov 11 20:33:01 2020 Cross-referenced by PHPXref 0.7.1