Images max width

Images referenced in .html files can be limited to a max width.

export default {
  image: {
    srcset_max_width: 1300,  // Max width used in srcset
    max_width: 1300, // Max width of output image
  },
};

See configuration for default values.

Demo

SOURCE

JAMPACKED

_jampackindex.html464index.html660redpanda.jpg2790013redpanda.jpg133410[email protected]84624

SOURCE

  • index.html464
  • redpanda.jpg2790013

JAMPACKED

SourceOpen in new tab
JampackedOpen in new tab
Terminal
__                                    __    
    |__|____    _____ ___________    ____ |  | __
    |  \__  \  /     \\____ \__  \ _/ ___\|  |/ /
    |  |/ __ \|  Y Y  \  |_> > __ \\  \___|    < 
/\__|  (____  /__|_|  /   __(____  /\___  >__|_ \
\______|    \/      \/|  |       \/     \/     \/
 v0.23.4              |__| by β€Ήdivβ€ΊRIOTS

Options:
{ onlyoptim: true }

Merging default config with:
{
  "image": {
    "srcset_max_width": 1300,
    "max_width": 1300
  }
}

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

 Summary 
╔════════╀════════════╀══════════╀════════════╀══════════╗
β•‘ Action β”‚ Compressed β”‚ Original β”‚ Compressed β”‚     Gain β•‘
β•Ÿβ”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β•’
β•‘ .jpg   β”‚      1 / 1 β”‚  2.66 MB β”‚  130.28 KB β”‚ -2.53 MB β•‘
β•Ÿβ”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β•’
β•‘ Total  β”‚      1 / 1 β”‚  2.66 MB β”‚  130.28 KB β”‚ -2.53 MB β•‘
β•šβ•β•β•β•β•β•β•β•β•§β•β•β•β•β•β•β•β•β•β•β•β•β•§β•β•β•β•β•β•β•β•β•β•β•§β•β•β•β•β•β•β•β•β•β•β•β•β•§β•β•β•β•β•β•β•β•β•β•β•


 Issues 

β–Ά index.html

 fix  Adding missing  to the top of the 


 1 issue(s) over 1 files