Свойство | Тип | Описание | |
---|---|---|---|
$copy_fnc | string | Name of function to copy image | |
$create_fnc | string | Name of function to create image | |
$create_thumb | boolean | Whether to create a thumbnail | |
$dest_folder | string | Destination image folder | |
$dynamic_output | boolean | Whether to send to browser or write to disk | |
$error_msg | array | Error messages | |
$file_permissions | integer | File permissions | |
$full_dst_path | string | Full path to destination image | |
$full_src_path | string | Full path to source image | |
$height | integer | Image height | |
$image_library | string | PHP extension/library to use for image manipulation Can be: imagemagick, netpbm, gd, gd2 | |
$image_type | string | Image format | |
$library_path | string | Path to the graphic library (if applicable) | |
$maintain_ratio | boolean | Whether to maintain aspect ratio when resizing or use hard values | |
$master_dim | string | auto, height, or width. Determines what to use as the master dimension | |
$mime_type | string | Image mime-type | |
$new_image | string | Path to the modified image | |
$orig_height | integer | Original image height | |
$orig_width | integer | Original image width | |
$quality | integer | Quality percentage of new image | |
$rotation_angle | string | Angle at to rotate image | |
$size_str | string | Size of current image | |
$source_folder | string | Source image folder | |
$source_image | string | Path to original image | |
$thumb_marker | string | String to add to thumbnail version of image | |
$width | integer | Image width | |
$wm_font_path | string | TT font | |
$wm_font_size | integer | Font size (different versions of GD will either use points or pixels) | |
$wm_hor_alignment | string | Horizontal alignment: L R C | |
$wm_hor_offset | integer | Lets you push text to the right | |
$wm_opacity | integer | Image opacity: 1 - 100 Only works with image | |
$wm_overlay_path | string | Watermark image path | |
$wm_padding | integer | Padding around text | |
$wm_shadow_distance | integer | Dropshadow distance | |
$wm_text | string | Watermark text if graphic is not used | |
$wm_type | string | Type of watermarking. Options: text/overlay | |
$wm_use_truetype | boolean | Whether to use truetype fonts | |
$wm_vrt_alignment | string | Vertical alignment: T M B | |
$wm_vrt_offset | integer | Lets you push text down | |
$wm_x_transp | integer | Default transparency for watermark | |
$wm_y_transp | integer | Default transparency for watermark | |
$x_axis | integer | X Coordinate for manipulation of the current image | |
$y_axis | integer | Y Coordinate for manipulation of the current image |
Свойство | Тип | Описание | |
---|---|---|---|
$wm_font_color | string | Text color | |
$wm_shadow_color | string | Dropshadow color | |
$wm_use_drop_shadow | boolean | Whether to have a drop shadow on watermark |
Метод | Описание | |
---|---|---|
__construct ( array $props = [] ) : void | Initialize Image Library | |
clear ( ) : void | Initialize image properties | |
crop ( ) : boolean | Image Crop | |
display_errors ( $open = '<p>', $close = '</p>' ) : string | Show error messages | |
explode_name ( $source_image ) : array | Explode source_image | |
gd_loaded ( ) : boolean | Is GD Installed? | |
gd_version ( ) : mixed | Get GD version | |
get_image_properties ( $path = '', $return = FALSE ) : mixed | Get image properties | |
image_create_gd ( $path = '', $image_type = '' ) : resource | Create Image - GD | |
image_display_gd ( $resource ) : void | Dynamically outputs an image | |
image_mirror_gd ( ) : boolean | Create Mirror Image using GD | |
image_process_gd ( $action = 'resize' ) : boolean | Image Process Using GD/GD2 | |
image_process_imagemagick ( $action = 'resize' ) : boolean | Image Process Using ImageMagick | |
image_process_netpbm ( $action = 'resize' ) : boolean | Image Process Using NetPBM | |
image_reproportion ( ) : void | Re-proportion Image Width/Height | |
image_rotate_gd ( ) : boolean | Image Rotate Using GD | |
image_save_gd ( $resource ) : boolean | Write image file to disk - GD | |
initialize ( $props = [] ) : boolean | initialize image preferences | |
overlay_watermark ( ) : boolean | Watermark - Graphic Version | |
resize ( ) : boolean | Image Resize | |
rotate ( ) : boolean | Image Rotate | |
set_error ( $msg ) : void | Set error message | |
size_calculator ( $vals ) : array | Size calculator | |
text_watermark ( ) : boolean | Watermark - Text Version | |
watermark ( ) : boolean | Image Watermark |
public __construct ( array $props = [] ) : void | ||
$props | array | |
Результат | void |
public display_errors ( $open = '<p>', $close = '</p>' ) : string | ||
Результат | string |
public explode_name ( $source_image ) : array | ||
Результат | array |
public get_image_properties ( $path = '', $return = FALSE ) : mixed | ||
Результат | mixed |
public image_create_gd ( $path = '', $image_type = '' ) : resource | ||
Результат | resource |
public image_display_gd ( $resource ) : void | ||
Результат | void |
public image_mirror_gd ( ) : boolean | ||
Результат | boolean |
public image_process_gd ( $action = 'resize' ) : boolean | ||
Результат | boolean |
public image_process_imagemagick ( $action = 'resize' ) : boolean | ||
Результат | boolean |
public image_process_netpbm ( $action = 'resize' ) : boolean | ||
Результат | boolean |
public image_reproportion ( ) : void | ||
Результат | void |
public image_rotate_gd ( ) : boolean | ||
Результат | boolean |
public image_save_gd ( $resource ) : boolean | ||
Результат | boolean |
public initialize ( $props = [] ) : boolean | ||
Результат | boolean |
public overlay_watermark ( ) : boolean | ||
Результат | boolean |
public size_calculator ( $vals ) : array | ||
Результат | array |
public text_watermark ( ) : boolean | ||
Результат | boolean |
public string $copy_fnc | ||
Результат | string |
public string $create_fnc | ||
Результат | string |
public bool $create_thumb | ||
Результат | boolean |
public string $dest_folder | ||
Результат | string |
public bool $dynamic_output | ||
Результат | boolean |
public int $file_permissions | ||
Результат | integer |
public string $full_dst_path | ||
Результат | string |
public string $full_src_path | ||
Результат | string |
public string $image_library | ||
Результат | string |
public string $library_path | ||
Результат | string |
public bool $maintain_ratio | ||
Результат | boolean |
public string $master_dim | ||
Результат | string |
public string $rotation_angle | ||
Результат | string |
public string $source_image | ||
Результат | string |
public string $thumb_marker | ||
Результат | string |
public int $wm_font_size | ||
Результат | integer |
public string $wm_hor_alignment | ||
Результат | string |
public int $wm_hor_offset | ||
Результат | integer |
public int $wm_opacity | ||
Результат | integer |
public string $wm_overlay_path | ||
Результат | string |
protected string $wm_shadow_color | ||
Результат | string |
public int $wm_shadow_distance | ||
Результат | integer |
public string $wm_text | ||
Результат | string |
public string $wm_type | ||
Результат | string |
protected bool $wm_use_drop_shadow | ||
Результат | boolean |
public bool $wm_use_truetype | ||
Результат | boolean |
public string $wm_vrt_alignment | ||
Результат | string |
public int $wm_vrt_offset | ||
Результат | integer |
public int $wm_x_transp | ||
Результат | integer |
public int $wm_y_transp | ||
Результат | integer |
public int $x_axis | ||
Результат | integer |
public int $y_axis | ||
Результат | integer |