rifanece / timthumb

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

Don't allow for w/h to be greater than original - with zoom? #23

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I don't see the point of this code block:

    // don't allow new width or height to be greater than the original
    if( $new_width > $width ) {
        $new_width = $width;
    }
    if( $new_height > $height ) {
        $new_height = $height;
    }

If I specify that I want a height of 200 and a width of 400 with zoom yes
(zc=1) then I want it to create an image that size, regardless of the
original size.

I commented that block out and it seems to work fine.

Original issue reported on code.google.com by spamprotection on 5 Mar 2009 at 8:40

GoogleCodeExporter commented 8 years ago
you're right, that's a bit of a silly thing to include. I've removed it. Thanks 
for
the pointer.

Original comment by BinaryMoon on 31 Dec 2009 at 5:32