X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Dev Questions (https://forum.x-cart.com/forumdisplay.php?f=20)
-   -   Resize thumbnails with GD (https://forum.x-cart.com/showthread.php?t=43719)

Mark UK 08-20-2009 04:57 AM

Re: Resize thumbnails with GD
 
Quote:

Originally Posted by xplorer
Yes, you can change the values by editing "include/lib/phpunsharmask.php" file. Search for the following string:
PHP Code:

function UnsharpMask($img$amount 120$radius 0.4$threshold 1)    { 





Yes.


This has saved me a lot of time and frustration, I was not happy with GD sharpening my thumbnails so I set the amount to 0 and it worked a treat, thank you.

Christofer 08-31-2009 07:50 AM

Re: Resize thumbnails with GD
 
the 4.2.2 has better system for thumbnails or should i use that? Coz i am not verry happy with my thumbnails..

golden7016 09-18-2009 08:23 AM

Re: Resize thumbnails with GD
 
This code only seems to work for the .gif images... any other format and it just displays a broken image.

Any ideas on what might be wrong? Other than that, it's resizing the .gif images perfectly as advertised. Just can't figure out why it's only the .gif images.

gotpump 09-21-2009 07:25 PM

Re: Resize thumbnails with GD
 
The problem I have now is that some images are only 80 wide and 200 in height and others will be 80 wide and 125 high. So all the images are different sizes and it looks weird.

Any suggestion on how to fix this?

Is there anyway to make a height standard and have it auto adjust the images to fix without distorting them?


All times are GMT -8. The time now is 08:47 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.