Answer the question
In order to leave comments, you need to log in
How to make it so that open cart 3 does not change the images in the product, and also does not change the size of the image?
Good day, OpenCart 3, as I noticed, adds white stripes on the sides, which I don’t really like, and also changes the image size in the product card, who can tell me how to fix this? And how to make it so that it does not resize the image
Answer the question
In order to leave comments, you need to log in
White bars are added if the width of the original image (or the height - then the vertical will be added) is less than the width of the thumbnail in the settings of opencart itself. Either look for settings in the admin panel (I don’t remember exactly where), image cropping settings), or look for a controller that is responsible for uploading and saving these pictures, and write a modifier on it. Look in the controller for something like (like) $this->image_resize...(...)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question