Post by Cue4cheap » Thu Aug 29, 2024 10:51 am

As in:

Code: Select all

<img
  src="image-300.png" 
  srcset="
    productA-300.png 300w,
    productA-900.png 900w,
    productA-1800.png 1800w"
  alt="productA description"
/>
Or any modification that use this that could be added to 2.3.0.2?
Thanks!
Mike

cue4cheap not cheap quality


Expert Member

Posts

Joined
Fri Sep 20, 2013 4:45 am

Post by JNeuhoff » Thu Aug 29, 2024 9:12 pm

As far as I know there aren't any OpenCart themes using the srcset attribute.

However, have you considered using svg instead of jpg or png for your images? By its very nature, SVG is fully scalable.

Export/Import Tool * SpamBot Buster * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Tag Manager * Survey Plus * OpenTwig


User avatar
Guru Member

Posts

Joined
Wed Dec 05, 2007 3:38 am


Post by Cue4cheap » Fri Aug 30, 2024 6:54 am

JNeuhoff wrote:
Thu Aug 29, 2024 9:12 pm
As far as I know there aren't any OpenCart themes using the srcset attribute.

However, have you considered using svg instead of jpg or png for your images? By its very nature, SVG is fully scalable.
Actually I haven't considered svg. I'll look into it and see how it goes with my theme.
Thank you,
Mike

cue4cheap not cheap quality


Expert Member

Posts

Joined
Fri Sep 20, 2013 4:45 am

Post by Cue4cheap » Fri Aug 30, 2024 10:53 pm

Cue4cheap wrote:
Fri Aug 30, 2024 6:54 am
JNeuhoff wrote:
Thu Aug 29, 2024 9:12 pm
As far as I know there aren't any OpenCart themes using the srcset attribute.

However, have you considered using svg instead of jpg or png for your images? By its very nature, SVG is fully scalable.
Actually I haven't considered svg. I'll look into it and see how it goes with my theme.
Thank you,
Mike
I used an OCMod to allow svg upload but on the admin side the image doesn't show, just a little block so the image is at least "there" just not showing. I need to figure that out.
On the store front end the image shows ... but boy does that image look like junk. I used an online png to svg converter and it appears I need to find something else to convert it as as the image looks like pure garbage.
Mike

cue4cheap not cheap quality


Expert Member

Posts

Joined
Fri Sep 20, 2013 4:45 am
Who is online

Users browsing this forum: No registered users and 4 guests