Auto-fixes
jampack
will fix issues in assets automatically.
Wrong format for width
and height
in <img>
s
Should be numerical values only.
jampack
will fix either or both values based on the dimensions of the image.
Demo
SOURCE
JAMPACKED
_jampack index.html 334 index.html 331music_500x447.png 142036 music_500x447.png 142036redpanda_500x335.jpg 87167 redpanda_500x335.jpg 87167 redpanda_500x335.webp 28420SOURCE
- index.html 334
- music_500x447.png 142036
- redpanda_500x335.jpg 87167
JAMPACKED
- _jampack
- index.html 331
- music_500x447.png 142036
- redpanda_500x335.jpg 87167
- redpanda_500x335.webp 28420
Terminal
__ __
|__|____ _____ ___________ ____ | | __
| \__ \ / \\____ \__ \ _/ ___\| |/ /
| |/ __ \| Y Y \ |_> > __ \\ \___| <
/\__| (____ /__|_| / __(____ /\___ >__|_ \
\______| \/ \/| | \/ \/ \/
v0.30.0 |__| by βΉdivβΊRIOTS
Options:
{ onlyoptim: true }
PASS 1 - Optimizing
βΆ index.html
2 issues
Done: 72.609ms
Summary
βββββββββββββ€βββββββββββββ€βββββββββββ€βββββββββββββ€ββββββββββββ
β Action β Compressed β Original β Compressed β Gain β
βββββββββββββΌβββββββββββββΌβββββββββββΌβββββββββββββΌββββββββββββ’
β jpg->webp β 1 / 1 β 85.12 KB β 27.75 KB β -57.37 KB β
βββββββββββββΌβββββββββββββΌβββββββββββΌβββββββββββββΌββββββββββββ’
β Total β 1 / 1 β 85.12 KB β 27.75 KB β -57.37 KB β
βββββββββββββ§βββββββββββββ§βββββββββββ§βββββββββββββ§ββββββββββββ
Issues
βΆ index.html
fix Invalid width attribute format: "500px" - overriding for ./redpanda_500x335.jpg
fix Invalid height attribute format: "335px" - overriding for ./redpanda_500x335.jpg
2 issue(s) over 1 files