Image

BackOffice>>Preferences>>Image

The image settings control the size of the images for your store. You can specify the sizes you wish to use throughtout the store, for Thickbox and create new rules for image sizing.

Go to BackOffice>>Preferences>>Image

 

 

 

When you edit these settings remember that you will need to re-generate the thumbnails and this can take several minutes. Any manually created thunbnails will be generated when you run the "regenerate thumbnails" function."

What images defaults are used where?

Content not yet completed...

Tip: Sometimes, for your products, when a user views images and then clicks the "maximise" button for your product images you want the actual image displayed at the file dimensions. To achieve this you need to modify thickbox (so you can display the images at the maximun size that you uploaded images at, say 800 x 600 or 1000 x 800).

To do this, you can change the code as follows in the jQuery/thickbox-modified.js file; (First make a backup of the file or rename it)

Around line 20 find this code

imgPreloader =new Image (); imgPreloader . onload =function() {imgPreloader . onload = null ;var pagesize = tb_getPageSize ();var x = pagesize[0] - 150 ;var y = pagesize[1] - 150 ;var imageWidth = imgPreloader . width ;var imageHeight = imgPreloader . height ;if( imageWidth > x ) {imageHeight = imageHeight *( x / imageWidth ); imageWidth = x ;if( imageHeight > y ) {imageWidth = imageWidth *( y / imageHeight ); imageHeight = y ; }}else if( imageHeight > y ) {imageWidth = imageWidth *( y / imageHeight ); imageHeight = y ;if( imageWidth > x ) {imageHeight = imageHeight *( x / imageWidth ); imageWidth = x ; }}

With this

imgPreloader =new Image (); imgPreloader . onload =function() { imgPreloader . onload = null ; var imageWidth = imgPreloader . width ;var imageHeight = imgPreloader . height ;

To change the background colour around your image, go to the file images.inc.php (in your root installation) and around line 156, change the values. These can be hex if prefered

$white = imagecolorallocate ( $destImage , 255 , 255 , 255 );

Please be aware that many sections are incomplete as this site is currently in middle of major update

PRESTASHOP GUIDES

prestashop admin guide prestashop designers guide

ADMIN CATEGORIES

Prestashop Admin Guide