When we use “Image_lib” to create image thumbnail, the default thumbnail file format created should be :
filename_thumb.file_ext
When I use it, I got so many un convenience situation, so I think the thumbnail file format will be better if the format like this :
thumb_filename.file_ext
That file format help me so much in many situation. To change thumbnail file format, we need change the Image_lib file. First, change this line (approx line 38)
var $thumb_marker = ‘_thumb’;
In to
var $thumb_marker = ‘thumb_’;
Second , change this line (approx line 264 )
$this->full_dst_path = $this->dest_folder.$filename.$this->thumb_marker.$file_ext;
In to
$this->full_dst_path = $this->dest_folder.$this->thumb_marker.$filename.$file_ext;
That’s it, the thumbnail file name format will change