--- /** Feature cards on the home page, cut like postage stamps. */ import { guideIcons, svg } from "../icons"; const base = import.meta.env.BASE_URL.replace(/\/$/, ""); const features = [ { color: "var(--jp-red)", tilt: -1.5, icon: "formats", title: "Common formats", text: "PNG, JPEG, GIF, BMP, TIFF and ICO are built in. Add WEBP, AVIF, JPEG XL, JPEG 2000 and SVG with WASM plugins.", href: `${base}/concepts/formats/`, more: "Formats", }, { color: "var(--jp-blue)", tilt: 1.2, icon: "wand", title: "Image methods", text: "Resize, crop, rotate, blur, adjust color, composite, draw shapes and more. Every method is chainable.", href: `${base}/methods/`, more: "All methods", }, { color: "var(--jp-green)", tilt: -1, icon: "browser", title: "Runs anywhere", text: "Node.js, browsers, web workers and Cloudflare Workers. No native dependencies.", href: `${base}/guides/browser/`, more: "Browser guide", }, { color: "var(--jp-purple)", tilt: 1.6, icon: "plugin", title: "Extensible", text: "Write plugins for new methods or formats, or build a smaller Jimp with only what you use.", href: `${base}/guides/writing-plugins/`, more: "Writing plugins", }, ]; ---
{ features.map((f) => (

{f.title}

{f.text}

{f.more} →
)) }