Revision 149
- Date:
- 2011/10/26 13:25:29
- Files:
Legend:
- Added
- Removed
- Modified
-
utf8/core/lib/Contenido/File.pm
261 261 my $stored = $transformed ? store($filename.'.'.$ext, $filename_tmp.'.transformed.'.$ext) : store($filename.'.'.$ext, $filename_tmp.'.'.$ext); 262 262 if ( $stored ) { 263 263 $IMAGE = {}; 264 # hashref slice assigning - жжесть 264 265 if ( $transformed && -e $filename_tmp.'.transformed.'.$ext ) { 265 # hashref slice assigning - жжесть 266 266 @{$IMAGE}{'filename', 'width', 'height'} = ( 267 $filename.'.transformed.'.$ext, 268 Image::Size::imgsize($filename_tmp.'.'.$ext), 267 $filename.'.'.$ext, 268 Image::Size::imgsize($filename_tmp.'.transformed.'.$ext), 269 269 ); 270 270 unlink $filename_tmp.'.transformed.'.$ext; 271 271 } else { 272 # hashref slice assigning - жжесть 273 272 @{$IMAGE}{'filename', 'width', 'height'} = ( 274 273 $filename.'.'.$ext, 275 274 Image::Size::imgsize($filename_tmp.'.'.$ext),