Skip to content

Commit 8bd77f8

Browse files
authored
Merge pull request #7 from cloudinary-devs/named_transformations
Use w_auto in a named transformation
2 parents 9fd41a3 + 81ab1d6 commit 8bd77f8

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

demos/client-hints-named.html

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<html>
2+
3+
<head>
4+
<meta http-equiv="delegate-ch" content="sec-ch-width https://res.cloudinary.com; sec-ch-dpr https://res.cloudinary.com; sec-ch-viewport-width https://res.cloudinary.com;">
5+
</head>
6+
7+
<body>
8+
<h1>Using Client Hints to resize an image on the server side according to the viewport width</h1>
9+
<p>Resize your browser, then refresh the page to deliver an image limited to 100% of the viewport.</p>
10+
11+
<img src="https://res.cloudinary.com/carl/image/upload/t_wautotest/docs/room2.jpg" sizes="100vw" />
12+
</body>
13+
14+
</html>

0 commit comments

Comments
 (0)