[ Index ] |
PHP Cross Reference of MyBB |
[Source view] [Print] [Project Stats]
MyBB 1.6 Copyright 2010 MyBB Group, All Rights Reserved Website: http://mybb.com License: http://mybb.com/about/license
File Size: | 257 lines (6 kb) |
Included or required: | 10 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
generate_thumbnail($file, $path, $filename, $maxheight, $maxwidth) X-Ref |
Generates a thumbnail based on specified dimensions (supports png, jpg, and gif) param: string the full path to the original image param: string the directory path to where to save the new image param: string the filename to save the new image as param: integer maximum hight dimension param: integer maximum width dimension return: array thumbnail on success, error code 4 on failure |
check_thumbnail_memory($width, $height, $type, $bitdepth, $channels) X-Ref |
Attempts to allocate enough memory to generate the thumbnail param: integer hight dimension param: integer width dimension param: string one of the IMAGETYPE_XXX constants indicating the type of the image param: string the bits area the number of bits for each color param: string the channels - 3 for RGB pictures and 4 for CMYK pictures |
scale_image($width, $height, $maxwidth, $maxheight) X-Ref |
Figures out the correct dimensions to use param: integer current hight dimension param: integer current width dimension param: integer max hight dimension param: integer max width dimension return: array correct height & width |
Generated: Tue Oct 8 19:19:50 2013 | Cross-referenced by PHPXref 0.7.1 |