D
D
Danil Larionov2020-06-18 21:03:04
opencart
Danil Larionov, 2020-06-18 21:03:04

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?

5eebac049722e148589569.png
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

1 answer(s)
D
Dima Polos, 2020-06-18
@wolf65

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 question

Ask a Question

731 491 924 answers to any question