spsurfer Posted August 25, 2017 Share Posted August 25, 2017 Hello, we're running a ps 1.6.1.16 shop and need to increase the size of the product pictures in the back office. I found some tips for older versions, but they're not working. Any idea how to increase these thimbnails? Thanks in advance Nicolas Link to comment Share on other sites More sharing options...
Scully Posted August 25, 2017 Share Posted August 25, 2017 (edited) See classes / ImageManager.php, appx. lines 75 and following plus appx. line 86. if ($y < $size && $x <= $max_x) { copy($image, _PS_TMP_IMG_DIR_.$cache_image); } ImageManager::resize($image, _PS_TMP_IMG_DIR_.$cache_image, $ratio_x, $size, $image_type); Edited August 25, 2017 by Scully (see edit history) 1 Link to comment Share on other sites More sharing options...
spsurfer Posted August 25, 2017 Author Share Posted August 25, 2017 Hello Scully, thanks for your fast reply! But how can I define a fixed width for example? Let'z say, 150px wide keeping the proportional hight. My programming skills are very little Thanks in advance Nicolas Link to comment Share on other sites More sharing options...
Scully Posted August 25, 2017 Share Posted August 25, 2017 (edited) Come on, if you have little knowledge this is doable. Upload your modified code and I will check it. The forum is for learning. If I always post complete and tested code, the learning effect tends to not occur. Edited August 25, 2017 by Scully (see edit history) 1 Link to comment Share on other sites More sharing options...
spsurfer Posted August 28, 2017 Author Share Posted August 28, 2017 You're right Scully! I think I got it, at lest, now the pics show all with same width, just that some high format pictures will show now very big. Would be good to define a max high.. allthough, I can live with it, as it is now! Regards Nicolas Link to comment Share on other sites More sharing options...
Scully Posted August 28, 2017 Share Posted August 28, 2017 I would have taken a max height and not the width to resize the images. But what you show us now looks more like you have replaced the original image with another pre-existing image format but actually not like having done a resize. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now