Forums / Developer / Creating image variations with a script... / Comment46516
Norman Leutner
Sunday 20 August 2006 12:53:36 am
Thanks for the hint, I already found the imagealiashandler.phpThe method I was looking for was imageAlias()
This is the code I use to create those thumbnails for the csv file, it returns the url of the created thumbnail.
class eZCsvImageHandler extends BaseHandler{ function exportAttribute(&$attribute, $seperationChar) { $imageHandler=&$attribute->content(); $imageAlias =& $imageHandler->imageAlias( 'thumbnail' ); $url = eZSys::hostname() . eZSys::wwwDir() .'/'. $imageAlias['url']; $url = preg_replace( "#^(//)#", "/", $url ); return 'http://'.$url; } }
Mit freundlichen Grüßen Best regards Norman Leutner ____________________________________________________________ eZ Publish Platinum Partner - http://www.all2e.com http://ez.no/partners/worldwide_partners/all2e_gmbh