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

#   Image Distortion on mobile Devices

##

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

Less More

- Posts: 15
- Thank you received: 0
-
-

7 years 10 months ago [\#303224](#303224) by [MalcolmB](/forum/user/55131-malcolmb "View MalcolmB's Profile")  *[Image Distortion on mobile Devices](/forum/26-product-category-display/896787-image-distortion-on-mobile-devices#303224 "-- url of the page with the problem -- :   mbdesigns.co.uk  -- HikaShop version -- : 4.0.2 -- Joomla version -- : 3.9.2 -- PHP version -- : 7.2.13 -- Browser(s) name and version -- : Firefox 65.0, chrome, opera, Edge -- Error-message(debug-mod must be tuned on) -- : No Error Messages  I have a problem with distorted images when viewing the website on mobile devices. When viewing a product and tapping a thumbnail, instead of changing the main image, an enlarged popup image is displayed. This image is distorted, in portrait mode the image is distorted in the vertical direction and conversely in landscape mode in the horizontal direction  Using firefox inspector I can see that the image ratio is generated by the system but I cannot identify the file responsible. This problem persists even when changing to the default joomla templates Beez and Protostar. I have also tried this on a new installation of joomla and hikashop, with no added modules or changes to any files with the same results.  I would like a single tap on a thumbnail to change the main image. A double tap to enlarge the image and for the enlarged image to keep its aspect ratio in both portrait and landscape views. Failing this I would like to disable the enlarged popup up for phones and tablets, but keep it for PC’s.")* was created by *[MalcolmB](/forum/user/55131-malcolmb "View MalcolmB's Profile")*

-- url of the page with the problem -- : [ mbdesigns.co.uk](https://mbdesigns.co.uk)
-- HikaShop version -- : 4.0.2
-- Joomla version -- : 3.9.2
-- PHP version -- : 7.2.13
-- Browser(s) name and version -- : Firefox 65.0, chrome, opera, Edge
-- Error-message(debug-mod must be tuned on) -- : No Error Messages

I have a problem with distorted images when viewing the website on mobile devices. When viewing a product and tapping a thumbnail, instead of changing the main image, an enlarged popup image is displayed. This image is distorted, in portrait mode the image is distorted in the vertical direction and conversely in landscape mode in the horizontal direction

Using firefox inspector I can see that the image ratio is generated by the system but I cannot identify the file responsible. This problem persists even when changing to the default joomla templates Beez and Protostar. I have also tried this on a new installation of joomla and hikashop, with no added modules or changes to any files with the same results.

I would like a single tap on a thumbnail to change the main image.
A double tap to enlarge the image and for the enlarged image to keep its aspect ratio in both portrait and landscape views.
Failing this I would like to disable the enlarged popup up for phones and tablets, but keep it for PC’s.

- [ ![Phone&#95;2019-01-30.jpg](/forum/attachment/45977) ](/forum/attachment/45977 "...2019-01-30.jpg") [ ](/forum/attachment/45977?download=1 "...2019-01-30.jpg")
- [ ![image&#95;2019-01-30.jpg](/forum/attachment/45978) ](/forum/attachment/45978 "...2019-01-30.jpg") [ ](/forum/attachment/45978?download=1 "...2019-01-30.jpg")
- [ ![image2&#95;2019-01-30.jpg](/forum/attachment/45979) ](/forum/attachment/45979 "...2019-01-30.jpg") [ ](/forum/attachment/45979?download=1 "...2019-01-30.jpg")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84OTY3ODctaW1hZ2UtZGlzdG9ydGlvbi1vbi1tb2JpbGUtZGV2aWNlcz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) 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: 86587
- Thank you received: 14326
-
-

7 years 10 months ago [\#303230](#303230) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Image Distortion on mobile Devices](/forum/26-product-category-display/896787-image-distortion-on-mobile-devices#303230 "-- url of the page with the problem -- :   mbdesigns.co.uk  -- HikaShop version -- : 4.0.2 -- Joomla version -- : 3.9.2 -- PHP version -- : 7.2.13 -- Browser(s) name and version -- : Firefox 65.0, chrome, opera, Edge -- Error-message(debug-mod must be tuned on) -- : No Error Messages  I have a problem with distorted images when viewing the website on mobile devices. When viewing a product and tapping a thumbnail, instead of changing the main image, an enlarged popup image is displayed. This image is distorted, in portrait mode the image is distorted in the vertical direction and conversely in landscape mode in the horizontal direction  Using firefox inspector I can see that the image ratio is generated by the system but I cannot identify the file responsible. This problem persists even when changing to the default joomla templates Beez and Protostar. I have also tried this on a new installation of joomla and hikashop, with no added modules or changes to any files with the same results.  I would like a single tap on a thumbnail to change the main image. A double tap to enlarge the image and for the enlarged image to keep its aspect ratio in both portrait and landscape views. Failing this I would like to disable the enlarged popup up for phones and tablets, but keep it for PC’s.")*

Hi,

Please try the different "image popup mode" choices available in the HikaShop configuration under the Display tab.

The following user(s) said Thank You: [MalcolmB](/forum/user/55131-malcolmb "View MalcolmB's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84OTY3ODctaW1hZ2UtZGlzdG9ydGlvbi1vbi1tb2JpbGUtZGV2aWNlcz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

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

Less More

- Posts: 15
- Thank you received: 0
-
-

7 years 9 months ago [\#303309](#303309) by [MalcolmB](/forum/user/55131-malcolmb "View MalcolmB's Profile")  Replied by *[MalcolmB](/forum/user/55131-malcolmb "View MalcolmB's Profile")* on topic *[Image Distortion on mobile Devices](/forum/26-product-category-display/896787-image-distortion-on-mobile-devices#303309 "-- url of the page with the problem -- :   mbdesigns.co.uk  -- HikaShop version -- : 4.0.2 -- Joomla version -- : 3.9.2 -- PHP version -- : 7.2.13 -- Browser(s) name and version -- : Firefox 65.0, chrome, opera, Edge -- Error-message(debug-mod must be tuned on) -- : No Error Messages  I have a problem with distorted images when viewing the website on mobile devices. When viewing a product and tapping a thumbnail, instead of changing the main image, an enlarged popup image is displayed. This image is distorted, in portrait mode the image is distorted in the vertical direction and conversely in landscape mode in the horizontal direction  Using firefox inspector I can see that the image ratio is generated by the system but I cannot identify the file responsible. This problem persists even when changing to the default joomla templates Beez and Protostar. I have also tried this on a new installation of joomla and hikashop, with no added modules or changes to any files with the same results.  I would like a single tap on a thumbnail to change the main image. A double tap to enlarge the image and for the enlarged image to keep its aspect ratio in both portrait and landscape views. Failing this I would like to disable the enlarged popup up for phones and tablets, but keep it for PC’s.")*

Hi Nicolas,

Have tried the various modes as suggested with the exception of Shadowbox (embedded) as I cannot find out how it is embedded. On JED the only extension called shadowbox, was updated 2015 and has links which give 404 errors.

Shadowbox (external) gives undistorted images, but its controls for the images on mobiles are so small and close together it is impossible to use accurately, which can lead to frustration. Also on mobile devices the popup is the only option as moving a finger across the thumbnails does not change the main image.

I had checked shadowbox previously and ruled it out as sometime the bottom of the image would off the bottom of the screen, would be unable to scroll the screen to get to the controls, so the back button at the top of the screen was the only way to leave the popup. Having checked this periodically during the day this problem would seem to no longer exist.

Will use the Shadowbox (embedded) for the time being, while I use JED to find a suitable alternative.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84OTY3ODctaW1hZ2UtZGlzdG9ydGlvbi1vbi1tb2JpbGUtZGV2aWNlcz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) 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: 86587
- Thank you received: 14326
-
-

7 years 9 months ago [\#303369](#303369) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Image Distortion on mobile Devices](/forum/26-product-category-display/896787-image-distortion-on-mobile-devices#303369 "-- url of the page with the problem -- :   mbdesigns.co.uk  -- HikaShop version -- : 4.0.2 -- Joomla version -- : 3.9.2 -- PHP version -- : 7.2.13 -- Browser(s) name and version -- : Firefox 65.0, chrome, opera, Edge -- Error-message(debug-mod must be tuned on) -- : No Error Messages  I have a problem with distorted images when viewing the website on mobile devices. When viewing a product and tapping a thumbnail, instead of changing the main image, an enlarged popup image is displayed. This image is distorted, in portrait mode the image is distorted in the vertical direction and conversely in landscape mode in the horizontal direction  Using firefox inspector I can see that the image ratio is generated by the system but I cannot identify the file responsible. This problem persists even when changing to the default joomla templates Beez and Protostar. I have also tried this on a new installation of joomla and hikashop, with no added modules or changes to any files with the same results.  I would like a single tap on a thumbnail to change the main image. A double tap to enlarge the image and for the enlarged image to keep its aspect ratio in both portrait and landscape views. Failing this I would like to disable the enlarged popup up for phones and tablets, but keep it for PC’s.")*

Hi,

If you want alternatives to the different image popup modes available by default, this plugin is available on our marketplace:
[ www.hikashop.com/marketplace/product/117...pups-by-obsidev.html](https://www.hikashop.com/marketplace/product/117-integration-imagepopups-by-obsidev.html)
It includes three different additional image popup modes.

Regarding the "shadowbox embedded", it's basically when you add the js/css of shadowbox directly in your template as otherwise they come from our cdn server so that means that on the product pages of your website, your users' browser will download these files from our servers instead of yours. In some cases you might not want that. For example, if your users are in New Zealand, while our servers are located in France, using the embedded mode would help with the page load time.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84OTY3ODctaW1hZ2UtZGlzdG9ydGlvbi1vbi1tb2JpbGUtZGV2aWNlcz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

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

Less More

- Posts: 6
- Thank you received: 2
-
-

5 years 10 months ago [\#328616](#328616) by [luisolla](/forum/user/44916-luisolla "View luisolla's Profile")  Replied by *[luisolla](/forum/user/44916-luisolla "View luisolla's Profile")* on topic *[Image Distortion on mobile Devices](/forum/26-product-category-display/896787-image-distortion-on-mobile-devices#328616 "-- url of the page with the problem -- :   mbdesigns.co.uk  -- HikaShop version -- : 4.0.2 -- Joomla version -- : 3.9.2 -- PHP version -- : 7.2.13 -- Browser(s) name and version -- : Firefox 65.0, chrome, opera, Edge -- Error-message(debug-mod must be tuned on) -- : No Error Messages  I have a problem with distorted images when viewing the website on mobile devices. When viewing a product and tapping a thumbnail, instead of changing the main image, an enlarged popup image is displayed. This image is distorted, in portrait mode the image is distorted in the vertical direction and conversely in landscape mode in the horizontal direction  Using firefox inspector I can see that the image ratio is generated by the system but I cannot identify the file responsible. This problem persists even when changing to the default joomla templates Beez and Protostar. I have also tried this on a new installation of joomla and hikashop, with no added modules or changes to any files with the same results.  I would like a single tap on a thumbnail to change the main image. A double tap to enlarge the image and for the enlarged image to keep its aspect ratio in both portrait and landscape views. Failing this I would like to disable the enlarged popup up for phones and tablets, but keep it for PC’s.")*

Hi I have a similar issue.
Only on mobile phones.

Everything is fine at our web ([ www.arteaman.es](http://www.arteaman.es)), but when you go to the product page ([ arteaman.es/pulseras/delasuerte/pulsera-...justable-iching-roja](https://arteaman.es/pulseras/delasuerte/pulsera-de-la-suerte-doble-ajustable-iching-roja)) first (principal) image appears stretched.
If you pick any other picture it's ok, the popup is ok, even the fist image loads fine if you click on it.
Do you have any idea?
I think it's because the image is stretched to screen wide, but not proportionaly, don't know how to check that.

Thanks in advance

- [ ![Screenshot&#95;20210123&#95;224436&#95;com.huawei.browser.jpg](/forum/attachment/51744) ](/forum/attachment/51744 "...ei.browser.jpg") [ ](/forum/attachment/51744?download=1 "...ei.browser.jpg")
- [ ![Screenshot&#95;20210123&#95;224402&#95;com.huawei.browser.jpg](/forum/attachment/51745) ](/forum/attachment/51745 "...ei.browser.jpg") [ ](/forum/attachment/51745?download=1 "...ei.browser.jpg")
- [ ![Screenshot&#95;20210123&#95;224407&#95;com.huawei.browser.jpg](/forum/attachment/51746) ](/forum/attachment/51746 "...ei.browser.jpg") [ ](/forum/attachment/51746?download=1 "...ei.browser.jpg")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84OTY3ODctaW1hZ2UtZGlzdG9ydGlvbi1vbi1tb2JpbGUtZGV2aWNlcz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) 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: 86587
- Thank you received: 14326
-
-

5 years 10 months ago [\#328632](#328632) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Image Distortion on mobile Devices](/forum/26-product-category-display/896787-image-distortion-on-mobile-devices#328632 "-- url of the page with the problem -- :   mbdesigns.co.uk  -- HikaShop version -- : 4.0.2 -- Joomla version -- : 3.9.2 -- PHP version -- : 7.2.13 -- Browser(s) name and version -- : Firefox 65.0, chrome, opera, Edge -- Error-message(debug-mod must be tuned on) -- : No Error Messages  I have a problem with distorted images when viewing the website on mobile devices. When viewing a product and tapping a thumbnail, instead of changing the main image, an enlarged popup image is displayed. This image is distorted, in portrait mode the image is distorted in the vertical direction and conversely in landscape mode in the horizontal direction  Using firefox inspector I can see that the image ratio is generated by the system but I cannot identify the file responsible. This problem persists even when changing to the default joomla templates Beez and Protostar. I have also tried this on a new installation of joomla and hikashop, with no added modules or changes to any files with the same results.  I would like a single tap on a thumbnail to change the main image. A double tap to enlarge the image and for the enlarged image to keep its aspect ratio in both portrait and landscape views. Failing this I would like to disable the enlarged popup up for phones and tablets, but keep it for PC’s.")*

Hi,

You have such CSS on your website to force the height of the image to be as tall as possible:
.hikashop_product_page .hk-row-fluid #hikashop_product_left_part .hikashop_product_main_image a img {
height: 100%;
width
But you don't have such CSS for the width. So that's why it's streched on mobile devices.
I don't know how that CSS is added to the page as you have an extension compliing the CSS on the page into a cache file (for performances I suppose).
I suppose a solution could be to add a similar CSS code for the width:
.hikashop_product_page .hk-row-fluid #hikashop_product_left_part .hikashop_product_main_image a img {
width: 100%;
}

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84OTY3ODctaW1hZ2UtZGlzdG9ydGlvbi1vbi1tb2JpbGUtZGV2aWNlcz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

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

Less More

- Posts: 6
- Thank you received: 2
-
-

5 years 10 months ago -  5 years 10 months ago [\#328655](#328655) by [luisolla](/forum/user/44916-luisolla "View luisolla's Profile")  Replied by *[luisolla](/forum/user/44916-luisolla "View luisolla's Profile")* on topic *[Image Distortion on mobile Devices](/forum/26-product-category-display/896787-image-distortion-on-mobile-devices#328655 "-- url of the page with the problem -- :   mbdesigns.co.uk  -- HikaShop version -- : 4.0.2 -- Joomla version -- : 3.9.2 -- PHP version -- : 7.2.13 -- Browser(s) name and version -- : Firefox 65.0, chrome, opera, Edge -- Error-message(debug-mod must be tuned on) -- : No Error Messages  I have a problem with distorted images when viewing the website on mobile devices. When viewing a product and tapping a thumbnail, instead of changing the main image, an enlarged popup image is displayed. This image is distorted, in portrait mode the image is distorted in the vertical direction and conversely in landscape mode in the horizontal direction  Using firefox inspector I can see that the image ratio is generated by the system but I cannot identify the file responsible. This problem persists even when changing to the default joomla templates Beez and Protostar. I have also tried this on a new installation of joomla and hikashop, with no added modules or changes to any files with the same results.  I would like a single tap on a thumbnail to change the main image. A double tap to enlarge the image and for the enlarged image to keep its aspect ratio in both portrait and landscape views. Failing this I would like to disable the enlarged popup up for phones and tablets, but keep it for PC’s.")*

Thanks a lot Nicolas ¡¡
Will try to fix within this week and will report to you ![:)](/media/kunena/emoticons/3.png ":)")
thank you very much

---

CONFIRMED ¡¡¡ FIXED thank you very much Nicolas

---

Last edit: 5 years 10 months ago by [luisolla](/forum/user/44916-luisolla "View luisolla's Profile").

The following user(s) said Thank You: [Philip](/forum/user/34318-philip "View Philip's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84OTY3ODctaW1hZ2UtZGlzdG9ydGlvbi1vbi1tb2JpbGUtZGV2aWNlcz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) 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.100 seconds

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