[Skip to main content](#vessel-content)

#   Product images resize

##

- **[Bender](/forum/user/38688-bender "View Bender's Profile")**
- [![Bender's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/38688-bender "View Bender's Profile") Topic Author
- [ Offline](/forum/user/38688-bender)

Less More

- Posts: 239
- Thank you received: 8
-
-

5 years 7 months ago -  5 years 7 months ago [\#330482](#330482) by [Bender](/forum/user/38688-bender "View Bender's Profile")  *[Product images resize](/forum/26-product-category-display/902116-product-images-resize#330482 "-- url of the page with the problem -- :   aketo.kz/paneli-operatora/simvolnye/prod...ategory&#95;pathway-1854  -- HikaShop version -- : 4.4.1 -- Joomla version -- : 3.9.25 -- PHP version -- : 7.2 -- Browser(s) name and version -- : chrome  If to attach a few images (2 and more) in &quot;files and images&quot; of product settings and to choose not to store image localy and include only ALT and path to images  then on product page the resized images is not equal to set upted value in &quot;system-&gt;configuration-&gt;general-&gt;images-&gt;maximum size of images in the product page&quot; if you onmouseover image thumbnail but equal to image original size.  Also Default size for thumbnails ; can be override per menu/module. seems not working at all  How to fix ?")* was created by *[Bender](/forum/user/38688-bender "View Bender's Profile")*

-- url of the page with the problem -- : [ aketo.kz/paneli-operatora/simvolnye/prod...ategory\_pathway-1854](https://aketo.kz/paneli-operatora/simvolnye/product/oven-smi2-m/category_pathway-1854)
-- HikaShop version -- : 4.4.1
-- Joomla version -- : 3.9.25
-- PHP version -- : 7.2
-- Browser(s) name and version -- : chrome

If to attach a few images (2 and more) in "files and images" of product settings and to choose not to store image localy and include only ALT and path to images

then on product page the resized images is not equal to set upted value in "system-&gt;configuration-&gt;general-&gt;images-&gt;maximum size of images in the product page" if you onmouseover image thumbnail but equal to image original size.

Also Default size for thumbnails ; can be override per menu/module. seems not working at all

How to fix ?

Last edit: 5 years 7 months ago by [Bender](/forum/user/38688-bender "View Bender's Profile"). Reason: additional

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS85MDIxMTYtcHJvZHVjdC1pbWFnZXMtcmVzaXplP3RtcGw9bWFya2Rvd24=) or [Create an account](/register) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86322
- Thank you received: 14281
-
-

5 years 7 months ago [\#330483](#330483) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Product images resize](/forum/26-product-category-display/902116-product-images-resize#330483 "-- url of the page with the problem -- :   aketo.kz/paneli-operatora/simvolnye/prod...ategory&#95;pathway-1854  -- HikaShop version -- : 4.4.1 -- Joomla version -- : 3.9.25 -- PHP version -- : 7.2 -- Browser(s) name and version -- : chrome  If to attach a few images (2 and more) in &quot;files and images&quot; of product settings and to choose not to store image localy and include only ALT and path to images  then on product page the resized images is not equal to set upted value in &quot;system-&gt;configuration-&gt;general-&gt;images-&gt;maximum size of images in the product page&quot; if you onmouseover image thumbnail but equal to image original size.  Also Default size for thumbnails ; can be override per menu/module. seems not working at all  How to fix ?")*

Hi,

The original image size is 1000*1000. Just open the image on a new tab and you'll see that it's 1000*1000:
[ file.aketo.kz/avtor/owen/smi2/images/100...2-m-rezhim-green.png](https://file.aketo.kz/avtor/owen/smi2/images/1000x1000-smi2-m-rezhim-green.png)
So when you hover on the thumbnail, you don't get the image with the original size nor the size you setup in the HikaShop configuration. Because of your template CSS, the image size is the maximum space available in the area.
And that's what different from the size of the main image by default, which is the size you configured in the configuration (I suppose of 400*400).
To make it consistent, please edit the file show_block_img.php via the menu Display&gt;Views and change the line: Code:

$attr = 'title="'.$this-&gt;escape(@$image-&gt;file_description).'" onmouseover="return window.localPage.changeImage(this, \'hikashop_main_image'.$variant_name.'\', \''.$img-&gt;url.'\', '.$img-&gt;width.', '.$img-&gt;height.', \''.str_replace(array("'", '"'),array("\'", '&amp;quot;'),@$image-&gt;file_description).'\', \''.str_replace(array("'", '"'),array("\'", '&amp;quot;'),@$image-&gt;file_name).'\');"';

to: Code:

$main_image_size = $img-&gt;width.', '.$img-&gt;height; if($img-&gt;external &amp;&amp; $img-&gt;req_width &amp;&amp; $img-&gt;req_height) $main_image_size .= $img-&gt;req_width.', '.$img-&gt;req_height; $attr = 'title="'.$this-&gt;escape(@$image-&gt;file_description).'" onmouseover="return window.localPage.changeImage(this, \'hikashop_main_image'.$variant_name.'\', \''.$img-&gt;url.'\', '.$main_image_size.', \''.str_replace(array("'", '"'),array("\'", '&amp;quot;'),@$image-&gt;file_description).'\', \''.str_replace(array("'", '"'),array("\'", '&amp;quot;'),@$image-&gt;file_name).'\');"';

Regarding thumbnails size you can configure in menu items and modules, please note that this is the size of the thumbnails on the listings. For the size of the thumbnails on the product details page, this can be changed with CSS:
[ www.hikashop.com/support/documentation/8...ling.html#thumbnails](https://www.hikashop.com/support/documentation/84-css-styling.html#thumbnails)

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS85MDIxMTYtcHJvZHVjdC1pbWFnZXMtcmVzaXplP3RtcGw9bWFya2Rvd24=) or [Create an account](/register) to join the conversation.

- **[Bender](/forum/user/38688-bender "View Bender's Profile")**
- [![Bender's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/38688-bender "View Bender's Profile") Topic Author
- [ Offline](/forum/user/38688-bender)

Less More

- Posts: 239
- Thank you received: 8
-
-

5 years 7 months ago -  5 years 7 months ago [\#330580](#330580) by [Bender](/forum/user/38688-bender "View Bender's Profile")  Replied by *[Bender](/forum/user/38688-bender "View Bender's Profile")* on topic *[Product images resize](/forum/26-product-category-display/902116-product-images-resize#330580 "-- url of the page with the problem -- :   aketo.kz/paneli-operatora/simvolnye/prod...ategory&#95;pathway-1854  -- HikaShop version -- : 4.4.1 -- Joomla version -- : 3.9.25 -- PHP version -- : 7.2 -- Browser(s) name and version -- : chrome  If to attach a few images (2 and more) in &quot;files and images&quot; of product settings and to choose not to store image localy and include only ALT and path to images  then on product page the resized images is not equal to set upted value in &quot;system-&gt;configuration-&gt;general-&gt;images-&gt;maximum size of images in the product page&quot; if you onmouseover image thumbnail but equal to image original size.  Also Default size for thumbnails ; can be override per menu/module. seems not working at all  How to fix ?")*

Appreciat. Now it works well.

a bit what this piece of code Code:

$main_image_size .= $img-&gt;req_width.', '.$img-&gt;req_height;

i think .= need to replace to =

One more question about resizing attached images please:

If to attache image like in previous case in product listing it show differ than uploaded pictures
could you check please two products named = KIPPRIBOR HT-4044.ZA2 [M02] and KIPPRIBOR HT-6044.ZD3 [M02]
on this url [ aketo.kz/kippribor/tverdotelnye-rele/trekhfaznye-do-120a-ht](https://aketo.kz/kippribor/tverdotelnye-rele/trekhfaznye-do-120a-ht)
they are second and third in first row.

As i got, uploaded picture have a 200x200 thumbnail , but attached picture has no one, but resized not to 200x200, but 200x112
original images sizes of both products are in equal = full hd

how to make attached images looks like uploaded ?

Last edit: 5 years 7 months ago by [Bender](/forum/user/38688-bender "View Bender's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS85MDIxMTYtcHJvZHVjdC1pbWFnZXMtcmVzaXplP3RtcGw9bWFya2Rvd24=) or [Create an account](/register) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86322
- Thank you received: 14281
-
-

5 years 7 months ago [\#330597](#330597) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Product images resize](/forum/26-product-category-display/902116-product-images-resize#330597 "-- url of the page with the problem -- :   aketo.kz/paneli-operatora/simvolnye/prod...ategory&#95;pathway-1854  -- HikaShop version -- : 4.4.1 -- Joomla version -- : 3.9.25 -- PHP version -- : 7.2 -- Browser(s) name and version -- : chrome  If to attach a few images (2 and more) in &quot;files and images&quot; of product settings and to choose not to store image localy and include only ALT and path to images  then on product page the resized images is not equal to set upted value in &quot;system-&gt;configuration-&gt;general-&gt;images-&gt;maximum size of images in the product page&quot; if you onmouseover image thumbnail but equal to image original size.  Also Default size for thumbnails ; can be override per menu/module. seems not working at all  How to fix ?")*

Hi,

Indeed, it should be = instead of .=
We'll change that on our end.

The thing is that with the image uploaded, HikaShop adds white borders are the top and bottom so that the thumbnails has the exact dimension you asked in the configuration even though the ratio of the image doesn't correspond to the ratio asked.
But for external URL images, HikaShop can't add these white borders and that's why you see it not centered vertically compared to the other images.
But you can solve that with a bit of CSS code:
[ stackoverflow.com/a/11716065](https://stackoverflow.com/a/11716065)
I've done a test on your URL and it works fine:
[ i.imgur.com/wqsjWIl.png](https://i.imgur.com/wqsjWIl.png)

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS85MDIxMTYtcHJvZHVjdC1pbWFnZXMtcmVzaXplP3RtcGw9bWFya2Rvd24=) or [Create an account](/register) to join the conversation.

- **[Bender](/forum/user/38688-bender "View Bender's Profile")**
- [![Bender's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/38688-bender "View Bender's Profile") Topic Author
- [ Offline](/forum/user/38688-bender)

Less More

- Posts: 239
- Thank you received: 8
-
-

5 years 5 months ago [\#332455](#332455) by [Bender](/forum/user/38688-bender "View Bender's Profile")  Replied by *[Bender](/forum/user/38688-bender "View Bender's Profile")* on topic *[Product images resize](/forum/26-product-category-display/902116-product-images-resize#332455 "-- url of the page with the problem -- :   aketo.kz/paneli-operatora/simvolnye/prod...ategory&#95;pathway-1854  -- HikaShop version -- : 4.4.1 -- Joomla version -- : 3.9.25 -- PHP version -- : 7.2 -- Browser(s) name and version -- : chrome  If to attach a few images (2 and more) in &quot;files and images&quot; of product settings and to choose not to store image localy and include only ALT and path to images  then on product page the resized images is not equal to set upted value in &quot;system-&gt;configuration-&gt;general-&gt;images-&gt;maximum size of images in the product page&quot; if you onmouseover image thumbnail but equal to image original size.  Also Default size for thumbnails ; can be override per menu/module. seems not working at all  How to fix ?")*

Hi.
If to use external image and 4.2.2 update than New product page thumbnail features function does not work properly,
because it uses original image size instead resized as it define in attributes on line 111
look example here [ aketo.kz/owen/paneli-operatora/smi2/product/oven-smi2-m](https://aketo.kz/owen/paneli-operatora/smi2/product/oven-smi2-m)

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS85MDIxMTYtcHJvZHVjdC1pbWFnZXMtcmVzaXplP3RtcGw9bWFya2Rvd24=) or [Create an account](/register) to join the conversation.

- **[Philip](/forum/user/34318-philip "View Philip's Profile")**
- [![Philip's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar34318_2015-11-18-2.png)](/forum/user/34318-philip "View Philip's Profile")
- [ Offline](/forum/user/34318-philip)

Less More

- Posts: 4820
- Thank you received: 654
-
-

5 years 5 months ago -  5 years 5 months ago [\#332469](#332469) by [Philip](/forum/user/34318-philip "View Philip's Profile")  Replied by *[Philip](/forum/user/34318-philip "View Philip's Profile")* on topic *[Product images resize](/forum/26-product-category-display/902116-product-images-resize#332469 "-- url of the page with the problem -- :   aketo.kz/paneli-operatora/simvolnye/prod...ategory&#95;pathway-1854  -- HikaShop version -- : 4.4.1 -- Joomla version -- : 3.9.25 -- PHP version -- : 7.2 -- Browser(s) name and version -- : chrome  If to attach a few images (2 and more) in &quot;files and images&quot; of product settings and to choose not to store image localy and include only ALT and path to images  then on product page the resized images is not equal to set upted value in &quot;system-&gt;configuration-&gt;general-&gt;images-&gt;maximum size of images in the product page&quot; if you onmouseover image thumbnail but equal to image original size.  Also Default size for thumbnails ; can be override per menu/module. seems not working at all  How to fix ?")*

Hello,

Thanks for your returns, this allow us to provide a fix to the 4.4.2 for this case, and so to have this fix can you provide an update to check that it solve your current issue, please ?

**Note :** Check that you don't use some override that will prevent you to see the fix results.

Awaiting your returns
Regards

Last edit: 5 years 5 months ago by [Philip](/forum/user/34318-philip "View Philip's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS85MDIxMTYtcHJvZHVjdC1pbWFnZXMtcmVzaXplP3RtcGw9bWFya2Rvd24=) or [Create an account](/register) to join the conversation.

- **[Bender](/forum/user/38688-bender "View Bender's Profile")**
- [![Bender's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/38688-bender "View Bender's Profile") Topic Author
- [ Offline](/forum/user/38688-bender)

Less More

- Posts: 239
- Thank you received: 8
-
-

5 years 5 months ago [\#332515](#332515) by [Bender](/forum/user/38688-bender "View Bender's Profile")  Replied by *[Bender](/forum/user/38688-bender "View Bender's Profile")* on topic *[Product images resize](/forum/26-product-category-display/902116-product-images-resize#332515 "-- url of the page with the problem -- :   aketo.kz/paneli-operatora/simvolnye/prod...ategory&#95;pathway-1854  -- HikaShop version -- : 4.4.1 -- Joomla version -- : 3.9.25 -- PHP version -- : 7.2 -- Browser(s) name and version -- : chrome  If to attach a few images (2 and more) in &quot;files and images&quot; of product settings and to choose not to store image localy and include only ALT and path to images  then on product page the resized images is not equal to set upted value in &quot;system-&gt;configuration-&gt;general-&gt;images-&gt;maximum size of images in the product page&quot; if you onmouseover image thumbnail but equal to image original size.  Also Default size for thumbnails ; can be override per menu/module. seems not working at all  How to fix ?")*

i think we need also to add code which you provide us earlier in show_block_img
on line 181 as it in v4.4.2
Code:

if($img-&gt;external &amp;&amp; $img-&gt;req_width &amp;&amp; $img-&gt;req_height) { $img-&gt;width=$img-&gt;req_width; $img-&gt;height=$img-&gt;req_height; }

before this code
Code:

$attr = $thumbnail_class.' title="'.$this-&gt;escape(@$image-&gt;file_description).'" onmouseover="return window.localPage.changeImage(' . 'this, \'hikashop_main_image'.$variant_name.'\', \''.$img-&gt;url.'\', '.$img-&gt;width.', '.$img-&gt;height.', \''.str_replace(array("'", '"'), array("\'", '&amp;quot;'),@$image-&gt;file_description).'\', \''.str_replace(array("'", '"'),array("\'", '&amp;quot;'),@$image-&gt;file_name).'\', '.$key.');"';

Because in this issue we use external image 1000x1000 and 400x400 in configuration. So if to set target.width = 400; target.height = 400; in changeImage function HK v4.4.2 New product page thumbnail feature work well.

But the changeImage function located only in two places in file = first on it definition and the second where it call.
so probably this fix is right.

also Code:

a.hikashop_slide_prev_active, a.hikashop_slide_next_active { display: /*inline-*/block; z-index: 999; }

works to display arrows correct left/right sides in frontend_default.css
i mean - display: block; intead display: inline-block;

Also i noticed similar external image bug in backend while order display (it show actual size image but not resized)
but did not checked code yet.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS85MDIxMTYtcHJvZHVjdC1pbWFnZXMtcmVzaXplP3RtcGw9bWFya2Rvd24=) or [Create an account](/register) to join the conversation.

- **[Philip](/forum/user/34318-philip "View Philip's Profile")**
- [![Philip's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar34318_2015-11-18-2.png)](/forum/user/34318-philip "View Philip's Profile")
- [ Offline](/forum/user/34318-philip)

Less More

- Posts: 4820
- Thank you received: 654
-
-

5 years 5 months ago [\#332520](#332520) by [Philip](/forum/user/34318-philip "View Philip's Profile")  Replied by *[Philip](/forum/user/34318-philip "View Philip's Profile")* on topic *[Product images resize](/forum/26-product-category-display/902116-product-images-resize#332520 "-- url of the page with the problem -- :   aketo.kz/paneli-operatora/simvolnye/prod...ategory&#95;pathway-1854  -- HikaShop version -- : 4.4.1 -- Joomla version -- : 3.9.25 -- PHP version -- : 7.2 -- Browser(s) name and version -- : chrome  If to attach a few images (2 and more) in &quot;files and images&quot; of product settings and to choose not to store image localy and include only ALT and path to images  then on product page the resized images is not equal to set upted value in &quot;system-&gt;configuration-&gt;general-&gt;images-&gt;maximum size of images in the product page&quot; if you onmouseover image thumbnail but equal to image original size.  Also Default size for thumbnails ; can be override per menu/module. seems not working at all  How to fix ?")*

Hello,

Thanks for your returns and informations, can we consider that your frontend problem is solved before talking about the backend?
If yes, can you details more your display issue throught annotated screenshot and details to try to better understand the context ?

Regards

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS85MDIxMTYtcHJvZHVjdC1pbWFnZXMtcmVzaXplP3RtcGw9bWFya2Rvd24=) or [Create an account](/register) to join the conversation.

- **[Bender](/forum/user/38688-bender "View Bender's Profile")**
- [![Bender's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/38688-bender "View Bender's Profile") Topic Author
- [ Offline](/forum/user/38688-bender)

Less More

- Posts: 239
- Thank you received: 8
-
-

5 years 5 months ago -  5 years 5 months ago [\#332638](#332638) by [Bender](/forum/user/38688-bender "View Bender's Profile")  Replied by *[Bender](/forum/user/38688-bender "View Bender's Profile")* on topic *[Product images resize](/forum/26-product-category-display/902116-product-images-resize#332638 "-- url of the page with the problem -- :   aketo.kz/paneli-operatora/simvolnye/prod...ategory&#95;pathway-1854  -- HikaShop version -- : 4.4.1 -- Joomla version -- : 3.9.25 -- PHP version -- : 7.2 -- Browser(s) name and version -- : chrome  If to attach a few images (2 and more) in &quot;files and images&quot; of product settings and to choose not to store image localy and include only ALT and path to images  then on product page the resized images is not equal to set upted value in &quot;system-&gt;configuration-&gt;general-&gt;images-&gt;maximum size of images in the product page&quot; if you onmouseover image thumbnail but equal to image original size.  Also Default size for thumbnails ; can be override per menu/module. seems not working at all  How to fix ?")*

Hi, yes now this issue with frontend is solved

here is picture to show difference [ photos.app.goo.gl/hFBHXA5mwfcDKXMT8](https://photos.app.goo.gl/hFBHXA5mwfcDKXMT8)

Last edit: 5 years 5 months ago by [Bender](/forum/user/38688-bender "View Bender's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS85MDIxMTYtcHJvZHVjdC1pbWFnZXMtcmVzaXplP3RtcGw9bWFya2Rvd24=) or [Create an account](/register) to join the conversation.

- **[Bender](/forum/user/38688-bender "View Bender's Profile")**
- [![Bender's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/38688-bender "View Bender's Profile") Topic Author
- [ Offline](/forum/user/38688-bender)

Less More

- Posts: 239
- Thank you received: 8
-
-

5 years 5 months ago -  5 years 5 months ago [\#332639](#332639) by [Bender](/forum/user/38688-bender "View Bender's Profile")  Replied by *[Bender](/forum/user/38688-bender "View Bender's Profile")* on topic *[Product images resize](/forum/26-product-category-display/902116-product-images-resize#332639 "-- url of the page with the problem -- :   aketo.kz/paneli-operatora/simvolnye/prod...ategory&#95;pathway-1854  -- HikaShop version -- : 4.4.1 -- Joomla version -- : 3.9.25 -- PHP version -- : 7.2 -- Browser(s) name and version -- : chrome  If to attach a few images (2 and more) in &quot;files and images&quot; of product settings and to choose not to store image localy and include only ALT and path to images  then on product page the resized images is not equal to set upted value in &quot;system-&gt;configuration-&gt;general-&gt;images-&gt;maximum size of images in the product page&quot; if you onmouseover image thumbnail but equal to image original size.  Also Default size for thumbnails ; can be override per menu/module. seems not working at all  How to fix ?")*

about backend issue with same external image

order / show_products.php
on line 148-149
Code:

echo '&lt;img class="hikashop_order_item_image" title="'.$this-&gt;escape(@$product-&gt;images[0]-&gt;file_description).'" alt="'.$this-&gt;escape(@$product-&gt;images[0]-&gt;file_name).'" src="'.$img-&gt;url.'"/&gt;';

do not include width and heigth parametrs of IMG tag at all

so if to include
Code:

echo '&lt;img width="'.$width.'" height="'.$height.'" class="hikashop_order_item_image" title="'.$this-&gt;escape(@$product-&gt;images[0]-&gt;file_description).'" alt="'.$this-&gt;escape(@$product-&gt;images[0]-&gt;file_name).'" src="'.$img-&gt;url.'"/&gt;';

it works

[ photos.app.goo.gl/Ht9PaMZCHJrjRH8R6](https://photos.app.goo.gl/Ht9PaMZCHJrjRH8R6)

Last edit: 5 years 5 months ago by [Bender](/forum/user/38688-bender "View Bender's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS85MDIxMTYtcHJvZHVjdC1pbWFnZXMtcmVzaXplP3RtcGw9bWFya2Rvd24=) or [Create an account](/register) to join the conversation.

- **[Philip](/forum/user/34318-philip "View Philip's Profile")**
- [![Philip's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar34318_2015-11-18-2.png)](/forum/user/34318-philip "View Philip's Profile")
- [ Offline](/forum/user/34318-philip)

Less More

- Posts: 4820
- Thank you received: 654
-
-

5 years 5 months ago [\#332652](#332652) by [Philip](/forum/user/34318-philip "View Philip's Profile")  Replied by *[Philip](/forum/user/34318-philip "View Philip's Profile")* on topic *[Product images resize](/forum/26-product-category-display/902116-product-images-resize#332652 "-- url of the page with the problem -- :   aketo.kz/paneli-operatora/simvolnye/prod...ategory&#95;pathway-1854  -- HikaShop version -- : 4.4.1 -- Joomla version -- : 3.9.25 -- PHP version -- : 7.2 -- Browser(s) name and version -- : chrome  If to attach a few images (2 and more) in &quot;files and images&quot; of product settings and to choose not to store image localy and include only ALT and path to images  then on product page the resized images is not equal to set upted value in &quot;system-&gt;configuration-&gt;general-&gt;images-&gt;maximum size of images in the product page&quot; if you onmouseover image thumbnail but equal to image original size.  Also Default size for thumbnails ; can be override per menu/module. seems not working at all  How to fix ?")*

Hello,

Thanks for your return and suggestions, this help us to improve the HikaShop code !
Regards

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS85MDIxMTYtcHJvZHVjdC1pbWFnZXMtcmVzaXplP3RtcGw9bWFya2Rvd24=) or [Create an account](/register) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.091 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
