D
D
Danil Larionov2020-06-09 14:07:13
HTML
Danil Larionov, 2020-06-09 14:07:13

How to make OpenCart not resize image in slideshow?

5edf6d136b50e812320478.png
Open Card resizes the image, its original image is 1560x698, it resized to 1140x380

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Ashley_ko, 2020-06-09
@wolf65

in the file catalog/controller/extension/module/slideshow.php
find line 22
'image' => $this->model_tool_image->resize($result['image'], $setting['width'], $setting[' height'])
and replace with
'image' => HTTP_SERVER . 'image/' . $result['image'],

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question