Questions tagged [responsive-images]

Responsive-images is the part of Responsive Web Design (RWD) dealing specifically with images on the web to provide optimal experiences across a wide range of devices based on screen size, platform, and orientation.

518 questions
2
votes
2 answers

Why did Google remove Image API for App Engine running Python 3.7?

I am using Google Cloud Storage and I want to serve scaled images from it, Python 2 version of Google App Engine supported it via Images API but with Python3, they removed that…
Aster
  • 203
  • 1
  • 4
  • 16
2
votes
0 answers

Jekyll responsive image plugin won't render

I am using the jekyll responsive image plugin. I have a template like i should, and it can reach the template and the css. It does render a img code, but the path is wrong an it does not render any resized images. Here is my template: {% capture…
2
votes
1 answer

Webpack 4 - generate responsive images

I want to generate images in different sizes from one base image. F.e. I have an 1920x1080 image and after processing I want images with sizes (768, 1024, 1600, 1920). I know there is an loader which can accomplish that:…
2
votes
2 answers

Make image responsive maintaining aspect ratio, with padding either side

Here is a link to the working pen: https://codepen.io/Adam0410/pen/OBqRRN HTML
CSS #imgWrapper { display: flex; …
Adam Griffiths
  • 680
  • 6
  • 26
  • 60
2
votes
1 answer

Working with srcset and container-fluid

I am trying to work with srcset in a combination of container-fluid from Bootstrap. I know, there is something wrong but I cannot figure out what it is! I am trying to use calc because I don't have the exact number for image width. In @media…
SaMo
  • 45
  • 7
2
votes
1 answer

Image sizes attribute with both min-width and max-width ignored by Firefox

The following code (live demo at http://iamkate.com/sizes/) behaves differently in Firefox (61.0.1) from Chrome and Edge: Sizes issue
2
votes
1 answer

SVG that scales to the container

I want to create an SVG that scales to the width of the container without the parts of it resizing or distorting. So depending on the width, the same image might be rendered as any of the following: As you can see, the left and right parts are (or…
Marcus Downing
  • 10,054
  • 10
  • 63
  • 85
2
votes
1 answer

Make scrset for landscape and portrait switch properly

I need to display a full screen image at the top of my page and naturally on mobiles when orientation is changed from landscape to mobile I need a different version of this image. I then created multiple versions for landscape and portrait mode. It…
2
votes
0 answers

HTML5 srcset and sizes downloading 2 images

I want to download the 80w image on screens with a max-width of 991px and the 160w image on screens with a min-width of 992px. With the code below both images are downloaded on screens with a max-width of 991px, what is wrong?
Gabriel Souza
  • 965
  • 5
  • 16
  • 36
2
votes
1 answer

Android chrome ALWAYS using full size image from srcset

This issue is really frustrating and I'd appreciate any insight. Here is the summary. Despite images having a full srcset, Chrome on android is always serving the full sized image. So if the page has 10 images, despite there being 5 versions of…
21stcn
  • 43
  • 5
2
votes
1 answer

Responsive website images turn blurry on iPhone (iOS)

I have built responsive website which works great on all devices except iOS. On iOS devices, my background images get blurry. Here is link to my website. http://www.idynxschool.com/vesco/ You can view it on iPhone and you will find blurry images.…
Irfan
  • 4,882
  • 12
  • 52
  • 62
2
votes
2 answers

media attribute - width of container rather than screen?

I'm using the tag to responsively display an image after assessing the size of the container it's in. Some example code:
Matt
  • 88
  • 1
  • 11
2
votes
2 answers

Is there anyway to set background-size to both contain and cover?

Here is a pen to my attempt https://codepen.io/alexyap/pen/VbvGvw
* { margin: 0; padding: 0; } #bg { background: url('https://static.pexels.com/photos/198747/pexels-photo-198747.jpeg'); height: 60vh; width: 100%; …
Alex Yap
  • 153
  • 1
  • 12
2
votes
1 answer

Styling responsive layout in amp-img

Since I've implemented Google AMP I am struggling with this problem. Every time I add an image with a width far smaller than my website width, amp-img automatically add margins to keep the aspect ratio, like this: I have tried other layouts…
Alejandro Alcalde
  • 5,990
  • 6
  • 39
  • 79
2
votes
1 answer

What image is loaded with element?

I'm implementing responsive images on a new website and have a question. Is it correct that the example code below will load test-400.jpg on any screen that's 960 pixels or larger? Even if the image width only takes up 40% of the screen width? This…
Neil Nand
  • 549
  • 6
  • 25