Header / slider images are blurred on mobile devices

Permalink Browser Info Environment
Have you ever noticed that the header / slider images are totally blurry in mobile (smart phone, tablet) mode? I tested it with different formats (jpg, png, webp). It can also be seen in the demo.

Type: Discussion
Status: Resolved
web089
View Replies:
Xanweb replied on at Permalink Reply
Xanweb
Hi,

We will investigate the issue and give you a feedback as soon as possible.

Kind Regards
Xanweb Support Team.
Xanweb replied on at Permalink Reply
Xanweb
Hi,

The blurred image is caused by a normal behavior of Concrete CMS thumbnails system.
Which makes images smaller in small devices.

You can reduce the blurriness by making a CSS override in theme customizer.

@media (max-width: 991.98px) {
div.ccm-page .ccm-image-slider-container .ccm-image-slider .ccm-image-slider-inner .rslides img {
      -o-object-fit: initial;
      object-fit: initial;
  }
}
web089 replied on at Permalink Reply
web089
Hi, thanks for the code. Unfortunately it has no effect. With the basic slider, the images are stretched. I tried "Atomik" on another project, everything is fine there. I'm at a loss.
web089 replied on at Permalink Reply
web089
Any news?
I am currently rebuilding the website. If I don't know if the problem can be solved, I can't continue, otherwise I'll have to use another theme. But what I don't want.
Xanweb replied on at Permalink Reply 1 Attachment
Xanweb
Hi,

Here is a different approach to fix the issue:
move the attached file "view.php" (inside view.zip) under packages/xw_replica_pro/themes/xw_replica_pro/blocks/image_slider
clear your cache and try again.

PS: if you are using "Classy Slider" template and you are facing the same issue please edit the
packages/xw_replica_pro/themes/xw_replica_pro/blocks/image_slider/tempaltes/classy_slider.php file and replace the line 56
with this code:

$tag = $app->make('html/image', ['f' => $f, 'options' => false])->getTag();


Don't forget to:
1 - Remove the introduced css code in the first proposed fix:

@media (max-width: 991.98px) {
div.ccm-page .ccm-image-slider-container .ccm-image-slider .ccm-image-slider-inner .rslides img {
      -o-object-fit: initial;
      object-fit: initial;
  }
}


2 -Clear your cache after the changes.
web089 replied on at Permalink Reply
web089
Thank you for your quick response! But where can I find the attachment (zip file)?
Xanweb replied on at Permalink Reply 1 Attachment
Xanweb
It seems that something unexpected happened!
You can access to the file in this reply
web089 replied on at Permalink Reply
web089
Yes, now it works fine. Many thanks for your support!

concrete5 Environment Information

Concrete 9.1.3
Replica Pro Theme (2.5.8)
PHP 8.0.17

Browser User-Agent String

Mozilla/5.0 (Windows NT 6.1; rv:102.0) Gecko/20100101 Firefox/102.0

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You may not request a refund that is not currently owned by you.