Skip to content

Commit

Permalink
Add srcset for yosemite portrait, limited resolutions
Browse files Browse the repository at this point in the history
The image is not very high quality, and it compresses badly, making
larger than desired file sizes required to have any kind of visual
quality. Probably will change the picture.
  • Loading branch information
PGijsbers committed Aug 29, 2023
1 parent a7ac2f9 commit bc71a17
Show file tree
Hide file tree
Showing 8 changed files with 19 additions and 1 deletion.
Binary file added 2023/img/landscape/pieter_halfdome-1920-q20.avif
Binary file not shown.
Binary file added 2023/img/landscape/pieter_halfdome-1920-q30.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 2023/img/landscape/pieter_halfdome-3840-q25.avif
Binary file not shown.
Binary file added 2023/img/landscape/pieter_halfdome-640-q28.avif
Binary file not shown.
Binary file added 2023/img/landscape/pieter_halfdome-960-q20.avif
Binary file not shown.
Binary file added 2023/img/landscape/pieter_halfdome-960-q30.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 2023/img/landscape/pieter_halfdome.JPG
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
20 changes: 19 additions & 1 deletion 2023/index.html
Expand Up @@ -26,7 +26,25 @@ <h1>Pieter Gijsbers</h1>
<a href="about.html" class="box about-tile">
<div class="overlay"></div>
<h1 class="tile-text upper-case">about</h1>
<img class="tile" src="img/me-ar-2-1-q15.jpg" alt="Go to about page">
<picture>
<source
type="image/avif"
srcset="img/landscape/pieter_halfdome-640-q28.avif 640w,
img/landscape/pieter_halfdome-960-q20.avif 960w,
img/landscape/pieter_halfdome-1920-q20.avif 1920w,
img/landscape/pieter_halfdome-3840-q25.avif 38400w"
/>
<source
type="image/jpg"
srcset="img/landscape/pieter_halfdome-960-q30.jpg 960w,
img/landscape/pieter_halfdome-1920-q30.jpg 1920w"
/>
<img class="tile"
src="img/landscape/pieter_halfdome-1920-q30.jpg"
alt="Go to about page"
sizes="(max-width: 500px) 80vw, 50vw"
>
</picture>
</a>
<a href="https://scholar.google.com/citations?hl=en&user=Za3OsTwAAAAJ"
class="box">
Expand Down

0 comments on commit bc71a17

Please sign in to comment.