Blurry images

6 replies · opened May 23, 2019

Eenero_55May 23, 2019

I have a png image 200 x 400 px. It is displayed with the tag without any width or height attributes, just as in your example pages. However, when displayed in a browser (Chrome 73.0) it gets blurry. All the images become blurry, why? The broswer setting is 100% size so no scaling occurs.

I can see that there is a retina-logo class to display a @2x image of the logo, which makes it super sharp. I can't find any other retina classes to do the same thing with other images apart from the logo.

Eenero_55May 25, 2019

I don't wan't to use srcset for a number of reasons so I was thinking more if you had some simpler solution in your template. The way you handle retina logos, for example...

Perhaps even the device-xs class could be helpful if I let the image be the background image of a div. Then using device-xs could be used to determine the proper image to use (having multiple images with different resolutions). How is device-xs defined (screen size etc)? Are there other css classes like this which defines screen size? Where can I read about them in your documentation?

SSemicolon WebSTAFFMay 26, 2019

Hello,

We understand about your Reservations but we will be updating the codes in the Future Versions eventually to support this as this is the way forward.

Meanwhile, you can consider using the RetinaJS Plugin: https://imulus.github.io/retinajs/ as then you will not have to change codes except just adding the @2x Image in your Folder.

The Responsive Classes are as follows:

.device-xl – Class for Large Devices >=1200px

.device-lg – Class for Medium Devices >=992px to 1199px

.device-md – Class for Tablets

.device-sm – Class for Landscape Mobiles or Phablets.

.device-xs – Class for Portrait Mobiles

You can use the above code for any Elements as well.

Hope this Helps!

Let us know if we can help you with anything else or if you find any further issues.

Eenero_55May 26, 2019

On your page http://themes.semicolonweb.com/html/canvas/responsive.html you explain how to detect screen sizes to make different things visible on different devices. In the table, you list a number of combinations of the four screen size groups, but how do I combine e.g. "Extra small devices" and "Small devices"? Do I just add them like "d-block d-md-none d-none d-md-block d-lg-none"? I just can't see the logic behind the name composition.

The suffix of the classes you mention in your previous post resembles the bootstrap grid classes. But when I look in the bootstrap documentation, the "pixel limits" between them are different. Are the classes you mention in your previous post a Canvas thing? If so, where can i find the docs for it?

Thank you for your patience with my questions, I really appreciate it.

SSemicolon WebSTAFFMay 27, 2019

Hello,

This is a Bootstrap Thing and once you get hold of their logic, it appears to be easier than expected. To display an Element only on Small and XSmall Devices, use the class="d-sm-block d-md-none". It sort of an until/from thing.

The Device Classes are a Canvas thing (currently not available in the Documentation) and is used to define Custom Classes or change Class definitions Specifically for the .device-* Device. It is completely compatible with the Bootstrap Media Query Pixel Limits and are defined in the js/functions.js File.

Hope this Helps!

Let us know if we can help you with anything else or if you find any further issues.

Eenero_55May 28, 2019

Ok, thanks!

Have the same question, or something new?

Sign in to the Canvas dashboard to reply or open your own topic. Canvas owners get direct help from the SemiColonWeb team.

Reply on the dashboard