Elxis CMS Forum

Extensions => Components => Topic started by: 1050 on March 21, 2012, 13:52:11

Title: create tumbnail for eshop products page
Post by: 1050 on March 21, 2012, 13:52:11
Hi,
I want to create a thumb nail with desired width and height for my product image to organize them better, how can I do that?
thank you :)
Title: Re: create tumbnail for eshop products page
Post by: speck on March 22, 2012, 13:27:49
use this module
http://www.elxis-downloads.com/it/downloads/e-commerce/361.html
and set the thumb parameters in IOS eshop configuration.

 ;)
Title: Re: create tumbnail for eshop products page
Post by: 1050 on March 25, 2012, 14:42:03
I tried to use that but it make thumb nails with specific width not height.
Title: Re: create tumbnail for eshop products page
Post by: speck on March 26, 2012, 10:10:15
the module works on width dimension of thumb setted in configuration of IOS e shop.
is the best solution, to have a right dimension if u set more colunm

if u want different dimension of thumbnail in the module, u can modify manually these code of PHP:

example if u want a reduction of 20 px.

$this->eshop->cfg->get('THUMB_WIDTH') ;
in
$this->eshop->cfg->get('THUMB_WIDTH') - 20;

intval(($this->eshop->cfg->get('THUMB_WIDTH)' * $sz[1]) / $sz[0]);
in
intval((($this->eshop->cfg->get('THUMB_WIDTH') - 20) * $sz[1]) / $sz[0]);

 intval(($this->eshop->cfg->get('THUMB_WIDTH') * $sz[0]) / $sz[1]);
in
 intval((($this->eshop->cfg->get('THUMB_WIDTH') - 20) * $sz[0]) / $sz[1]);

if u want good thumbnails based on height, make pictures with same dimension. Only in this case u have right dimension and u can set the width at second of height u want.