Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Resize thumbnails with GD

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions
 
Thread Tools Search this Thread
  #41  
Old 08-20-2009, 04:57 AM
 
Mark UK Mark UK is offline
 

Member
  
Join Date: Jul 2009
Posts: 17
 

Default 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.
__________________
X-Cart Gold Version 4.2.1
Reply With Quote

The following user thanks Mark UK for this useful post:
vickis (05-07-2012)
  #42  
Old 08-31-2009, 07:50 AM
 
Christofer Christofer is offline
 

eXpert
  
Join Date: Apr 2009
Location: Thessaloniki, Greece
Posts: 202
 

Default 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..
__________________
X-Cart Gold : 4.2.1 (on linux parallels plesk / mysql)
Php v5.2.9 (Zend: 2.2.0) - MySql v5.0.79 - LiteSpeed server
Modules : X-Offer & X-Aom & One page checkout
Product tabs & Product downloads & many more
Reply With Quote
  #43  
Old 09-18-2009, 08:23 AM
 
golden7016 golden7016 is offline
 

Member
  
Join Date: Jan 2007
Location: Texas
Posts: 18
 

Default 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.
__________________
X-Cart Gold ∙ Version 4.3.0
Reply With Quote
  #44  
Old 09-21-2009, 07:25 PM
 
gotpump gotpump is offline
 

eXpert
  
Join Date: Aug 2008
Posts: 272
 

Default 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?
__________________
X-Cart DB Version: 5
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 10:19 AM.

   

 
X-Cart forums © 2001-2020