$94 GRAYBYTE WORDPRESS FILE MANAGER $26

SERVER : premium201.web-hosting.com #1 SMP Wed Mar 26 12:08:09 UTC 2025
SERVER IP : 104.21.43.35 | ADMIN IP 216.73.216.180
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : mail

/opt/alt/php85/usr/include/php/ext/standard/

HOME
Current File : /opt/alt/php85/usr/include/php/ext/standard//php_image.h
/*
   +----------------------------------------------------------------------+
   | Copyright (c) The PHP Group                                          |
   +----------------------------------------------------------------------+
   | This source file is subject to version 3.01 of the PHP license,      |
   | that is bundled with this package in the file LICENSE, and is        |
   | available through the world-wide-web at the following url:           |
   | https://www.php.net/license/3_01.txt                                 |
   | If you did not receive a copy of the PHP license and are unable to   |
   | obtain it through the world-wide-web, please send a note to          |
   | [email protected] so we can mail you a copy immediately.               |
   +----------------------------------------------------------------------+
   | Authors: Rasmus Lerdorf <[email protected]>                             |
   |          Marcus Boerger <[email protected]>                              |
   +----------------------------------------------------------------------+
*/

#ifndef PHP_IMAGE_H
#define PHP_IMAGE_H

PHP_MINIT_FUNCTION(image);
PHP_MSHUTDOWN_FUNCTION(image);

/* {{{ enum image_filetype
   This enum is used to have ext/standard/image.c and ext/exif/exif.c use
   the same constants for file types.
*/
typedef enum
{ IMAGE_FILETYPE_UNKNOWN=0,
  IMAGE_FILETYPE_GIF=1,
  IMAGE_FILETYPE_JPEG,
  IMAGE_FILETYPE_PNG,
  IMAGE_FILETYPE_SWF,
  IMAGE_FILETYPE_PSD,
  IMAGE_FILETYPE_BMP,
  IMAGE_FILETYPE_TIFF_II, /* intel */
  IMAGE_FILETYPE_TIFF_MM, /* motorola */
  IMAGE_FILETYPE_JPC,
  IMAGE_FILETYPE_JP2,
  IMAGE_FILETYPE_JPX,
  IMAGE_FILETYPE_JB2,
  IMAGE_FILETYPE_SWC,
  IMAGE_FILETYPE_IFF,
  IMAGE_FILETYPE_WBMP,
  /* IMAGE_FILETYPE_JPEG2000 is a userland alias for IMAGE_FILETYPE_JPC */
  IMAGE_FILETYPE_XBM,
  IMAGE_FILETYPE_ICO,
  IMAGE_FILETYPE_WEBP,
  IMAGE_FILETYPE_AVIF,
  IMAGE_FILETYPE_HEIF,
/* WHEN EXTENDING: PLEASE ALSO REGISTER IN basic_function.stub.php */
  IMAGE_FILETYPE_FIXED_COUNT
} image_filetype;
/* }}} */

PHPAPI int php_getimagetype(php_stream *stream, const char *input, char *filetype);

PHPAPI const char * php_image_type_to_mime_type(int image_type);

PHPAPI bool php_is_image_avif(php_stream *stream);

/* return info as a struct, to make expansion easier */
struct php_gfxinfo {
	unsigned int width;
	unsigned int height;
	zend_string *width_unit;
	zend_string *height_unit;
	unsigned int bits;
	unsigned int channels;
};

typedef zend_result (*php_image_identify)(php_stream *stream);
typedef struct php_gfxinfo *(*php_image_get_info)(php_stream *stream);

struct php_image_handler {
	const char *mime_type;
	const char *extension;
	const char *const_name;
	php_image_identify identify;
	php_image_get_info get_info;
};

#define PHP_IMAGE_CONST_NAME(suffix) ("IMAGETYPE_" suffix)

/* This should only be called on module init */
PHPAPI int php_image_register_handler(const struct php_image_handler *handler);
/* This should only be called on module shutdown */
PHPAPI zend_result php_image_unregister_handler(int image_type);

#endif /* PHP_IMAGE_H */


Current_dir [ NOT WRITEABLE ] Document_root [ NOT WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
12 Mar 2026 4.58 PM
root / linksafe
0755
base64.h
3.919 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
basic_functions.h
4.479 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
basic_functions_arginfo.h
170.019 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
crc32.h
4.801 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
crc32_x86.h
1.838 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
credits.h
1.525 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
credits_ext.h
5.104 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
credits_sapi.h
0.812 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
crypt_blowfish.h
0.771 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
crypt_freesec.h
0.57 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
css.h
1.045 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
dir_arginfo.h
3.318 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
dl.h
1.462 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
dl_arginfo.h
0.264 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
exec.h
1.307 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
file.h
4.021 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
file_arginfo.h
9.645 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
flock_compat.h
1.858 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
fsock.h
1.218 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
head.h
1.596 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
html.h
2.362 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
html_tables.h
472.263 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
info.h
22.885 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
md5.h
1.978 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
pageinfo.h
1.152 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
password_arginfo.h
1.007 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
php_array.h
2.798 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
php_assert.h
1.35 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
php_browscap.h
1.108 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
php_crypt.h
1.458 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
php_crypt_r.h
1.64 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
php_dir.h
1.212 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
php_dir_int.h
1.032 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
php_dns.h
3.567 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
php_ext_syslog.h
1.165 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
php_filestat.h
2.104 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
php_fopen_wrappers.h
1.794 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
php_http.h
1.317 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
php_image.h
3.021 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
php_incomplete_class.h
2.15 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
php_mail.h
1.251 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
php_math.h
3.306 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
php_math_round_mode.h
1.93 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
php_net.h
1.136 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
php_password.h
2.811 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
php_standard.h
1.809 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
php_string.h
3.849 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
php_uuencode.h
1.177 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
php_var.h
3.415 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
php_versioning.h
1.183 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
proc_open.h
1.896 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
quot_print.h
1.226 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
scanf.h
1.95 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
sha1.h
1.582 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
streamsfuncs.h
1.11 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
url.h
2.27 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
url_scanner_ex.h
2.367 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
user_filters_arginfo.h
4.785 KB
12 Mar 2026 4.58 PM
root / linksafe
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025 CONTACT ME
Static GIF