Jump to content

thumbnail size images back office


fmc82

Recommended Posts

Yes, so to not make it blurred, don't go bigger than 47 (45 +1+1 border)

 

for 1.6.0.5.  in file: <your ADMIN folder>/themes/<your them folder>/css/admin-theme.css (Line 1589):

Add/change red code:
 
.bootstrap .img-thumbnail {
/* padding: 4px; */
line-height: 1.42857;
background-color: white;
border: 1px solid #dddddd;
border-radius: 3px;
-webkit-transition: all 0.2s ease-in-out;
transition: all 0.2s ease-in-out;
display: inline-block;
/* max-width: 100%; */
height: 47px;
}
 
 
If you need bigger, we have to find out where it creates the 45x45 pixels exactly...
pascal
Link to comment
Share on other sites

In file: classes/helper/HelperList.php

 

there is a function displayListContent()

In there, somewhere halfway the function a function thumbnail() is called:

 

$this->_list[$index][$key] = ImageManager::thumbnail($path_to_image, $this->table.'_mini_'.$item_id.'_'.$this->context->shop->id.'.'.$this->imageType, 45, $this->imageType);
 
 
Change this into:
$this->_list[$index][$key] = ImageManager::thumbnail($path_to_image, $this->table.'_mini_'.$item_id.'_'.$this->context->shop->id.'.'.$this->imageType, 100, $this->imageType);
 

This should do the trick.

 

 

N.B. There may still be some old pictures in the /img/tmp/ folder.

Remove these and then reload the page.

 

That did it for me.

Result:
post-455771-0-49859400-1400238976_thumb.png
 
pascal.
Edited by PascalVG
Found tmp files. Edited comment to remove these (see edit history)
  • Like 1
Link to comment
Share on other sites

  • 1 year later...
  • 2 years later...

Hi to all,


I have follow these instructions for displaying bigger products images in the catalog section of the back office on ps 1.6.1.20.

No luck.
 

By theway I  like to increase the products images size present on the pdf invoice if possible.

Someone can help me to achieve this correctly please ?
 

Best regards,
Sam

 

Link to comment
Share on other sites

  • 3 years later...
  • 1 month later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...