Home « Server software «
Documentation: images/image.php
Class Image - Handle one image
This script is a reference file of this system.
Licence: GNU Lesser General Public License
Auteurs:
- Bernard Paques bernard.paques@bigfoot.com
Testeurs:
- Adivo
adjust() - Maintain image size within limits
function adjust($original, $verbose=TRUE, $variant='standard')
- $original - string the full path to the original file
- $verbose=TRUE - boolean TRUE to set error messages, if any
- $variant='standard' - string 'standard' or 'avatar'
- returns TRUE on resize, FALSE otherwise
Voir aussi:
shrink() - Create a thumbnail
function shrink($original, $target, $verbose=TRUE)
- $original - string the full path to the original file
- $target - string the pull path to write the thumbnail
- $verbose=TRUE - boolean TRUE to see error messages, if any
- returns TRUE on success, FALSE on error