Reputation: 1859
I am using thumb.php to restrict image sizes.
<img src="thumb.php?src=<?php echo $imgurl; ?>&h=150&w=180&z=0" alt="<?php the_title(); ?>" width="180" height="150" />
The problem is image quality. If i do not use thumb.php and mention the width and height attribute directly in the image tag, the quality is good but while using thumb.php the image looks a little blur.
How to overcome this?
Upvotes: 0
Views: 117
Reputation: 1859
I have fixed this using the sharpen parameter.
&h=150&w=180&z=0&q=100&s=100" alt="" width="180" height="150" />
Thanks.
Upvotes: 0
Reputation: 39704
I saw on your script the quality param and it's q, append it to the url
<img src="thumb.php?src=<?php echo $imgurl; ?>&h=150&w=180&z=0&q=100" alt="<?php the_title(); ?>" width="180" height="150" />
Upvotes: 1