![]() |
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 :roll: Thanks! |
Isn't there any way to do this? :?
By the way, this is version 4.0.12 |
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.
|
Well those would actually resize the image, for now I just want to use code to resize it if possible.
|
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. |
All times are GMT -8. The time now is 08:50 AM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.