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

Need advice on image sizes

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 06-07-2006, 11:35 AM
 
sam754 sam754 is offline
 

Member
  
Join Date: Mar 2006
Posts: 12
 

Default Need advice on image sizes

I'm running XC Pro and providers will be uploading product images of varying sizes and proportions. About 60% of the images will be "portrait" orientation (higher than they are wide) and 40% will be landscape (wider than they are high).

I'm trying to decide on the best template setup that will result in a clean, orderly appearance on the product listing pages.

I'll probably use boxes to outline each product as in:
http://www.rubylane.com/antiques.html
but would appreciate any other suggestions or links to good examples.

Also, if I wanted to set a standard image size that would be the most versatile and would work well with most images, what's the best width-to-height aspect ratio to use (e.g. a square image (100%), 67%, 80%, etc.)?

Thanks for any comments.
__________________
X-Cart Pro v. 4.0.18 (unix), X-Mall, X-Affiliate, X-RMA, X-FeaturesComparison, Skin Swap, Multiple Upselling Links, Featured Products per Store, Static Pages Per Store
Reply With Quote
  #2  
Old 06-08-2006, 05:58 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default

Square images always work best from a product layout stanpoint, as that way all of the thumbails, prices, titles, etc line up. You could just have your providers use a uniform canvas size, or you could code a fixed height/width table cell for the product images and have the the images float within it, no matter what the orientation.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 01-05-2009, 04:13 AM
 
williamteh williamteh is offline
 

Advanced Member
  
Join Date: Jan 2008
Posts: 41
 

Default Re: Need advice on image sizes

Is there a way to control manufacturer/provider upload product image lenght and width ?
__________________
X-Cart V5.3.4.5 (Multivendor)
Apache 2.4.18 (Ubuntu)
Mysql 5.7.21
PHP 7.1.5
Reply With Quote
  #4  
Old 01-05-2009, 11:54 PM
 
Thedae2k Thedae2k is offline
 

eXpert
  
Join Date: Jan 2004
Posts: 288
 

Default Re: Need advice on image sizes

yes you can...do you have any image mods installed right now? Like TeleFirmas...his takes over all images and makes for some needed workarounds.
__________________
X-Cart Pro 4.1.9
PHP5.2.5
MySQL 5.0.54
IIS/Apache/NGINX Webservers
Reply With Quote
  #5  
Old 01-06-2009, 11:57 PM
 
williamteh williamteh is offline
 

Advanced Member
  
Join Date: Jan 2008
Posts: 41
 

Default Re: Need advice on image sizes

No, I didn't...is the image mod free and where can I get it?
__________________
X-Cart V5.3.4.5 (Multivendor)
Apache 2.4.18 (Ubuntu)
Mysql 5.7.21
PHP 7.1.5
Reply With Quote
  #6  
Old 01-07-2009, 01:10 AM
 
Thedae2k Thedae2k is offline
 

eXpert
  
Join Date: Jan 2004
Posts: 288
 

Default Re: Need advice on image sizes

The best way is to use square images as Balinor suggested above then you don't need to modify any code. Plus that solves any future issues with overlaying images on top of each other in dynamic image mods like TelaFirmas mod. You can force the width of an image in product.tpl


{include file="product_thumbnail.tpl" productid=$product.productid image_x=$product.image_x image_y=$product.image_y product=$product.product tmbn_url=$product.tmbn_url id="product_thumbnail" type="P"}
__________________
X-Cart Pro 4.1.9
PHP5.2.5
MySQL 5.0.54
IIS/Apache/NGINX Webservers
Reply With Quote
  #7  
Old 01-07-2009, 02:37 AM
 
williamteh williamteh is offline
 

Advanced Member
  
Join Date: Jan 2008
Posts: 41
 

Default Re: Need advice on image sizes

sorry, may i know how to edit the code in product.tpl?

is it with this command <td height="25" width="30%"></td>?
__________________
X-Cart V5.3.4.5 (Multivendor)
Apache 2.4.18 (Ubuntu)
Mysql 5.7.21
PHP 7.1.5
Reply With Quote
  #8  
Old 01-07-2009, 02:40 AM
 
Thedae2k Thedae2k is offline
 

eXpert
  
Join Date: Jan 2004
Posts: 288
 

Default Re: Need advice on image sizes

change the image_x=$product.image_x in the code above to image_x=200

or whatever your desired width is
__________________
X-Cart Pro 4.1.9
PHP5.2.5
MySQL 5.0.54
IIS/Apache/NGINX Webservers
Reply With Quote
  #9  
Old 03-31-2009, 05:22 PM
 
cosy cosy is offline
 

Advanced Member
  
Join Date: Mar 2009
Posts: 79
 

Default Re: Need advice on image sizes

How do i edit to fixed size?

{include file="product_thumbnail.tpl" productid=$product.productid image_x=$product.image_x image_y=$product.image_y product=$product.product tmbn_url=$product.tmbn_url id="product_thumbnail" type="P"}
__________________
Version 4.2.0
Testing v 4.4
Reply With Quote
  #10  
Old 03-31-2009, 06:57 PM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: Need advice on image sizes

General Settings/Appearance Options
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



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 04:48 PM.

   

 
X-Cart forums © 2001-2020