Changeset 2783 for branches


Ignore:
Timestamp:
05/14/10 14:03:12 (14 years ago)
Author:
niltonneto
Message:

Ticket #1051 - Corrigindo problema no cálculo do $theight para o thumb.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.0/expressoMail1_2/inc/show_thumbs.php

    r2627 r2783  
    3434        $twidth = 160; # width of the thumb 160 pixel 
    3535        $theight = $twidth * $height / $width; # calculate height 
     36        $theight =  $theight < 1 ? 1 : $theight; 
    3637        $thumb = imagecreatetruecolor ($twidth, $theight); 
    3738                imagecopyresized($thumb, $pic, 0, 0, 0, 0,$twidth, $theight, $width, $height); # resize image into thumb 
Note: See TracChangeset for help on using the changeset viewer.