1
Fork 0

Add x2 img

This commit is contained in:
Edgar P. Burkhart 2022-05-08 10:45:56 +02:00
parent 0d77c38658
commit d6b33180ed
Signed by: edpibu
GPG Key ID: 9833D3C5A25BD227
8 changed files with 5 additions and 4 deletions

View File

@ -22,9 +22,9 @@
<h1>Edgar P. <strong>Burkhart</strong></h1>
<div class="img-block">
<img src="static/img/pic1.webp" alt="" />
<img src="static/img/pic2.webp" alt="" />
<img src="static/img/pic3.webp" alt="" />
<img srcset="static/img/pic1.webp, static/img/pic1x2.webp 2x" alt="" />
<img srcset="static/img/pic2.webp, static/img/pic2x2.webp 2x" alt="" />
<img srcset="static/img/pic3.webp, static/img/pic3x2.webp 2x" alt="" />
</div>
<h2>Contact</h2>

View File

@ -1,2 +1,3 @@
#!/usr/bin/env sh
convert "$1" -geometry "384x384^" -gravity center -crop "384x384+0+0" "${1%.*}.webp"
convert "$1" -geometry 328x328^ -gravity center -crop "328x328+0+0" "${1%.*}x2.webp"
convert "${1%.*}x2.webp" -resize 50% "${1%.*}.webp"

Binary file not shown.

Before

Width:  |  Height:  |  Size: 51 KiB

After

Width:  |  Height:  |  Size: 8.7 KiB

BIN
src/static/img/pic1x2.webp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 40 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 152 KiB

After

Width:  |  Height:  |  Size: 42 KiB

BIN
src/static/img/pic2x2.webp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 115 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 94 KiB

After

Width:  |  Height:  |  Size: 35 KiB

BIN
src/static/img/pic3x2.webp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 78 KiB