| Server IP : www.new.bangkokfinder.com / Your IP : 172.70.208.160 Web Server : nginx/1.20.1 System : Linux new 4.15.0-159-generic #167-Ubuntu SMP Tue Sep 21 08:55:05 UTC 2021 x86_64 User : bangkokfinder ( 1000) PHP Version : 7.4.33 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare, MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /usr/src/imagick-3.5.1/ |
Upload File : |
/*
+----------------------------------------------------------------------+
| PHP Version 5 / Imagick |
+----------------------------------------------------------------------+
| Copyright (c) 2006-2013 Mikko Koppanen, Scott MacVicar |
| ImageMagick (c) ImageMagick Studio LLC |
+----------------------------------------------------------------------+
| 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: |
| http://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. |
+----------------------------------------------------------------------+
| Author: Mikko Kopppanen <[email protected]> |
| Scott MacVicar <[email protected]> |
+----------------------------------------------------------------------+
*/
#ifndef PHP_IMAGICK_FILE_H
# define PHP_IMAGICK_FILE_H
#include "php_imagick.h"
#include "php_imagick_defs.h"
typedef enum {
ImagickUndefinedType, /* Don't know */
ImagickFile, /* Use ImageMagick to read the file */
ImagickUri, /* Use PHP streams to read the file */
ImagickVirtualFormat, /* The file is a virtual, use ImageMagick */
} ImagickFileType;
struct php_imagick_file_t {
/* The file type */
ImagickFileType type;
/* Absolute path to the file, emalloced */
char *absolute_path;
size_t absolute_path_len;
/* Original filename */
char filename[MaxTextExtent];
size_t filename_len;
};
typedef enum {
ImagickUndefinedOperation,
ImagickReadImage,
ImagickPingImage,
ImagickWriteImage,
ImagickWriteImages,
ImagickWriteImageFile,
ImagickWriteImagesFile,
ImagickReadImageFile,
ImagickPingImageFile,
} ImagickOperationType;
zend_bool php_imagick_file_init(struct php_imagick_file_t *file, const char *filename, size_t filename_len TSRMLS_DC);
void php_imagick_file_deinit(struct php_imagick_file_t *file);
int php_imagick_safe_mode_check(const char *filename TSRMLS_DC);
/* Read operations */
php_imagick_rw_result_t php_imagick_read_file(php_imagick_object *intern, struct php_imagick_file_t *file, ImagickOperationType type TSRMLS_DC);
/* Write operations */
php_imagick_rw_result_t php_imagick_write_file(php_imagick_object *intern, struct php_imagick_file_t *file, ImagickOperationType type, zend_bool adjoin TSRMLS_DC);
/* Handle streams */
zend_bool php_imagick_stream_handler(php_imagick_object *intern, php_stream *stream, ImagickOperationType type TSRMLS_DC);
#endif /* PHP_IMAGICK_FILE_H */