Class Mage_Catalog_Model_Product_Image
Catalog product link model
- Varien_Object
- Mage_Core_Model_Abstract
- Mage_Catalog_Model_Product_Image
Direct known subclasses
Mage_XmlConnect_Model_Catalog_Category_Image
Package: Mage\Catalog
Category: Mage
Copyright: Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
License: Open Software License (OSL 3.0)
Author: Magento Core Team <core@magentocommerce.com>
Located at code/core/Mage/Catalog/Model/Product/Image.php
Category: Mage
Copyright: Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
License: Open Software License (OSL 3.0)
Author: Magento Core Team <core@magentocommerce.com>
Located at code/core/Mage/Catalog/Model/Product/Image.php
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
integer
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
protected
|
|
protected
|
|
protected
|
|
protected
|
|
protected
string
|
#
_rgbToString( array $rgbArray )
Convert array of 3 items (decimal r, g, b) to string of their hex values |
public
|
|
public
|
|
public
|
|
public
|
|
public
Varien_Image
|
|
public
|
|
public
|
|
public
|
|
public
|
#
setWatermark( string $file, string $position = null, string $size = null, integer $width = null, integer $heigth = null, integer $imageOpacity = null )
Add watermark to image size param in format 100x200 |
public
|
|
public
string
|
|
public
|
|
public
|
|
public
string
|
|
public
|
|
public
|
|
public
string
|
|
protected
string
|
|
public
|
|
public
string
|
|
public
|
|
public
integer
|
|
public
|
|
public
|
|
public
integer
|
|
public
|
|
public
string
|
|
public
|
|
protected
boolean
|
#
_fileExists( string $filename )
First check this file on FS If it doesn't exist - try to download it from DB |
protected
mixed
|
$_width |
|
|
protected
mixed
|
$_height |
|
|
protected
integer
|
$_quality | 90 |
|
protected
boolean
|
$_keepAspectRatio | true |
|
protected
boolean
|
$_keepFrame | true |
|
protected
boolean
|
$_keepTransparency | true |
|
protected
boolean
|
$_constrainOnly | false |
|
protected
array
|
$_backgroundColor | array(255, 255, 255) |
|
protected
mixed
|
$_baseFile |
|
|
protected
mixed
|
$_isBaseFilePlaceholder |
|
|
protected
mixed
|
$_newFile |
|
|
protected
mixed
|
$_processor |
|
|
protected
mixed
|
$_destinationSubdir |
|
|
protected
mixed
|
$_angle |
|
|
protected
mixed
|
$_watermarkFile |
|
|
protected
mixed
|
$_watermarkPosition |
|
|
protected
mixed
|
$_watermarkWidth |
|
|
protected
mixed
|
$_watermarkHeigth |
|
|
protected
integer
|
$_watermarkImageOpacity | 70 |
$_cacheTag,
$_dataSaveAllowed,
$_eventObject,
$_eventPrefix,
$_isObjectNew,
$_resource,
$_resourceCollectionName,
$_resourceName
|