php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
php_image.h
Go to the documentation of this file.
1/*
2 +----------------------------------------------------------------------+
3 | Copyright (c) The PHP Group |
4 +----------------------------------------------------------------------+
5 | This source file is subject to version 3.01 of the PHP license, |
6 | that is bundled with this package in the file LICENSE, and is |
7 | available through the world-wide-web at the following url: |
8 | https://www.php.net/license/3_01.txt |
9 | If you did not receive a copy of the PHP license and are unable to |
10 | obtain it through the world-wide-web, please send a note to |
11 | license@php.net so we can mail you a copy immediately. |
12 +----------------------------------------------------------------------+
13 | Authors: Rasmus Lerdorf <rasmus@php.net> |
14 | Marcus Boerger <helly@php.net> |
15 +----------------------------------------------------------------------+
16*/
17
18#ifndef PHP_IMAGE_H
19#define PHP_IMAGE_H
20
21/* {{{ enum image_filetype
22 This enum is used to have ext/standard/image.c and ext/exif/exif.c use
23 the same constants for file types.
24*/
50/* }}} */
51
52PHPAPI int php_getimagetype(php_stream *stream, const char *input, char *filetype);
53
54PHPAPI char * php_image_type_to_mime_type(int image_type);
55
57
58#endif /* PHP_IMAGE_H */
filetype(string $filename)
#define PHPAPI
Definition php.h:71
image_filetype
Definition php_image.h:26
@ IMAGE_FILETYPE_JPX
Definition php_image.h:37
@ IMAGE_FILETYPE_JPC
Definition php_image.h:35
@ IMAGE_FILETYPE_WBMP
Definition php_image.h:41
@ IMAGE_FILETYPE_PSD
Definition php_image.h:31
@ IMAGE_FILETYPE_ICO
Definition php_image.h:44
@ IMAGE_FILETYPE_PNG
Definition php_image.h:29
@ IMAGE_FILETYPE_XBM
Definition php_image.h:43
@ IMAGE_FILETYPE_IFF
Definition php_image.h:40
@ IMAGE_FILETYPE_WEBP
Definition php_image.h:45
@ IMAGE_FILETYPE_JPEG
Definition php_image.h:28
@ IMAGE_FILETYPE_AVIF
Definition php_image.h:46
@ IMAGE_FILETYPE_TIFF_MM
Definition php_image.h:34
@ IMAGE_FILETYPE_UNKNOWN
Definition php_image.h:26
@ IMAGE_FILETYPE_JB2
Definition php_image.h:38
@ IMAGE_FILETYPE_GIF
Definition php_image.h:27
@ IMAGE_FILETYPE_BMP
Definition php_image.h:32
@ IMAGE_FILETYPE_JP2
Definition php_image.h:36
@ IMAGE_FILETYPE_TIFF_II
Definition php_image.h:33
@ IMAGE_FILETYPE_COUNT
Definition php_image.h:48
@ IMAGE_FILETYPE_SWF
Definition php_image.h:30
@ IMAGE_FILETYPE_SWC
Definition php_image.h:39
PHPAPI char * php_image_type_to_mime_type(int image_type)
Definition image.c:1217
PHPAPI bool php_is_image_avif(php_stream *stream)
Definition image.c:1204
PHPAPI int php_getimagetype(php_stream *stream, const char *input, char *filetype)
Definition image.c:1349
struct _php_stream php_stream
Definition php_streams.h:96