Revision 150

Date:
2011/10/26 13:28:02
Author:
ahitrov
Revision Log:
Transformed image store bug
Files:

Legend:

 
Added
 
Removed
 
Modified
  • koi8/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),