Property | Type | Description | |
---|---|---|---|
$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 |
Property | Type | Description | |
---|---|---|---|
$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 |
Method | Description | |
---|---|---|
__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 | |
return | void |
public display_errors ( $open = '<p>', $close = '</p>' ) : string | ||
return | string |
public explode_name ( $source_image ) : array | ||
return | array |
public get_image_properties ( $path = '', $return = FALSE ) : mixed | ||
return | mixed |
public image_create_gd ( $path = '', $image_type = '' ) : resource | ||
return | resource |
public image_display_gd ( $resource ) : void | ||
return | void |
public image_mirror_gd ( ) : boolean | ||
return | boolean |
public image_process_gd ( $action = 'resize' ) : boolean | ||
return | boolean |
public image_process_imagemagick ( $action = 'resize' ) : boolean | ||
return | boolean |
public image_process_netpbm ( $action = 'resize' ) : boolean | ||
return | boolean |
public image_reproportion ( ) : void | ||
return | void |
public image_rotate_gd ( ) : boolean | ||
return | boolean |
public image_save_gd ( $resource ) : boolean | ||
return | boolean |
public initialize ( $props = [] ) : boolean | ||
return | boolean |
public overlay_watermark ( ) : boolean | ||
return | boolean |
public size_calculator ( $vals ) : array | ||
return | array |
public text_watermark ( ) : boolean | ||
return | boolean |
public string $create_fnc | ||
return | string |
public bool $create_thumb | ||
return | boolean |
public bool $dynamic_output | ||
return | boolean |
public string $full_dst_path | ||
return | string |
public string $full_src_path | ||
return | string |
public string $image_library | ||
return | string |
public string $library_path | ||
return | string |
public bool $maintain_ratio | ||
return | boolean |
public string $master_dim | ||
return | string |
public string $rotation_angle | ||
return | string |
public string $thumb_marker | ||
return | string |
public int $wm_font_size | ||
return | integer |
public string $wm_hor_alignment | ||
return | string |
public int $wm_hor_offset | ||
return | integer |
public int $wm_opacity | ||
return | integer |
public string $wm_overlay_path | ||
return | string |
protected string $wm_shadow_color | ||
return | string |
public int $wm_shadow_distance | ||
return | integer |
public string $wm_text | ||
return | string |
public string $wm_type | ||
return | string |
protected bool $wm_use_drop_shadow | ||
return | boolean |
public bool $wm_use_truetype | ||
return | boolean |
public string $wm_vrt_alignment | ||
return | string |
public int $wm_x_transp | ||
return | integer |
public int $wm_y_transp | ||
return | integer |
public int $x_axis | ||
return | integer |
public int $y_axis | ||
return | integer |