#set( $cdnprefix = $mediaarchive.getCatalogSettingValue("cdn_prefix") ) #set( $type = $mediaarchive.getMediaRenderType($asset.fileformat))

[[Image Editor]]

#if($canviewassetedit) [[Crop]] #end [[Reload Original Thumbnails]] ##[[Rotate]]
[[Replace Image]]:
#set($mediadbappid=$mediaarchive.getMediaDbId()) #set($newpreset = $context.findValue("newpreset")) #set( $type =$mediaarchive.getMediaRenderType($asset.fileformat)) #set($results = $conversionUtil.getActivePresetList($catalogid,$type) ) #set($cdnprefix = $!{mediaarchive.getCatalogSettingValue("cdn_prefix")}) #if( !$cdnprefix ) #set( $cdnprefix = $context.siteRoot ) #end $context.putPageValue("results", $results) $pages.include("$apphome/views/modules/asset/editor/conversions/sendalltofatwire.html", $context) #foreach ($result in $results) #set($cancrop = $conversionUtil.canCrop($catalogid,$result.id,$asset.id)) #if(!$cancrop) #if( $mediaarchive.isCatalogSettingTrue("preventupscaling")) #set($show = false) #else #set($show = true) #end #else #set($show = true) #end #if($conversionUtil.doesExist($catalogid, $asset.id,$asset.sourcePath, $result.id) && $show)
#set($dimension = $conversionUtil.getConvertPresetDimension($catalogid,$result.id)) #set($height = $mathtool.toInteger($dimension.getHeight())) #set($width = $mathtool.toInteger($dimension.getWidth())) ##$context.putPageValue("height", $height) ##$context.putPageValue("width", $width) #set($aspectratio = $conversionUtil.getConvertPresetAspectRatio($dimension)) #set($description = $conversionUtil.getConvertPresetParameter($catalogid,$result.id,"imagelocation")) #if ($height && $height > 0 && $width && $width > 0)

$result.name ${width}x${height} [[Aspect Ratio]]: $aspectratio

###if($description && $description!="") $description #end #else

$result.name

#end #set($description = "") $context.putPageValue("presetdata",$result) #if( $canviewconversions ) $pages.include("$apphome/views/modules/asset/editor/conversions/modify.html", $context) #end #set($isready = $conversionUtil.isConvertPresetReady($catalogid,$asset.id,$asset.sourcePath, $result.id)) #if($isready) $pages.include("$apphome/views/modules/asset/editor/conversions/share.html", $context) #if( $canviewconversions ) #if(!$cancrop) [[Image is too small to crop to the desired crop dimension]] #end #end #if($result.publishtofatwire == "true") $pages.include("$apphome/views/modules/asset/editor/conversions/submittofatwire.html", $context) #end $pages.include("$apphome/views/modules/asset/editor/conversions/submittofalcon.html", $context) #end
#end #end $context.putPageValue("asset",$asset) #if($newpreset) $context.putPageValue("omitpreset",$newpreset) #end $pages.include("$home$apphome/views/modules/asset/editor/conversions/createnewconversion.html", $context)

[[You can specify custom width, height or formats. For example, a large PDF]]:

$cdnprefix$home/$mediadbappid/services/module/asset/downloads/preview/cache/$asset.sourcePath/image2000x2000.pdf