本文整理匯總了PHP中eZIEImagePreAction::getNewImagePath方法的典型用法代碼示例。如果您正苦於以下問題:PHP eZIEImagePreAction::getNewImagePath方法的具體用法?PHP eZIEImagePreAction::getNewImagePath怎麽用?PHP eZIEImagePreAction::getNewImagePath使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類eZIEImagePreAction
的用法示例。
在下文中一共展示了eZIEImagePreAction::getNewImagePath方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: eZIEImagePreAction
<?php
/**
* File containing the brightness filter handler
*
* @copyright Copyright (C) 1999-2012 eZ Systems AS. All rights reserved.
* @license http://ez.no/Resources/Software/Licenses/eZ-Business-Use-License-Agreement-eZ-BUL-Version-2.1 eZ Business Use License Agreement eZ BUL Version 2.1
* @version 1.4.0
* @package ezie
*/
$prepare_action = new eZIEImagePreAction();
$http = eZHTTPTool::instance();
$value = $http->hasPostVariable( 'value' ) ? $http->variable( 'value' ) : 0;
$region = $prepare_action->hasRegion() ? $prepare_action->getRegion() : null;
$imageconverter = new eZIEezcImageConverter( eZIEImageFilterBrightness::filter( $value, $region ) );
$imageconverter->perform(
$prepare_action->getImagePath(),
$prepare_action->getNewImagePath()
);
eZIEImageToolResize::doThumb(
$prepare_action->getNewImagePath(),
$prepare_action->getNewThumbnailPath()
);
echo (string)$prepare_action;
eZExecution::cleanExit();
?>
示例2: eZIEImagePreAction
<?php
/**
* File containing the pixelate tool handler
*
* @copyright Copyright (C) eZ Systems AS.
* @license For full copyright and license information view LICENSE file distributed with this source code.
* @version //autogentag//
* @package ezie
*/
$prepare_action = new eZIEImagePreAction();
$http = eZHTTPTool::instance();
$region = null;
if ($prepare_action->hasRegion()) {
$region = $prepare_action->getRegion();
}
// retrieve image dimensions
$analyzer = new eZIEImageAnalyzer($prepare_action->getImagePath());
$imageconverter = new eZIEezcImageConverter(eZIEImageToolPixelate::filter($analyzer->data->width, $analyzer->data->height, $region));
$imageconverter->perform($prepare_action->getImagePath(), $prepare_action->getNewImagePath());
eZIEImageToolResize::doThumb($prepare_action->getNewImagePath(), $prepare_action->getNewThumbnailPath());
echo (string) $prepare_action;
eZExecution::cleanExit();
示例3: eZIEImagePreAction
<?php
/**
* File containing the saturation tool handler
*
* @copyright Copyright (C) eZ Systems AS.
* @license For full copyright and license information view LICENSE file distributed with this source code.
* @version 2014.07.0
* @package kernel
* @todo Check if this is actually used/implemented
*/
$prepare_action = new eZIEImagePreAction();
$http = eZHTTPTool::instance();
if ($http->hasPostVariable("saturation")) {
$saturation = $http->variable("saturation");
}
eZIEImageToolSaturation::toolSaturation($prepare_action->getImagePath(), $prepare_action->getNewImagePath(), $saturation);
eZIEImageToolResize::doThumb($prepare_action->getNewImagePath(), $prepare_action->getNewThumbnailPath());
echo (string) $prepare_action;
eZExecution::cleanExit();