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

Detailed Image Maximum Size

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 06-22-2005, 01:48 PM
  lyncca's Avatar 
lyncca lyncca is offline
 

X-Adept
  
Join Date: Nov 2003
Location: Fort Worth, Texas
Posts: 455
 

Default Detailed Image Maximum Size

Hi there,

Is there a way to write an IF statement to where I can put it in the detailed image code to where if the image is above 500 pixels, it will limit it at 500 pixels, but if it is less then it will not resize it?

I know this is really simple, but I have yet to get a chance to actually learn PHP programming

Thanks!
Reply With Quote
  #2  
Old 06-25-2005, 05:17 PM
  lyncca's Avatar 
lyncca lyncca is offline
 

X-Adept
  
Join Date: Nov 2003
Location: Fort Worth, Texas
Posts: 455
 

Default

Isn't there any way to do this?

By the way, this is version 4.0.12
Reply With Quote
  #3  
Old 06-27-2005, 12:54 PM
 
steveparks steveparks is offline
 

Advanced Member
  
Join Date: Jan 2003
Location: UK
Posts: 87
 

Default image auto-resize

Yes, this would be a great feature - and could be done using the GDlib or ImageMagick on the server - but i'm not advanced enough to know how to get xcart to use those libraries.
__________________
--------------
RHEL3/Apache2/PHP4/MySQL4/Plesk7.5.3
X-Cart 4.0.16 - Live
X-Affiliate
X-AOM
ez-checkout
ez-upsell
--------------
Reply With Quote
  #4  
Old 06-27-2005, 01:23 PM
  lyncca's Avatar 
lyncca lyncca is offline
 

X-Adept
  
Join Date: Nov 2003
Location: Fort Worth, Texas
Posts: 455
 

Default

Well those would actually resize the image, for now I just want to use code to resize it if possible.
Reply With Quote
  #5  
Old 06-27-2005, 04:19 PM
  ETInteractive.com's Avatar 
ETInteractive.com ETInteractive.com is offline
 

X-Adept
  
Join Date: Dec 2002
Posts: 747
 

Default

Not sure that the detail image sql statement or table holds image_x??

If it does,

{if $images[image].image_x gt 500}
set width to 500
{/if}

i know you can do this for the product.tpl, as image_x is there.
__________________
ETInteractive.com
X-Cart 3.5.x
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 05:49 AM.

   

 
X-Cart forums © 2001-2020