
16/02/2008, 23:40
|
 | | | Fecha de Ingreso: junio-2006
Mensajes: 550
Antigüedad: 18 años, 9 meses Puntos: 7 | |
Re: Subir Imagen Continuación class.upload.php
Código:
/**
* Set this variable to keep the original size ratio to fit within {@link image_x} x {@link image_y},
* but only if original image is smaller
*
* Default value is false
*
* @access public
* @var bool
*/
var $image_ratio_no_zoom_out;
/**
* Set this variable to calculate {@link image_x} automatically , using {@link image_y} and conserving ratio
*
* Default value is false
*
* @access public
* @var bool
*/
var $image_ratio_x;
/**
* Set this variable to calculate {@link image_y} automatically , using {@link image_x} and conserving ratio
*
* Default value is false
*
* @access public
* @var bool
*/
var $image_ratio_y;
/**
* Set this variable to set a maximum image width, above which the upload will be invalid
*
* Default value is null
*
* @access public
* @var integer
*/
var $image_max_width;
/**
* Set this variable to set a maximum image height, above which the upload will be invalid
*
* Default value is null
*
* @access public
* @var integer
*/
var $image_max_height;
/**
* Set this variable to set a maximum number of pixels for an image, above which the upload will be invalid
*
* Default value is null
*
* @access public
* @var long
*/
var $image_max_pixels;
/**
* Set this variable to set a maximum image aspect ratio, above which the upload will be invalid
*
* Note that ratio = width / height
*
* Default value is null
*
* @access public
* @var float
*/
var $image_max_ratio;
/**
* Set this variable to set a minimum image width, below which the upload will be invalid
*
* Default value is null
*
* @access public
* @var integer
*/
var $image_min_width;
/**
* Set this variable to set a minimum image height, below which the upload will be invalid
*
* Default value is null
*
* @access public
* @var integer
*/
var $image_min_height;
/**
* Set this variable to set a minimum number of pixels for an image, below which the upload will be invalid
*
* Default value is null
*
* @access public
* @var long
*/
var $image_min_pixels;
/**
* Set this variable to set a minimum image aspect ratio, below which the upload will be invalid
*
* Note that ratio = width / height
*
* Default value is null
*
* @access public
* @var float
*/
var $image_min_ratio;
/**
* Quality of JPEG created/converted destination image
*
* Default value is 85
*
* @access public
* @var integer
*/
var $jpeg_quality;
/**
* Determines the quality of the JPG image to fit a desired file size
*
* Value is in bytes. The JPG quality will be set between 1 and 100%
* The calculations are approximations.
*
* Default value is null (no calculations)
*
* @access public
* @var integer
*/
var $jpeg_size;
/**
* Preserve transparency when resizing or converting an image (deprecated)
*
* Default value is automatically set to true for transparent GIFs
* This setting is now deprecated
*
* @access public
* @var integer
*/
var $preserve_transparency;
/**
* Flag set to true when the image is transparent
*
* This is actually used only for transparent GIFs
*
* @access public
* @var boolean
*/
var $image_is_transparent;
/**
* Transparent color in a palette
*
* This is actually used only for transparent GIFs
*
* @access public
* @var boolean
*/
var $image_transparent_color;
/**
* Background color, used to paint transparent areas with
*
* If set, it will forcibly remove transparency by painting transparent areas with the color
* This setting will fill in all transparent areas in PNG and GIF, as opposed to {@link image_default_color}
* which will do so only in BMP, JPEG, and alpha transparent areas in transparent GIFs
* This setting overrides {@link image_default_color}
*
* Default value is null
*
* @access public
* @var string
*/
var $image_background_color;
/**
* Default color for non alpha-transparent images
*
* This setting is to be used to define a background color for semi transparent areas
* of an alpha transparent when the output format doesn't support alpha transparency
* This is useful when, from an alpha transparent PNG image, or an image with alpha transparent features
* if you want to output it as a transparent GIFs for instance, you can set a blending color for transparent areas
* If you output in JPEG or BMP, this color will be used to fill in the previously transparent areas
*
* The default color white
*
* @access public
* @var boolean
*/
var $image_default_color;
/**
* Flag set to true when the image is not true color
*
* @access public
* @var boolean
*/
var $image_is_palette;
/**
* Corrects the image brightness
*
* Value can range between -127 and 127
*
* Default value is null
*
* @access public
* @var integer
*/
var $image_brightness;
|