Ignore:
Timestamp:
Jun 18, 2013, 3:39:36 PM (7 years ago)
Author:
plg
Message:

suffix filename with width x height when photo is not the original

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/download_by_size/action.php

    r23162 r23324  
    128128      }
    129129      $file = $deriv->get_path();
     130      $size = $deriv->get_size();
     131
     132      // change the name of the file for download, suffix with _widthxheight before the extension
     133      $basename = get_filename_wo_extension($element_info['file']);
     134      $extension = get_extension($element_info['file']);
     135      $element_info['file'] = $basename.'_'.$size[0].'x'.$size[1].'.'.$extension;
    130136    }
    131137    else
Note: See TracChangeset for help on using the changeset viewer.