khashnan / timthumb

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

After updating to 2.0, Timthumb is enlarging images #248

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
http://timfleming.com/scanner-art/2008-2009/poppies.htm/

Original image is 614 px high. It is being enlarged to fill the width of the 
page (941 px) and the height is up to 1500 px or so

Using version 2.0, Mac OS 10.6.8
Google Chrome, Wordpress 3.2.1

I have changed this:
define ('MAX_WIDTH', 941);                  // maximum image width
define ('MAX_HEIGHT', 614);             // maximum image height 

Is there anything else I'm missing?

Original issue reported on code.google.com by timfl2...@gmail.com on 26 Aug 2011 at 6:47

GoogleCodeExporter commented 8 years ago
It's always done this. This isn't a bug.

TimThumb is designed to make an image fill the specified space. If you don't 
want it to enlarge the image then the only thing to do is to specify smaller 
dimensions.

Original comment by BinaryMoon on 12 Oct 2011 at 8:35