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 28420

SOURCE

  • 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
Source Open in new tab
Jampacked Open in new tab
Terminal
__                                    __    
    |__|____    _____ ___________    ____ |  | __
    |  \__  \  /     \\____ \__  \ _/ ___\|  |/ /
    |  |/ __ \|  Y Y  \  |_> > __ \\  \___|    < 
/\__|  (____  /__|_|  /   __(____  /\___  >__|_ \
\______|    \/      \/|  |       \/     \/     \/
 v0.32.0              |__| by β€Ήdivβ€ΊRIOTS

Options:
{ onlyoptim: true }


 PASS 1 - Optimizing 
β–Ά index.html
Done: 75.235ms

 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