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

elongated thumbnails

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 12-14-2007, 10:15 AM
 
kvedros@cox.net kvedros@cox.net is offline
 

Advanced Member
  
Join Date: Jan 2007
Posts: 65
 

Default elongated thumbnails

I uploaded my thumbnails and they're elongated by a 3X factor. Any ideas on why this is?
__________________
kved
xcart v4.5.2
www.archturnings.com
Reply With Quote
  #2  
Old 12-14-2007, 10:16 AM
 
jdiehl jdiehl is offline
 

eXpert
  
Join Date: Dec 2003
Location: Kansas City, MO
Posts: 270
 

Default Re: elongated thumbnails

Is it something in your code that displays the image setting the width and height really odd. Maybe you changed the width on the display template?
__________________
Jason Diehl

Finding Cures for Your Online Headaches: http://www.internetmedicineman.com/
Reply With Quote
  #3  
Old 12-14-2007, 10:26 AM
 
kvedros@cox.net kvedros@cox.net is offline
 

Advanced Member
  
Join Date: Jan 2007
Posts: 65
 

Default Re: elongated thumbnails

I previuosly loaded thumbnails that were 60 px X 160. They were enlarged and so after reducing the default 125 px width in general settings it worked. I reformatted the images to 125 px width and changed the general settings back to 125 px and it stretches the thumbnails.
__________________
kved
xcart v4.5.2
www.archturnings.com
Reply With Quote
  #4  
Old 12-14-2007, 10:29 AM
 
jdiehl jdiehl is offline
 

eXpert
  
Join Date: Dec 2003
Location: Kansas City, MO
Posts: 270
 

Default Re: elongated thumbnails

I'm checking both of your stores that are hosted with us and I'm not seeing the issue you are having. Could you be more specific about where the problem is happening.
__________________
Jason Diehl

Finding Cures for Your Online Headaches: http://www.internetmedicineman.com/
Reply With Quote
  #5  
Old 12-14-2007, 10:34 AM
 
kvedros@cox.net kvedros@cox.net is offline
 

Advanced Member
  
Join Date: Jan 2007
Posts: 65
 

Default Re: elongated thumbnails

http://www.archturnings.com/home.php?cat=253
__________________
kved
xcart v4.5.2
www.archturnings.com
Reply With Quote
  #6  
Old 12-14-2007, 11:04 AM
 
jdiehl jdiehl is offline
 

eXpert
  
Join Date: Dec 2003
Location: Kansas City, MO
Posts: 270
 

Default Re: elongated thumbnails

The height of the image is being set in the HTML as 568 with a width of 125. Are you sure that your templates aren't expressly defining this 568 value? Or on your admin side when you look at your images that are stored in the system what value of height and width are stored in there?
__________________
Jason Diehl

Finding Cures for Your Online Headaches: http://www.internetmedicineman.com/
Reply With Quote
  #7  
Old 12-14-2007, 11:14 AM
 
kvedros@cox.net kvedros@cox.net is offline
 

Advanced Member
  
Join Date: Jan 2007
Posts: 65
 

Default Re: elongated thumbnails

What is weird is that my product image is 568 high and my thumbnail is 125 wide so it seems to be borrowing from both on the customer side. They display correctly in the admin side.
__________________
kved
xcart v4.5.2
www.archturnings.com
Reply With Quote
  #8  
Old 12-14-2007, 11:17 AM
 
jdiehl jdiehl is offline
 

eXpert
  
Join Date: Dec 2003
Location: Kansas City, MO
Posts: 270
 

Default Re: elongated thumbnails

Well if you are running 4.1.9 you can define a separate thumbnail file from your regular product image, so why don't you just resize the image to be proportional at a width of 125 px, then the height will match. It seems as though your X-Cart isn't resizing proportionally.

The other option would be to edit your template files so that it doesn't even define the height, only the width, in which case the browser would resize proportionally just fine.
__________________
Jason Diehl

Finding Cures for Your Online Headaches: http://www.internetmedicineman.com/
Reply With Quote
  #9  
Old 12-14-2007, 11:23 AM
 
Looker1 Looker1 is offline
 

Advanced Member
  
Join Date: Aug 2007
Posts: 60
 

Default Re: elongated thumbnails

Just went through this last night- not sure if it is the perfect fix but seems to work for me in 4.1.8

Any gurus see any concerns with what I did here? Not sure if this is breaking any rules of logic.

http://forum.x-cart.com/showthread.php?t=36154
__________________
Version 4.1.9
Reply With Quote
  #10  
Old 12-14-2007, 11:34 AM
 
kvedros@cox.net kvedros@cox.net is offline
 

Advanced Member
  
Join Date: Jan 2007
Posts: 65
 

Default Re: elongated thumbnails

Looker1
In my case all thumbnails are all formatted to 125 wide X 220. It has taken my thumbnail width and my product image length and combined them
__________________
kved
xcart v4.5.2
www.archturnings.com
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 07:26 AM.

   

 
X-Cart forums © 2001-2020