aflipster / timthumb

Automatically exported from code.google.com/p/timthumb
0 stars 0 forks source link

Default image width and height should'nt be hardcoded #465

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Simple mod to change this

Just add at start in the config:

if(! defined('DEF_WIDTH') ) define ('DEF_WIDTH', 205);                                  // Default image 
width if none is specified
if(! defined('DEF_HEIGHT') ) define ('DEF_HEIGHT', 250);                                    // Default 
image height if none is specified

Change this at around line 530

        // set default width and height if neither are set already
        if ($new_width == 0 && $new_height == 0) {
            $new_width = DEF_WIDTH;
            $new_height = DEF_HEIGHT;
        }

Original issue reported on code.google.com by esi...@gmail.com on 11 Sep 2013 at 8:09

GoogleCodeExporter commented 8 years ago
good call - will add

Original comment by BinaryMoon on 27 Sep 2013 at 8:59