Definition at line 36 of file Image.php.
◆ _extractJpegImage()
| static _extractJpegImage |
( |
|
$dataSource | ) |
|
|
staticprotected |
Attempts to extract a JPEG Image from the data source.
- Parameters
-
- Returns
- Zend_Pdf_Resource_Image_Jpeg May also return null if the data source does not appear to contain valid image data.
- Exceptions
-
Definition at line 194 of file Image.php.
196 #require_once 'Zend/Pdf/Exception.php'; 197 throw new Zend_Pdf_Exception(
'Jpeg image fileparser is not implemented. Old styly implementation has to be used.');
199 #require_once 'Zend/Pdf/FileParser/Image/Jpeg.php'; 200 $imageParser =
new Zend_Pdf_FileParser_Image_Jpeg($dataSource);
201 #require_once 'Zend/Pdf/Resource/Image/Jpeg.php';
◆ _extractPngImage()
| static _extractPngImage |
( |
|
$dataSource | ) |
|
|
staticprotected |
Attempts to extract a PNG Image from the data source.
- Parameters
-
- Returns
- Zend_Pdf_Resource_Image_Png May also return null if the data source does not appear to contain valid image data.
Definition at line 215 of file Image.php.
217 #require_once 'Zend/Pdf/FileParser/Image/Png.php'; 219 #require_once 'Zend/Pdf/Resource/Image/Png.php';
◆ _extractTiffImage()
| static _extractTiffImage |
( |
|
$dataSource | ) |
|
|
staticprotected |
Attempts to extract a TIFF Image from the data source.
- Parameters
-
- Returns
- Zend_Pdf_Resource_Image_Tiff May also return null if the data source does not appear to contain valid image data.
- Exceptions
-
Definition at line 234 of file Image.php.
236 #require_once 'Zend/Pdf/Exception.php'; 237 throw new Zend_Pdf_Exception(
'Tiff image fileparser is not implemented. Old styly implementation has to be used.');
239 #require_once 'Zend/Pdf/FileParser/Image/Tiff.php'; 240 $imageParser =
new Zend_Pdf_FileParser_Image_Tiff($dataSource);
241 #require_once 'Zend/Pdf/Resource/Image/Tiff.php';
◆ imageWithPath()
| static imageWithPath |
( |
|
$filePath | ) |
|
|
static |
Returns a Zend_Pdf_Resource_Image object by file path.
- Parameters
-
| string | $filePath | Full path to the image file. |
- Returns
- Zend_Pdf_Resource_Image
- Exceptions
-
use old implementation
- Todo:
- switch to new implementation
Definition at line 117 of file Image.php.
123 #require_once 'Zend/Pdf/Resource/ImageFactory.php'; 130 #require_once 'Zend/Pdf/FileParserDataSource/File.php'; 136 $fileExtension = strtolower(pathinfo($filePath, PATHINFO_EXTENSION));
141 switch ($fileExtension) {
158 #require_once 'Zend/Pdf/Exception.php'; 159 throw new Zend_Pdf_Exception(
"Cannot create image resource. File extension not known or unsupported type.");
173 #require_once 'Zend/Pdf/Exception.php'; static _extractJpegImage($dataSource)
static _extractTiffImage($dataSource)
static _extractPngImage($dataSource)
const CANT_DETERMINE_IMAGE_TYPE
static factory($filename)
◆ PNG_CHANNEL_GRAY
| const PNG_CHANNEL_GRAY = 0 |
◆ PNG_CHANNEL_GRAY_ALPHA
| const PNG_CHANNEL_GRAY_ALPHA = 4 |
◆ PNG_CHANNEL_INDEXED
| const PNG_CHANNEL_INDEXED = 3 |
◆ PNG_CHANNEL_RGB
| const PNG_CHANNEL_RGB = 2 |
◆ PNG_CHANNEL_RGB_ALPHA
| const PNG_CHANNEL_RGB_ALPHA = 6 |
◆ PNG_COMPRESSION_DEFAULT_STRATEGY
| const PNG_COMPRESSION_DEFAULT_STRATEGY = 0 |
◆ PNG_COMPRESSION_FILTERED
| const PNG_COMPRESSION_FILTERED = 1 |
◆ PNG_COMPRESSION_HUFFMAN_ONLY
| const PNG_COMPRESSION_HUFFMAN_ONLY = 2 |
◆ PNG_COMPRESSION_RLE
| const PNG_COMPRESSION_RLE = 3 |
◆ PNG_FILTER_AVERAGE
| const PNG_FILTER_AVERAGE = 3 |
◆ PNG_FILTER_NONE
| const PNG_FILTER_NONE = 0 |
◆ PNG_FILTER_PAETH
| const PNG_FILTER_PAETH = 4 |
◆ PNG_FILTER_SUB
◆ PNG_FILTER_UP
◆ PNG_INTERLACING_DISABLED
| const PNG_INTERLACING_DISABLED = 0 |
◆ PNG_INTERLACING_ENABLED
| const PNG_INTERLACING_ENABLED = 1 |
◆ TIFF_COMPRESSION_CCITT1D
| const TIFF_COMPRESSION_CCITT1D = 2 |
◆ TIFF_COMPRESSION_FLATE
| const TIFF_COMPRESSION_FLATE = 8 |
◆ TIFF_COMPRESSION_FLATE_OBSOLETE_CODE
| const TIFF_COMPRESSION_FLATE_OBSOLETE_CODE = 32946 |
◆ TIFF_COMPRESSION_GROUP_3_FAX
| const TIFF_COMPRESSION_GROUP_3_FAX = 3 |
◆ TIFF_COMPRESSION_GROUP_4_FAX
| const TIFF_COMPRESSION_GROUP_4_FAX = 4 |
◆ TIFF_COMPRESSION_JPEG
| const TIFF_COMPRESSION_JPEG = 6 |
◆ TIFF_COMPRESSION_LZW
| const TIFF_COMPRESSION_LZW = 5 |
◆ TIFF_COMPRESSION_PACKBITS
| const TIFF_COMPRESSION_PACKBITS = 32773 |
◆ TIFF_COMPRESSION_UNCOMPRESSED
| const TIFF_COMPRESSION_UNCOMPRESSED = 1 |
◆ TIFF_FIELD_TYPE_ASCII
| const TIFF_FIELD_TYPE_ASCII =2 |
◆ TIFF_FIELD_TYPE_BYTE
| const TIFF_FIELD_TYPE_BYTE =1 |
◆ TIFF_FIELD_TYPE_LONG
| const TIFF_FIELD_TYPE_LONG =4 |
◆ TIFF_FIELD_TYPE_RATIONAL
| const TIFF_FIELD_TYPE_RATIONAL =5 |
◆ TIFF_FIELD_TYPE_SHORT
| const TIFF_FIELD_TYPE_SHORT =3 |
◆ TIFF_PHOTOMETRIC_INTERPRETATION_BLACK_IS_ZERO
| const TIFF_PHOTOMETRIC_INTERPRETATION_BLACK_IS_ZERO =1 |
◆ TIFF_PHOTOMETRIC_INTERPRETATION_CIELAB
| const TIFF_PHOTOMETRIC_INTERPRETATION_CIELAB =8 |
◆ TIFF_PHOTOMETRIC_INTERPRETATION_CMYK
| const TIFF_PHOTOMETRIC_INTERPRETATION_CMYK =5 |
◆ TIFF_PHOTOMETRIC_INTERPRETATION_RGB
| const TIFF_PHOTOMETRIC_INTERPRETATION_RGB =2 |
◆ TIFF_PHOTOMETRIC_INTERPRETATION_RGB_INDEXED
| const TIFF_PHOTOMETRIC_INTERPRETATION_RGB_INDEXED =3 |
◆ TIFF_PHOTOMETRIC_INTERPRETATION_WHITE_IS_ZERO
| const TIFF_PHOTOMETRIC_INTERPRETATION_WHITE_IS_ZERO =0 |
◆ TIFF_PHOTOMETRIC_INTERPRETATION_YCBCR
| const TIFF_PHOTOMETRIC_INTERPRETATION_YCBCR =6 |
◆ TIFF_TAG_BITS_PER_SAMPLE
| const TIFF_TAG_BITS_PER_SAMPLE =258 |
◆ TIFF_TAG_COMPRESSION
| const TIFF_TAG_COMPRESSION =259 |
◆ TIFF_TAG_IMAGE_LENGTH
| const TIFF_TAG_IMAGE_LENGTH =257 |
◆ TIFF_TAG_IMAGE_WIDTH
| const TIFF_TAG_IMAGE_WIDTH =256 |
◆ TIFF_TAG_PHOTOMETRIC_INTERPRETATION
| const TIFF_TAG_PHOTOMETRIC_INTERPRETATION =262 |
◆ TIFF_TAG_SAMPLES_PER_PIXEL
| const TIFF_TAG_SAMPLES_PER_PIXEL =277 |
◆ TIFF_TAG_STRIP_BYTE_COUNTS
| const TIFF_TAG_STRIP_BYTE_COUNTS =279 |
◆ TIFF_TAG_STRIP_OFFSETS
| const TIFF_TAG_STRIP_OFFSETS =273 |
◆ TYPE_JPEG
◆ TYPE_PNG
◆ TYPE_TIFF
◆ TYPE_UNKNOWN
The documentation for this class was generated from the following file:
- vendor/magento/zendframework1/library/Zend/Pdf/Image.php