Jump to content

Setting exact dimensions using phpthumb


dc_jt

Recommended Posts

Hi I am using phpThumb, however for example, I would like my image to be 100hx100w so I have done the following:

 

$max_w = 100;
$max_h = 100;

$url = phpThumbURL('src='.$pic.'&w='.$max_w.'&h='.$max_h);
     
echo "<img src=\"$url\">";

 

However, it is resizing the image to 100 x 75! Any idea why this is? I want to set the exact dimensions.

 

Thanks

Link to comment
https://forums.phpfreaks.com/topic/141622-setting-exact-dimensions-using-phpthumb/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.