Load double resolution images with content block for ratina display
Permalink
With new updates on concrete 5.7.5.4,
Images are using <picture> tag instead of <img> tag and use responsive image feature in content block.
Is there anyway to load double resolution images for ratina display using content block ?
Images are using <picture> tag instead of <img> tag and use responsive image feature in content block.
Is there anyway to load double resolution images for ratina display using content block ?
Hi srjahir32,
The picture element uses thumbnails defined in your theme page_theme.php getThemeResponsiveImageMap() method:
http://documentation.concrete5.org/api/source-class-Concrete.Core.H...
http://documentation.concrete5.org/api/source-class-Concrete.Core.H...
The picture element tag is assembled in the Picture class using HtmlObject:
http://documentation.concrete5.org/api/source-class-Concrete.Core.H...
HtmlObject is an external library:
https://github.com/Anahkiasen/html-object...
The picture element uses thumbnails defined in your theme page_theme.php getThemeResponsiveImageMap() method:
http://documentation.concrete5.org/api/source-class-Concrete.Core.H...
http://documentation.concrete5.org/api/source-class-Concrete.Core.H...
The picture element tag is assembled in the Picture class using HtmlObject:
http://documentation.concrete5.org/api/source-class-Concrete.Core.H...
HtmlObject is an external library:
https://github.com/Anahkiasen/html-object...
Thanks @MrKDilkington
Thanks for providing all classes. But I'm not sure which files should be added to load ratina thumbnails in redactor editor for ratina devices.
Should It be like this ?
https://www.concrete5.org/community/forums/5-7-discussion/detect-rat...
Thanks for providing all classes. But I'm not sure which files should be added to load ratina thumbnails in redactor editor for ratina devices.
Should It be like this ?
https://www.concrete5.org/community/forums/5-7-discussion/detect-rat...
@srjahir32
I have not reviewed that code. I don't have a use case for using retina images, so I recommend you try and see if it works.
I have not reviewed that code. I don't have a use case for using retina images, so I recommend you try and see if it works.
?