The below code is what i echoed out when debugging the problem I am having.
All of the code is spot on size wise BUT the images that are produced are
thumb = 105px X 79px
detail = 600px X 450px
The constants that define the max dimensions are:
[code=php]define(“IMG_THUMB_WIDTH”, 132);
define(“IMG_THUMB_HEIGHT”, 106);
define(“IMG_NORMAL_WIDTH”, 200);
define(“IMG_NORMAL_HEIGHT”, 200);
define(“IMG_DETAIL_WIDTH”, 800);
define(“IMG_DETAIL_HEIGHT”, 600);
[CODE]
[B]Thumbnail:[/B]
width when width greater than height: 132
width when width greater than height: 79.5
size X*Y 132×79 (79 is 79.5 floored )
exec() ImageMagik Code echoed:
convert -density 72 -resize 132×79 -quality 85 ‘/home/httpd/vhosts/domain.com/subdomains/website/httpdocs/images/gallery/20080223123924.jpg’ ‘/home/httpd/vhosts/domain.com/subdomains/website/httpdocs/images/gallery/20080223123924_thumb.jpg’
[B]Detail image:[/B]
width when width greater than height: 800
width when width greater than height: 450
size X*Y = 800×450
exec() ImageMagik Code echoed:
convert -density 72 -resize 800×450 -quality 85 ‘/home/httpd/vhosts/domain.com/subdomains/website/httpdocs/images/gallery/20080223123926.jpg’ ‘/home/httpd/vhosts/domain.com/subdomains/website/httpdocs/images/gallery/20080223123926_detail.jpg’
Thanks in advance