Moodle APIs 3.9
Moodle 3.9.13+ (Build: 20220325)
Functions
gdlib.php File Reference

gdlib.php - Collection of routines in Moodle related to processing images using GD More...

Functions

 generate_image_thumbnail ($filepath, $width, $height)
 Generates a thumbnail for the given image. More...
 
 generate_image_thumbnail_from_image ($original, $imageinfo, $width, $height)
 Generates a thumbnail for the given image string. More...
 
 generate_image_thumbnail_from_string ($filedata, $width, $height)
 Generates a thumbnail for the given image string. More...
 
 imagecopybicubic ($dst_img, $src_img, $dst_x, $dst_y, $src_x, $src_y, $dst_w, $dst_h, $src_w, $src_h)
 Copies a rectangular portion of the source image to another rectangle in the destination image. More...
 
 process_new_icon ($context, $component, $filearea, $itemid, $originalfile, $preferpng=false)
 Stores optimised icon images in icon file area. More...
 
 resize_image ($filepath, $width, $height, $forcecanvas=false)
 Resize an image from an image path. More...
 
 resize_image_from_image ($original, $imageinfo, $width, $height, $forcecanvas=false)
 Resize an image from an image object. More...
 

Detailed Description

gdlib.php - Collection of routines in Moodle related to processing images using GD

License
http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later