• Priority: 0
  • Status: Closed
  • Theme: Alysum
  • Assigned To: Marek
  • Private: No
  • Open Date: 15.03.18, 10:18
  • Opened by: Jakub Rawek
  • Closed by: Marek
  • Closed on: 22.03.18, 10:42
  • Reason: Closed
  • Comment: Glad to help!

Ticket #11856 - Retina images

Hi,

I’ve got a problem with displaying retina product images. Already set that option in images settings and regenerated thumbnails, however, my site still displays normal, blurry photos - not the 2x ones. Is there any solution to this problem?

Best,
Kuba

Comments

Marek 15 Mar 2018, 10:57

Hi, Jakub.
Please give me a link to your store

Jakub Rawek 15 Mar 2018, 11:07

Hi, unfortunately it’s on localhost :(

Marek 15 Mar 2018, 12:45

Ok, could you please check default prestashop theme, how it works there?

Jakub Rawek 15 Mar 2018, 16:37

Hi,

Thanks for the answer. Still there is a problem on default theme.

Marek 15 Mar 2018, 16:41

That is what I wanted to show you. Our theme is based on classic theme and works in the same way.
I can suggest you to increase images dimensions in the images settings to get sharp images

Jakub Rawek 22 Mar 2018, 09:46

I see, thanks - increasing dimensions didn’t help, but if someone has got the same problem, maybe overwriting default images with 2x versions will be okay. I’ve changed the 11. line of /templates/catalog/_partials/product-image.tpl

from:

src="{$src}"

to:

 src="{$src|replace:'default':'default2x'}"
Marek 22 Mar 2018, 10:42

I’ll try to do that with a script