{
  "version": "https://jsonfeed.org/version/1.1",
  "title": "Cecil - Assets",
  "home_page_url": "https://cloudflare.cecil.app/documentation/assets/",
  "feed_url": "https://cloudflare.cecil.app/documentation/assets/feed.json",
  "description": "Handle assets (images, stylesheets, scripts, etc.) with the asset() function: process, optimize and fingerprint them.",
  "icon": "https://cloudflare.cecil.app/favicon.7ff4b89eec6dad139a7d2d6561543285.png",
  "favicon": "https://cloudflare.cecil.app/thumbnails/64x/favicon.7ff4b89eec6dad139a7d2d6561543285.png",
  "language": "en",
  "items": [
    {
      "id": "https://cloudflare.cecil.app/documentation/assets/cdn-providers/",
      "url": "https://cloudflare.cecil.app/documentation/assets/cdn-providers/",
      "title": "CDN providers",
      "summary": "Configuration examples of image CDN providers (Cloudinary, Cloudimage, TwicPics, imgix, Netlify Image CDN).",
      "date_published": "2023-10-23T00:00:00+00:00",
      "date_modified": "2026-10-16T00:00:00+00:00","content_text": "CDN providers\nConfiguration examples for image CDN providers (see the assets.images.cdn option).\nSVG images are sent to the CDN only if the provider supports them and svg: true is set; remote images are handled unless remote: false is set.\nCloudinary\nhttps:\/\/cloudinary.com\nassets:\n  images:\n    cdn:\n      enabled: true\n      account: 'xxxx'\n      url: 'https:\/\/res.cloudinary.com\/%account%\/image\/fetch\/c_limit,w_%width%,q_%quality%,f_%format%,d_default\/%image_url%'\nCloudimage\nhttps:\/\/www.cloudimage.io\nassets:\n  images:\n    cdn:\n      enabled: true\n      account: 'xxxx'\n      url: 'https:\/\/%account%.cloudimg.io\/%image_url%?w=%width%&amp;q=%quality%&amp;force_format=%format%'\nTwicPics\nhttps:\/\/www.twicpics.com\nassets:\n  images:\n    cdn:\n      enabled: true\n      account: 'xxxx'\n      canonical: false\n      remote: false\n      url: 'https:\/\/%account%.twic.pics\/%image_url%?twic=v1\/resize=%width%\/quality=%quality%\/output=%format%'\nIn the TwicPics dashboard, set the Source URL to your website baseurl.\nimgix\nhttps:\/\/imgix.com\nassets:\n  images:\n    cdn:\n      enabled: true\n      account: 'xxxx'\n      canonical: false\n      remote: false\n      url: 'https:\/\/%account%.imgix.net\/%image_url%?w=%width%&amp;q=%quality%&amp;fm=%format%'\nIn the imgix dashboard, set the Base URL of the source to your website baseurl.\nNetlify Image CDN\nhttps:\/\/docs.netlify.com\/image-cdn\/overview\/\nassets:\n  images:\n    cdn:\n      enabled: true\n      canonical: false\n      url: '\/.netlify\/images?url=%image_url%&amp;w=%width%&amp;fm=%format%'\nRun locally\n\n  \n    \n      Setup Netlify CLI\n      npm install netlify-cli -g\nnetlify link\nnetlify.toml:\n[dev]\n  targetPort = 8000\n    \n    \n      Run local server\n      php cecil.phar serve &amp; netlify dev\nOn Windows, run php cecil.phar serve and netlify dev in two separate terminals.\nOpen http:\/\/localhost:8888\n    \n  \n",
      "content_html": "<h1>CDN providers</h1>\n<p>Configuration examples for image CDN providers (see the <a href=\"../configuration/6-assets.md#assets-images-cdn\"><code translate=\"no\">assets.images.cdn</code></a> option).</p>\n<aside class=\"note note-tip\"><p>SVG images are sent to the CDN only if the provider supports them and <code translate=\"no\">svg: true</code> is set; remote images are handled unless <code translate=\"no\">remote: false</code> is set.</p></aside>\n<h2 id=\"cloudinary\">Cloudinary<a class=\"heading-anchor\" href=\"#cloudinary\" aria-hidden=\"true\" tabindex=\"-1\"></a></h2>\n<p><a href=\"https://cloudinary.com\" target=\"_blank\" rel=\"noopener noreferrer\">https://cloudinary.com</a></p>\n<pre data-lang=\"yaml\"><code class=\"language-yaml hljs yaml\" translate=\"no\"><span class=\"hljs-attr\">assets:</span>\n  <span class=\"hljs-attr\">images:</span>\n    <span class=\"hljs-attr\">cdn:</span>\n      <span class=\"hljs-attr\">enabled:</span> <span class=\"hljs-literal\">true</span>\n      <span class=\"hljs-attr\">account:</span> <span class=\"hljs-string\">'xxxx'</span>\n      <span class=\"hljs-attr\">url:</span> <span class=\"hljs-string\">'https://res.cloudinary.com/%account%/image/fetch/c_limit,w_%width%,q_%quality%,f_%format%,d_default/%image_url%'</span></code></pre>\n<h2 id=\"cloudimage\">Cloudimage<a class=\"heading-anchor\" href=\"#cloudimage\" aria-hidden=\"true\" tabindex=\"-1\"></a></h2>\n<p><a href=\"https://www.cloudimage.io\" target=\"_blank\" rel=\"noopener noreferrer\">https://www.cloudimage.io</a></p>\n<pre data-lang=\"yaml\"><code class=\"language-yaml hljs yaml\" translate=\"no\"><span class=\"hljs-attr\">assets:</span>\n  <span class=\"hljs-attr\">images:</span>\n    <span class=\"hljs-attr\">cdn:</span>\n      <span class=\"hljs-attr\">enabled:</span> <span class=\"hljs-literal\">true</span>\n      <span class=\"hljs-attr\">account:</span> <span class=\"hljs-string\">'xxxx'</span>\n      <span class=\"hljs-attr\">url:</span> <span class=\"hljs-string\">'https://%account%.cloudimg.io/%image_url%?w=%width%&amp;q=%quality%&amp;force_format=%format%'</span></code></pre>\n<h2 id=\"twicpics\">TwicPics<a class=\"heading-anchor\" href=\"#twicpics\" aria-hidden=\"true\" tabindex=\"-1\"></a></h2>\n<p><a href=\"https://www.twicpics.com\" target=\"_blank\" rel=\"noopener noreferrer\">https://www.twicpics.com</a></p>\n<pre data-lang=\"yaml\"><code class=\"language-yaml hljs yaml\" translate=\"no\"><span class=\"hljs-attr\">assets:</span>\n  <span class=\"hljs-attr\">images:</span>\n    <span class=\"hljs-attr\">cdn:</span>\n      <span class=\"hljs-attr\">enabled:</span> <span class=\"hljs-literal\">true</span>\n      <span class=\"hljs-attr\">account:</span> <span class=\"hljs-string\">'xxxx'</span>\n      <span class=\"hljs-attr\">canonical:</span> <span class=\"hljs-literal\">false</span>\n      <span class=\"hljs-attr\">remote:</span> <span class=\"hljs-literal\">false</span>\n      <span class=\"hljs-attr\">url:</span> <span class=\"hljs-string\">'https://%account%.twic.pics/%image_url%?twic=v1/resize=%width%/quality=%quality%/output=%format%'</span></code></pre>\n<p>In the TwicPics dashboard, set the <strong>Source URL</strong> to your website <code translate=\"no\">baseurl</code>.</p>\n<h2 id=\"imgix\">imgix<a class=\"heading-anchor\" href=\"#imgix\" aria-hidden=\"true\" tabindex=\"-1\"></a></h2>\n<p><a href=\"https://imgix.com\" target=\"_blank\" rel=\"noopener noreferrer\">https://imgix.com</a></p>\n<pre data-lang=\"yaml\"><code class=\"language-yaml hljs yaml\" translate=\"no\"><span class=\"hljs-attr\">assets:</span>\n  <span class=\"hljs-attr\">images:</span>\n    <span class=\"hljs-attr\">cdn:</span>\n      <span class=\"hljs-attr\">enabled:</span> <span class=\"hljs-literal\">true</span>\n      <span class=\"hljs-attr\">account:</span> <span class=\"hljs-string\">'xxxx'</span>\n      <span class=\"hljs-attr\">canonical:</span> <span class=\"hljs-literal\">false</span>\n      <span class=\"hljs-attr\">remote:</span> <span class=\"hljs-literal\">false</span>\n      <span class=\"hljs-attr\">url:</span> <span class=\"hljs-string\">'https://%account%.imgix.net/%image_url%?w=%width%&amp;q=%quality%&amp;fm=%format%'</span></code></pre>\n<p>In the imgix dashboard, set the <strong>Base URL</strong> of the source to your website <code translate=\"no\">baseurl</code>.</p>\n<h2 id=\"netlify-image-cdn\">Netlify Image CDN<a class=\"heading-anchor\" href=\"#netlify-image-cdn\" aria-hidden=\"true\" tabindex=\"-1\"></a></h2>\n<p><a href=\"https://docs.netlify.com/image-cdn/overview/\" target=\"_blank\" rel=\"noopener noreferrer\">https://docs.netlify.com/image-cdn/overview/</a></p>\n<pre data-lang=\"yaml\"><code class=\"language-yaml hljs yaml\" translate=\"no\"><span class=\"hljs-attr\">assets:</span>\n  <span class=\"hljs-attr\">images:</span>\n    <span class=\"hljs-attr\">cdn:</span>\n      <span class=\"hljs-attr\">enabled:</span> <span class=\"hljs-literal\">true</span>\n      <span class=\"hljs-attr\">canonical:</span> <span class=\"hljs-literal\">false</span>\n      <span class=\"hljs-attr\">url:</span> <span class=\"hljs-string\">'/.netlify/images?url=%image_url%&amp;w=%width%&amp;fm=%format%'</span></code></pre>\n<h3 id=\"run-locally\">Run locally<a class=\"heading-anchor\" href=\"#run-locally\" aria-hidden=\"true\" tabindex=\"-1\"></a></h3>\n<div class=\"note note-steps\" id=\"note-steps-1\">\n  <ol class=\"note-steps-list\">\n    <li class=\"note-step\">\n      <h4 id=\"setup-netlify-cli\">Setup Netlify CLI</h4>\n      <pre data-lang=\"bash\"><code class=\"language-bash hljs bash\" translate=\"no\">npm install netlify-cli -g\nnetlify link</code></pre>\n<p><code translate=\"no\">netlify.toml</code>:</p>\n<pre data-lang=\"toml\"><code class=\"language-toml hljs ini\" translate=\"no\"><span class=\"hljs-section\">[dev]</span>\n  targetPort = 8000</code></pre>\n    </li>\n    <li class=\"note-step\">\n      <h4 id=\"run-local-server\">Run local server</h4>\n      <pre data-lang=\"bash\"><code class=\"language-bash hljs bash\" translate=\"no\">php cecil.phar serve &amp; netlify dev</code></pre>\n<p>On Windows, run <code translate=\"no\">php cecil.phar serve</code> and <code translate=\"no\">netlify dev</code> in two separate terminals.</p>\n<p>Open <a href=\"http://localhost:8888\" target=\"_blank\" rel=\"noopener noreferrer\">http://localhost:8888</a></p>\n    </li>\n  </ol>\n</div>",
      "language": "en"
    },
    {
      "id": "https://cloudflare.cecil.app/documentation/assets/images/",
      "url": "https://cloudflare.cecil.app/documentation/assets/images/",
      "title": "Images",
      "summary": "Resize, crop and convert images, generate responsive images and placeholders.",
      "date_published": "2021-05-07T00:00:00+00:00",
      "date_modified": "2026-10-20T00:00:00+00:00","content_text": "Images\nCecil provides Twig functions and filters to resize, crop and convert images, and to generate responsive images and placeholders.\nimage_srcset\nBuilds the HTML img srcset (responsive) attribute of an image asset.\n{{ image_srcset(asset) }}\nExample:\n{% set asset = asset(image_path) %}\n&lt;img src=\"{{ url(asset) }}\" width=\"{{ asset.width }}\" height=\"{{ asset.height }}\" alt=\"\" class=\"asset\" srcset=\"{{ image_srcset(asset) }}\" sizes=\"{{ image_sizes('asset') }}\"&gt;\nimage_sizes\nReturns the HTML img sizes attribute based on a CSS class name (see assets.images.responsive.sizes).\nIt should be used in conjunction with the image_srcset function (see the example above).\n{{ image_sizes('class') }}\nimage_from_website\nBuilds the HTML img element from a website URL by extracting its illustration image.\nReturns null if no image is found.\n{{ image_from_website('url', {attributes}, {options}) }}\nCandidates are searched in the page HTML in the following order; the first one that can be downloaded as an image is used:\n\nOpen Graph: og:image:secure_url, og:image, og:image:url\nTwitter: twitter:image, twitter:image:src\n&lt;link rel=\"image_src\"&gt;\nMicrodata: itemprop=\"image\"\nJSON-LD: image property\nFirst &lt;img&gt; of &lt;article&gt;, &lt;main&gt; or &lt;body&gt;\n&lt;link rel=\"apple-touch-icon\"&gt;\n&lt;link rel=\"icon\"&gt;\n\nRelative URLs are resolved against &lt;base href&gt; or the page URL.\nThe resolved image URL and the downloaded image are cached (see cache.assets.remote.ttl).\nOptions:\n\nfallback: image path (or URL) used if no image is found\nother image options (e.g.: responsive, formats)\n\nExamples:\n{{ image_from_website('https:\/\/example.com\/page-with-image.html') }}\n\n{# with a fallback image #}\n{{ image_from_website('https:\/\/example.com\/', {alt: 'Illustration'}, {fallback: 'images\/default.png'}) }}\nresize\nResizes an image to a specified width (in pixels) and\/or height (in pixels).\n\nIf only the width is specified, the height is calculated to preserve the aspect ratio\nIf only the height is specified, the width is calculated to preserve the aspect ratio\nIf both width and height are specified, the image is resized to fit within the given dimensions, then cropped and centered if necessary\nIf remove_animation is true, any animation in the image (e.g.: GIF) is removed\n\n{{ asset(image_path)|resize(width: width, height: height, remove_animation: bool) }}\nThe original file is not altered: the resized version is saved at \/thumbnails\/&lt;width&gt;x&lt;height&gt;\/&lt;path&gt; (prefixed by assets.target if set).\nICO files are supported: the largest icon is resized and saved as a single icon ICO file (PNG compressed). Icons stored as BMP with a color depth other than 24 or 32 bits require the Imagick PHP extension: otherwise, the original ICO file is kept and a warning is logged.\nExamples:\n{{ asset(page.image)|resize(300) }}\n{# equivalent to: #}\n{{ asset(page.image)|resize(width: 300) }}\n{# resizes to 200px height, width auto-calculated to preserve aspect ratio #}\n{{ asset(page.image)|resize(height: 200) }}\n{# resizes to 300px width and 200px height, and crops if necessary #}\n{{ asset(page.image)|resize(300, 200) }}\n{# removes any animation from the image #}\n{{ asset(page.image)|resize(width: 1200, height: 630, remove_animation: true) }}\ncover\nResizes an image to a specified width and height, cropping it if necessary.\nThe cover filter is deprecated since version 8.77 and will be removed in future versions. Use the resize filter instead, with both width and height parameters.\n{{ asset(image_path)|cover(width, height) }}\nExample:\n{{ asset(page.image)|cover(1200, 630) }}\nmaskable\nAdds padding, as a percentage of the image size (20 by default), to an image to make it maskable.\n{{ asset(image_path)|maskable(padding) }}\nExample:\n{{ asset('icon.png')|maskable }}\nwebp\nConverts an image to WebP format, with an optional quality (default: assets.images.quality).\n{{ asset(image_path)|webp(quality) }}\nExample:\n&lt;picture&gt;\n    &lt;source type=\"image\/webp\" srcset=\"{{ asset(image_path)|webp }}\"&gt;\n    &lt;img src=\"{{ url(asset(image_path)) }}\" width=\"{{ asset(image_path).width }}\" height=\"{{ asset(image_path).height }}\" alt=\"\"&gt;\n&lt;\/picture&gt;\navif\nConverts an image to AVIF format, with an optional quality (default: assets.images.quality).\n{{ asset(image_path)|avif(quality) }}\nExample:\n&lt;picture&gt;\n    &lt;source type=\"image\/avif\" srcset=\"{{ asset(image_path)|avif(60) }}\"&gt;\n    &lt;img src=\"{{ url(asset(image_path)) }}\" width=\"{{ asset(image_path).width }}\" height=\"{{ asset(image_path).height }}\" alt=\"\"&gt;\n&lt;\/picture&gt;\nWebP and AVIF support depends on the image driver available (Imagick, libvips or GD). The html function skips alternative formats (formats option) not supported by the driver.\nlqip\nReturns a Low Quality Image Placeholder (100 px wide, blurred) as data URL.\n{{ asset(image_path)|lqip }}\ndominant_color\nReturns the dominant color of an image, as a CSS color value (e.g. rgb(120 85 60)).\n{{ asset(image_path)|dominant_color }}",
      "content_html": "<h1>Images</h1>\n<p>Cecil provides Twig functions and filters to resize, crop and convert images, and to generate responsive images and placeholders.</p>\n<h2 id=\"image-srcset\">image_srcset<a class=\"heading-anchor\" href=\"#image-srcset\" aria-hidden=\"true\" tabindex=\"-1\"></a></h2>\n<p>Builds the HTML img <code translate=\"no\">srcset</code> (responsive) attribute of an image asset.</p>\n<pre data-lang=\"twig\"><code class=\"language-twig hljs twig\" translate=\"no\"><span class=\"hljs-template-variable\">{{ image_srcset(asset) }}</span></code></pre>\n<p><em>Example:</em></p>\n<pre data-lang=\"twig\"><code class=\"language-twig hljs twig\" translate=\"no\"><span class=\"hljs-template-tag\">{% <span class=\"hljs-name\"><span class=\"hljs-keyword\">set</span></span> asset = asset(image_path) %}</span><span class=\"xml\">\n<span class=\"hljs-tag\">&lt;<span class=\"hljs-name\">img</span> <span class=\"hljs-attr\">src</span>=<span class=\"hljs-string\">\"</span></span></span><span class=\"hljs-template-variable\">{{ url(asset) }}</span><span class=\"xml\"><span class=\"hljs-tag\"><span class=\"hljs-string\">\"</span> <span class=\"hljs-attr\">width</span>=<span class=\"hljs-string\">\"</span></span></span><span class=\"hljs-template-variable\">{{ asset.width }}</span><span class=\"xml\"><span class=\"hljs-tag\"><span class=\"hljs-string\">\"</span> <span class=\"hljs-attr\">height</span>=<span class=\"hljs-string\">\"</span></span></span><span class=\"hljs-template-variable\">{{ asset.height }}</span><span class=\"xml\"><span class=\"hljs-tag\"><span class=\"hljs-string\">\"</span> <span class=\"hljs-attr\">alt</span>=<span class=\"hljs-string\">\"\"</span> <span class=\"hljs-attr\">class</span>=<span class=\"hljs-string\">\"asset\"</span> <span class=\"hljs-attr\">srcset</span>=<span class=\"hljs-string\">\"</span></span></span><span class=\"hljs-template-variable\">{{ image_srcset(asset) }}</span><span class=\"xml\"><span class=\"hljs-tag\"><span class=\"hljs-string\">\"</span> <span class=\"hljs-attr\">sizes</span>=<span class=\"hljs-string\">\"</span></span></span><span class=\"hljs-template-variable\">{{ image_sizes('asset') }}</span><span class=\"xml\"><span class=\"hljs-tag\"><span class=\"hljs-string\">\"</span>&gt;</span></span></code></pre>\n<h2 id=\"image-sizes\">image_sizes<a class=\"heading-anchor\" href=\"#image-sizes\" aria-hidden=\"true\" tabindex=\"-1\"></a></h2>\n<p>Returns the HTML img <code translate=\"no\">sizes</code> attribute based on a CSS class name (see <a href=\"../configuration/6-assets.md#assets-images\"><code translate=\"no\">assets.images.responsive.sizes</code></a>).</p>\n<p>It should be used in conjunction with the <a href=\"#image-srcset\"><code translate=\"no\">image_srcset</code></a> function (see the example above).</p>\n<pre data-lang=\"twig\"><code class=\"language-twig hljs twig\" translate=\"no\"><span class=\"hljs-template-variable\">{{ image_sizes('class') }}</span></code></pre>\n<h2 id=\"image-from-website\">image_from_website<a class=\"heading-anchor\" href=\"#image-from-website\" aria-hidden=\"true\" tabindex=\"-1\"></a></h2>\n<p>Builds the HTML img element from a website URL by extracting its illustration image.\nReturns <code translate=\"no\">null</code> if no image is found.</p>\n<pre data-lang=\"twig\"><code class=\"language-twig hljs twig\" translate=\"no\"><span class=\"hljs-template-variable\">{{ image_from_website('url', {attributes}, {options}) }}</span></code></pre>\n<p>Candidates are searched in the page HTML in the following order; the first one that can be downloaded as an image is used:</p>\n<ol>\n<li>Open Graph: <code translate=\"no\">og:image:secure_url</code>, <code translate=\"no\">og:image</code>, <code translate=\"no\">og:image:url</code></li>\n<li>Twitter: <code translate=\"no\">twitter:image</code>, <code translate=\"no\">twitter:image:src</code></li>\n<li><code translate=\"no\">&lt;link rel=\"image_src\"&gt;</code></li>\n<li>Microdata: <code translate=\"no\">itemprop=\"image\"</code></li>\n<li>JSON-LD: <code translate=\"no\">image</code> property</li>\n<li>First <code translate=\"no\">&lt;img&gt;</code> of <code translate=\"no\">&lt;article&gt;</code>, <code translate=\"no\">&lt;main&gt;</code> or <code translate=\"no\">&lt;body&gt;</code></li>\n<li><code translate=\"no\">&lt;link rel=\"apple-touch-icon\"&gt;</code></li>\n<li><code translate=\"no\">&lt;link rel=\"icon\"&gt;</code></li>\n</ol>\n<p>Relative URLs are resolved against <code translate=\"no\">&lt;base href&gt;</code> or the page URL.</p>\n<p>The resolved image URL and the downloaded image are cached (see <a href=\"../configuration/9-cache.md#cache-assets-remote-ttl\"><code translate=\"no\">cache.assets.remote.ttl</code></a>).</p>\n<p>Options:</p>\n<ul>\n<li><code translate=\"no\">fallback</code>: image path (or URL) used if no image is found</li>\n<li>other <a href=\"../templates/reference/1-functions.md#html\"><code translate=\"no\">image</code></a> options (e.g.: <code translate=\"no\">responsive</code>, <code translate=\"no\">formats</code>)</li>\n</ul>\n<p><em>Examples:</em></p>\n<pre data-lang=\"twig\"><code class=\"language-twig hljs twig\" translate=\"no\"><span class=\"hljs-template-variable\">{{ image_from_website('https://example.com/page-with-image.html') }}</span><span class=\"xml\">\n\n</span><span class=\"hljs-comment\">{# with a fallback image #}</span><span class=\"xml\">\n</span><span class=\"hljs-template-variable\">{{ image_from_website('https://example.com/', {alt: 'Illustration'}, {fallback: 'images/default.png'}) }}</span></code></pre>\n<h2 id=\"resize\">resize<a class=\"heading-anchor\" href=\"#resize\" aria-hidden=\"true\" tabindex=\"-1\"></a></h2>\n<p>Resizes an image to a specified width (in pixels) and/or height (in pixels).</p>\n<ul>\n<li>If only the width is specified, the height is calculated to preserve the aspect ratio</li>\n<li>If only the height is specified, the width is calculated to preserve the aspect ratio</li>\n<li>If both width and height are specified, the image is resized to fit within the given dimensions, then cropped and centered if necessary</li>\n<li>If <code translate=\"no\">remove_animation</code> is <code translate=\"no\">true</code>, any animation in the image (e.g.: GIF) is removed</li>\n</ul>\n<pre data-lang=\"twig\"><code class=\"language-twig hljs twig\" translate=\"no\"><span class=\"hljs-template-variable\">{{ asset(image_path)|resize(width: width, height: height, remove_animation: bool) }}</span></code></pre>\n<aside class=\"note note-info\"><p>The original file is not altered: the resized version is saved at <code translate=\"no\">/thumbnails/&lt;width&gt;x&lt;height&gt;/&lt;path&gt;</code> (prefixed by <a href=\"../configuration/6-assets.md#assets-target\"><code translate=\"no\">assets.target</code></a> if set).</p></aside>\n<aside class=\"note note-tip\"><p>ICO files are supported: the largest icon is resized and saved as a single icon ICO file (PNG compressed). Icons stored as BMP with a color depth other than 24 or 32 bits require the <a href=\"https://www.php.net/manual/book.imagick.php\" target=\"_blank\" rel=\"noopener noreferrer\">Imagick</a> PHP extension: otherwise, the original ICO file is kept and a warning is logged.</p></aside>\n<p><em>Examples:</em></p>\n<pre data-lang=\"twig\"><code class=\"language-twig hljs twig\" translate=\"no\"><span class=\"hljs-template-variable\">{{ asset(page.image)|resize(300) }}</span><span class=\"xml\">\n</span><span class=\"hljs-comment\">{# equivalent to: #}</span><span class=\"xml\">\n</span><span class=\"hljs-template-variable\">{{ asset(page.image)|resize(width: 300) }}</span><span class=\"xml\">\n</span><span class=\"hljs-comment\">{# resizes to 200px height, width auto-calculated to preserve aspect ratio #}</span><span class=\"xml\">\n</span><span class=\"hljs-template-variable\">{{ asset(page.image)|resize(height: 200) }}</span><span class=\"xml\">\n</span><span class=\"hljs-comment\">{# resizes to 300px width and 200px height, and crops if necessary #}</span><span class=\"xml\">\n</span><span class=\"hljs-template-variable\">{{ asset(page.image)|resize(300, 200) }}</span><span class=\"xml\">\n</span><span class=\"hljs-comment\">{# removes any animation from the image #}</span><span class=\"xml\">\n</span><span class=\"hljs-template-variable\">{{ asset(page.image)|resize(width: 1200, height: 630, remove_animation: true) }}</span></code></pre>\n<h2 id=\"cover\">cover<a class=\"heading-anchor\" href=\"#cover\" aria-hidden=\"true\" tabindex=\"-1\"></a></h2>\n<p>Resizes an image to a specified width and height, cropping it if necessary.</p>\n<aside class=\"note note-warning\"><p>The <code translate=\"no\">cover</code> filter is deprecated since version <ins>8.77</ins> and will be removed in future versions. Use the <a href=\"#resize\"><code translate=\"no\">resize</code></a> filter instead, with both width and height parameters.</p></aside>\n<pre data-lang=\"twig\"><code class=\"language-twig hljs twig\" translate=\"no\"><span class=\"hljs-template-variable\">{{ asset(image_path)|cover(width, height) }}</span></code></pre>\n<p><em>Example:</em></p>\n<pre data-lang=\"twig\"><code class=\"language-twig hljs twig\" translate=\"no\"><span class=\"hljs-template-variable\">{{ asset(page.image)|cover(1200, 630) }}</span></code></pre>\n<h2 id=\"maskable\">maskable<a class=\"heading-anchor\" href=\"#maskable\" aria-hidden=\"true\" tabindex=\"-1\"></a></h2>\n<p>Adds padding, as a percentage of the image size (<code translate=\"no\">20</code> by default), to an image to make it maskable.</p>\n<pre data-lang=\"twig\"><code class=\"language-twig hljs twig\" translate=\"no\"><span class=\"hljs-template-variable\">{{ asset(image_path)|maskable(padding) }}</span></code></pre>\n<p><em>Example:</em></p>\n<pre data-lang=\"twig\"><code class=\"language-twig hljs twig\" translate=\"no\"><span class=\"hljs-template-variable\">{{ asset('icon.png')|maskable }}</span></code></pre>\n<h2 id=\"webp\">webp<a class=\"heading-anchor\" href=\"#webp\" aria-hidden=\"true\" tabindex=\"-1\"></a></h2>\n<p>Converts an image to <a href=\"https://developers.google.com/speed/webp\" target=\"_blank\" rel=\"noopener noreferrer\">WebP</a> format, with an optional quality (default: <a href=\"../configuration/6-assets.md#assets-images\"><code translate=\"no\">assets.images.quality</code></a>).</p>\n<pre data-lang=\"twig\"><code class=\"language-twig hljs twig\" translate=\"no\"><span class=\"hljs-template-variable\">{{ asset(image_path)|webp(quality) }}</span></code></pre>\n<p><em>Example:</em></p>\n<pre data-lang=\"twig\"><code class=\"language-twig hljs twig\" translate=\"no\"><span class=\"xml\"><span class=\"hljs-tag\">&lt;<span class=\"hljs-name\">picture</span>&gt;</span>\n    <span class=\"hljs-tag\">&lt;<span class=\"hljs-name\">source</span> <span class=\"hljs-attr\">type</span>=<span class=\"hljs-string\">\"image/webp\"</span> <span class=\"hljs-attr\">srcset</span>=<span class=\"hljs-string\">\"</span></span></span><span class=\"hljs-template-variable\">{{ asset(image_path)|webp }}</span><span class=\"xml\"><span class=\"hljs-tag\"><span class=\"hljs-string\">\"</span>&gt;</span>\n    <span class=\"hljs-tag\">&lt;<span class=\"hljs-name\">img</span> <span class=\"hljs-attr\">src</span>=<span class=\"hljs-string\">\"</span></span></span><span class=\"hljs-template-variable\">{{ url(asset(image_path)) }}</span><span class=\"xml\"><span class=\"hljs-tag\"><span class=\"hljs-string\">\"</span> <span class=\"hljs-attr\">width</span>=<span class=\"hljs-string\">\"</span></span></span><span class=\"hljs-template-variable\">{{ asset(image_path).width }}</span><span class=\"xml\"><span class=\"hljs-tag\"><span class=\"hljs-string\">\"</span> <span class=\"hljs-attr\">height</span>=<span class=\"hljs-string\">\"</span></span></span><span class=\"hljs-template-variable\">{{ asset(image_path).height }}</span><span class=\"xml\"><span class=\"hljs-tag\"><span class=\"hljs-string\">\"</span> <span class=\"hljs-attr\">alt</span>=<span class=\"hljs-string\">\"\"</span>&gt;</span>\n<span class=\"hljs-tag\">&lt;/<span class=\"hljs-name\">picture</span>&gt;</span></span></code></pre>\n<h2 id=\"avif\">avif<a class=\"heading-anchor\" href=\"#avif\" aria-hidden=\"true\" tabindex=\"-1\"></a></h2>\n<p>Converts an image to <a href=\"https://github.com/AOMediaCodec/libavif\" target=\"_blank\" rel=\"noopener noreferrer\">AVIF</a> format, with an optional quality (default: <a href=\"../configuration/6-assets.md#assets-images\"><code translate=\"no\">assets.images.quality</code></a>).</p>\n<pre data-lang=\"twig\"><code class=\"language-twig hljs twig\" translate=\"no\"><span class=\"hljs-template-variable\">{{ asset(image_path)|avif(quality) }}</span></code></pre>\n<p><em>Example:</em></p>\n<pre data-lang=\"twig\"><code class=\"language-twig hljs twig\" translate=\"no\"><span class=\"xml\"><span class=\"hljs-tag\">&lt;<span class=\"hljs-name\">picture</span>&gt;</span>\n    <span class=\"hljs-tag\">&lt;<span class=\"hljs-name\">source</span> <span class=\"hljs-attr\">type</span>=<span class=\"hljs-string\">\"image/avif\"</span> <span class=\"hljs-attr\">srcset</span>=<span class=\"hljs-string\">\"</span></span></span><span class=\"hljs-template-variable\">{{ asset(image_path)|avif(60) }}</span><span class=\"xml\"><span class=\"hljs-tag\"><span class=\"hljs-string\">\"</span>&gt;</span>\n    <span class=\"hljs-tag\">&lt;<span class=\"hljs-name\">img</span> <span class=\"hljs-attr\">src</span>=<span class=\"hljs-string\">\"</span></span></span><span class=\"hljs-template-variable\">{{ url(asset(image_path)) }}</span><span class=\"xml\"><span class=\"hljs-tag\"><span class=\"hljs-string\">\"</span> <span class=\"hljs-attr\">width</span>=<span class=\"hljs-string\">\"</span></span></span><span class=\"hljs-template-variable\">{{ asset(image_path).width }}</span><span class=\"xml\"><span class=\"hljs-tag\"><span class=\"hljs-string\">\"</span> <span class=\"hljs-attr\">height</span>=<span class=\"hljs-string\">\"</span></span></span><span class=\"hljs-template-variable\">{{ asset(image_path).height }}</span><span class=\"xml\"><span class=\"hljs-tag\"><span class=\"hljs-string\">\"</span> <span class=\"hljs-attr\">alt</span>=<span class=\"hljs-string\">\"\"</span>&gt;</span>\n<span class=\"hljs-tag\">&lt;/<span class=\"hljs-name\">picture</span>&gt;</span></span></code></pre>\n<aside class=\"note note-info\"><p>WebP and AVIF support depends on the image driver available (Imagick, libvips or GD). The <code translate=\"no\">html</code> function skips alternative formats (<code translate=\"no\">formats</code> option) not supported by the driver.</p></aside>\n<h2 id=\"lqip\">lqip<a class=\"heading-anchor\" href=\"#lqip\" aria-hidden=\"true\" tabindex=\"-1\"></a></h2>\n<p>Returns a <a href=\"https://www.guypo.com/introducing-lqip-low-quality-image-placeholders\" target=\"_blank\" rel=\"noopener noreferrer\">Low Quality Image Placeholder</a> (100 px wide, blurred) as data URL.</p>\n<pre data-lang=\"twig\"><code class=\"language-twig hljs twig\" translate=\"no\"><span class=\"hljs-template-variable\">{{ asset(image_path)|lqip }}</span></code></pre>\n<h2 id=\"dominant-color\">dominant_color<a class=\"heading-anchor\" href=\"#dominant-color\" aria-hidden=\"true\" tabindex=\"-1\"></a></h2>\n<p>Returns the dominant color of an image, as a <a href=\"https://developer.mozilla.org/en-US/docs/Web/CSS/color_value/rgb\" target=\"_blank\" rel=\"noopener noreferrer\">CSS color value</a> (e.g. <code translate=\"no\">rgb(120 85 60)</code>).</p>\n<pre data-lang=\"twig\"><code class=\"language-twig hljs twig\" translate=\"no\"><span class=\"hljs-template-variable\">{{ asset(image_path)|dominant_color }}</span></code></pre>",
      "language": "en"
    },
    {
      "id": "https://cloudflare.cecil.app/documentation/assets/processing/",
      "url": "https://cloudflare.cecil.app/documentation/assets/processing/",
      "title": "CSS, JavaScript and processing",
      "summary": "Compile Sass, minify, fingerprint, inline or embed assets.",
      "date_published": "2021-05-07T00:00:00+00:00",
      "date_modified": "2026-10-16T00:00:00+00:00","content_text": "CSS, JavaScript and processing\nCecil provides Twig filters to compile Sass, minify, fingerprint, inline or embed (as data URL) CSS and JavaScript assets.\nfingerprint\nAdds a hash of the file content (fingerprint) to the file name.\n{{ asset(path)|fingerprint }}\n{{ path|fingerprint }}\nExample:\n{{ asset('styles.css')|fingerprint }}\nminify\nMinifies a CSS or a JavaScript file.\n{{ asset(path)|minify }}\n{{ path|minify }}\nExamples:\n{{ asset('styles.css')|minify }}\n{{ asset('scripts.js')|minify }}\nminify_css\nMinifies a CSS string.\n{{ variable|minify_css }}\n{% apply minify_css %}\n{# CSS here #}\n{% endapply %}\nExamples:\n{% set styles = 'some CSS here' %}\n{{ styles|minify_css }}\n&lt;style&gt;\n{% apply minify_css %}\n  html {\n    background-color: #fcfcfc;\n    color: #444;\n  }\n{% endapply %}\n&lt;\/style&gt;\nminify_js\nMinifies a JavaScript string.\n{{ variable|minify_js }}\n{% apply minify_js %}\n{# JavaScript here #}\n{% endapply %}\nExamples:\n{% set script = 'some JavaScript here' %}\n{{ script|minify_js }}\n&lt;script&gt;\n{% apply minify_js %}\n  var test = 'test';\n  console.log(test);\n{% endapply %}\n&lt;\/script&gt;\nscss_to_css\nCompiles a Sass string to CSS.\n{{ variable|scss_to_css }}\n{% apply scss_to_css %}\n{# SCSS here #}\n{% endapply %}\nAlias: sass_to_css.\nExamples:\n{% set scss = 'some SCSS here' %}\n{{ scss|scss_to_css }}\n&lt;style&gt;\n{% apply scss_to_css %}\n  $color: #fcfcfc;\n  div {\n    color: lighten($color, 20%);\n  }\n{% endapply %}\n&lt;\/style&gt;\nto_css\nCompiles a Sass file to CSS.\n{{ asset(path)|to_css }}\n{{ path|to_css }}\nExample:\n{{ asset('styles.scss')|to_css }}\ninline\nOutputs the content of an Asset.\n{{ asset(path)|inline }}\nExample:\n{{ asset('styles.css')|inline }}\ndataurl\nReturns the data URL of an asset (or of a path).\nRaster images are re-encoded with the assets.images.quality option; other files (including SVG) are encoded as is in Base64.\n{{ asset(path)|dataurl }}\n{{ path|dataurl }}\nExample:\n&lt;img src=\"{{ asset('icon.png')|dataurl }}\" alt=\"\"&gt;",
      "content_html": "<h1>CSS, JavaScript and processing</h1>\n<p>Cecil provides Twig filters to compile Sass, minify, fingerprint, inline or embed (as data URL) CSS and JavaScript assets.</p>\n<h2 id=\"fingerprint\">fingerprint<a class=\"heading-anchor\" href=\"#fingerprint\" aria-hidden=\"true\" tabindex=\"-1\"></a></h2>\n<p>Adds a hash of the file content (fingerprint) to the file name.</p>\n<pre data-lang=\"twig\"><code class=\"language-twig hljs twig\" translate=\"no\"><span class=\"hljs-template-variable\">{{ asset(path)|fingerprint }}</span><span class=\"xml\">\n</span><span class=\"hljs-template-variable\">{{ path|fingerprint }}</span></code></pre>\n<p><em>Example:</em></p>\n<pre data-lang=\"twig\"><code class=\"language-twig hljs twig\" translate=\"no\"><span class=\"hljs-template-variable\">{{ asset('styles.css')|fingerprint }}</span></code></pre>\n<h2 id=\"minify\">minify<a class=\"heading-anchor\" href=\"#minify\" aria-hidden=\"true\" tabindex=\"-1\"></a></h2>\n<p>Minifies a CSS or a JavaScript file.</p>\n<pre data-lang=\"twig\"><code class=\"language-twig hljs twig\" translate=\"no\"><span class=\"hljs-template-variable\">{{ asset(path)|minify }}</span><span class=\"xml\">\n</span><span class=\"hljs-template-variable\">{{ path|minify }}</span></code></pre>\n<p><em>Examples:</em></p>\n<pre data-lang=\"twig\"><code class=\"language-twig hljs twig\" translate=\"no\"><span class=\"hljs-template-variable\">{{ asset('styles.css')|minify }}</span><span class=\"xml\">\n</span><span class=\"hljs-template-variable\">{{ asset('scripts.js')|minify }}</span></code></pre>\n<h2 id=\"minify-css\">minify_css<a class=\"heading-anchor\" href=\"#minify-css\" aria-hidden=\"true\" tabindex=\"-1\"></a></h2>\n<p>Minifies a CSS string.</p>\n<pre data-lang=\"twig\"><code class=\"language-twig hljs twig\" translate=\"no\"><span class=\"hljs-template-variable\">{{ variable|minify_css }}</span></code></pre>\n<pre data-lang=\"twig\"><code class=\"language-twig hljs twig\" translate=\"no\"><span class=\"hljs-template-tag\">{% <span class=\"hljs-name\"><span class=\"hljs-keyword\">apply</span></span> minify_css %}</span><span class=\"xml\">\n</span><span class=\"hljs-comment\">{# CSS here #}</span><span class=\"xml\">\n</span><span class=\"hljs-template-tag\">{% <span class=\"hljs-name\"><span class=\"hljs-keyword\">endapply</span></span> %}</span></code></pre>\n<p><em>Examples:</em></p>\n<pre data-lang=\"twig\"><code class=\"language-twig hljs twig\" translate=\"no\"><span class=\"hljs-template-tag\">{% <span class=\"hljs-name\"><span class=\"hljs-keyword\">set</span></span> styles = 'some CSS here' %}</span><span class=\"xml\">\n</span><span class=\"hljs-template-variable\">{{ styles|minify_css }}</span></code></pre>\n<pre data-lang=\"twig\"><code class=\"language-twig hljs twig\" translate=\"no\"><span class=\"xml\"><span class=\"hljs-tag\">&lt;<span class=\"hljs-name\">style</span>&gt;</span>\n</span><span class=\"hljs-template-tag\">{% <span class=\"hljs-name\"><span class=\"hljs-keyword\">apply</span></span> minify_css %}</span><span class=\"xml\"><span class=\"css\">\n  <span class=\"hljs-selector-tag\">html</span> {\n    <span class=\"hljs-attribute\">background-color</span>: <span class=\"hljs-number\">#fcfcfc</span>;\n    <span class=\"hljs-attribute\">color</span>: <span class=\"hljs-number\">#444</span>;\n  }\n</span></span><span class=\"hljs-template-tag\">{% <span class=\"hljs-name\"><span class=\"hljs-keyword\">endapply</span></span> %}</span><span class=\"xml\">\n<span class=\"hljs-tag\">&lt;/<span class=\"hljs-name\">style</span>&gt;</span></span></code></pre>\n<h2 id=\"minify-js\">minify_js<a class=\"heading-anchor\" href=\"#minify-js\" aria-hidden=\"true\" tabindex=\"-1\"></a></h2>\n<p>Minifies a JavaScript string.</p>\n<pre data-lang=\"twig\"><code class=\"language-twig hljs twig\" translate=\"no\"><span class=\"hljs-template-variable\">{{ variable|minify_js }}</span></code></pre>\n<pre data-lang=\"twig\"><code class=\"language-twig hljs twig\" translate=\"no\"><span class=\"hljs-template-tag\">{% <span class=\"hljs-name\"><span class=\"hljs-keyword\">apply</span></span> minify_js %}</span><span class=\"xml\">\n</span><span class=\"hljs-comment\">{# JavaScript here #}</span><span class=\"xml\">\n</span><span class=\"hljs-template-tag\">{% <span class=\"hljs-name\"><span class=\"hljs-keyword\">endapply</span></span> %}</span></code></pre>\n<p><em>Examples:</em></p>\n<pre data-lang=\"twig\"><code class=\"language-twig hljs twig\" translate=\"no\"><span class=\"hljs-template-tag\">{% <span class=\"hljs-name\"><span class=\"hljs-keyword\">set</span></span> script = 'some JavaScript here' %}</span><span class=\"xml\">\n</span><span class=\"hljs-template-variable\">{{ script|minify_js }}</span></code></pre>\n<pre data-lang=\"twig\"><code class=\"language-twig hljs twig\" translate=\"no\"><span class=\"xml\"><span class=\"hljs-tag\">&lt;<span class=\"hljs-name\">script</span>&gt;</span>\n</span><span class=\"hljs-template-tag\">{% <span class=\"hljs-name\"><span class=\"hljs-keyword\">apply</span></span> minify_js %}</span><span class=\"xml\"><span class=\"javascript\">\n  <span class=\"hljs-keyword\">var</span> test = <span class=\"hljs-string\">'test'</span>;\n  <span class=\"hljs-built_in\">console</span>.log(test);\n</span></span><span class=\"hljs-template-tag\">{% <span class=\"hljs-name\"><span class=\"hljs-keyword\">endapply</span></span> %}</span><span class=\"xml\">\n<span class=\"hljs-tag\">&lt;/<span class=\"hljs-name\">script</span>&gt;</span></span></code></pre>\n<h2 id=\"scss-to-css\">scss_to_css<a class=\"heading-anchor\" href=\"#scss-to-css\" aria-hidden=\"true\" tabindex=\"-1\"></a></h2>\n<p>Compiles a <a href=\"https://sass-lang.com\" target=\"_blank\" rel=\"noopener noreferrer\">Sass</a> string to CSS.</p>\n<pre data-lang=\"twig\"><code class=\"language-twig hljs twig\" translate=\"no\"><span class=\"hljs-template-variable\">{{ variable|scss_to_css }}</span></code></pre>\n<pre data-lang=\"twig\"><code class=\"language-twig hljs twig\" translate=\"no\"><span class=\"hljs-template-tag\">{% <span class=\"hljs-name\"><span class=\"hljs-keyword\">apply</span></span> scss_to_css %}</span><span class=\"xml\">\n</span><span class=\"hljs-comment\">{# SCSS here #}</span><span class=\"xml\">\n</span><span class=\"hljs-template-tag\">{% <span class=\"hljs-name\"><span class=\"hljs-keyword\">endapply</span></span> %}</span></code></pre>\n<p>Alias: <code translate=\"no\">sass_to_css</code>.</p>\n<p><em>Examples:</em></p>\n<pre data-lang=\"twig\"><code class=\"language-twig hljs twig\" translate=\"no\"><span class=\"hljs-template-tag\">{% <span class=\"hljs-name\"><span class=\"hljs-keyword\">set</span></span> scss = 'some SCSS here' %}</span><span class=\"xml\">\n</span><span class=\"hljs-template-variable\">{{ scss|scss_to_css }}</span></code></pre>\n<pre data-lang=\"twig\"><code class=\"language-twig hljs twig\" translate=\"no\"><span class=\"xml\"><span class=\"hljs-tag\">&lt;<span class=\"hljs-name\">style</span>&gt;</span>\n</span><span class=\"hljs-template-tag\">{% <span class=\"hljs-name\"><span class=\"hljs-keyword\">apply</span></span> scss_to_css %}</span><span class=\"xml\">\n  $color: #fcfcfc;\n  div {\n    color: lighten($color, 20%);\n  }\n</span><span class=\"hljs-template-tag\">{% <span class=\"hljs-name\"><span class=\"hljs-keyword\">endapply</span></span> %}</span><span class=\"xml\">\n<span class=\"hljs-tag\">&lt;/<span class=\"hljs-name\">style</span>&gt;</span></span></code></pre>\n<h2 id=\"to-css\">to_css<a class=\"heading-anchor\" href=\"#to-css\" aria-hidden=\"true\" tabindex=\"-1\"></a></h2>\n<p>Compiles a <a href=\"https://sass-lang.com\" target=\"_blank\" rel=\"noopener noreferrer\">Sass</a> file to CSS.</p>\n<pre data-lang=\"twig\"><code class=\"language-twig hljs twig\" translate=\"no\"><span class=\"hljs-template-variable\">{{ asset(path)|to_css }}</span><span class=\"xml\">\n</span><span class=\"hljs-template-variable\">{{ path|to_css }}</span></code></pre>\n<p><em>Example:</em></p>\n<pre data-lang=\"twig\"><code class=\"language-twig hljs twig\" translate=\"no\"><span class=\"hljs-template-variable\">{{ asset('styles.scss')|to_css }}</span></code></pre>\n<h2 id=\"inline\">inline<a class=\"heading-anchor\" href=\"#inline\" aria-hidden=\"true\" tabindex=\"-1\"></a></h2>\n<p>Outputs the content of an <em>Asset</em>.</p>\n<pre data-lang=\"twig\"><code class=\"language-twig hljs twig\" translate=\"no\"><span class=\"hljs-template-variable\">{{ asset(path)|inline }}</span></code></pre>\n<p><em>Example:</em></p>\n<pre data-lang=\"twig\"><code class=\"language-twig hljs twig\" translate=\"no\"><span class=\"hljs-template-variable\">{{ asset('styles.css')|inline }}</span></code></pre>\n<h2 id=\"dataurl\">dataurl<a class=\"heading-anchor\" href=\"#dataurl\" aria-hidden=\"true\" tabindex=\"-1\"></a></h2>\n<p>Returns the <a href=\"https://developer.mozilla.org/docs/Web/HTTP/Basics_of_HTTP/Data_URIs\" target=\"_blank\" rel=\"noopener noreferrer\">data URL</a> of an asset (or of a path).</p>\n<p>Raster images are re-encoded with the <a href=\"../configuration/6-assets.md#assets-images\"><code translate=\"no\">assets.images.quality</code></a> option; other files (including SVG) are encoded as is in Base64.</p>\n<pre data-lang=\"twig\"><code class=\"language-twig hljs twig\" translate=\"no\"><span class=\"hljs-template-variable\">{{ asset(path)|dataurl }}</span><span class=\"xml\">\n</span><span class=\"hljs-template-variable\">{{ path|dataurl }}</span></code></pre>\n<p><em>Example:</em></p>\n<pre data-lang=\"twig\"><code class=\"language-twig hljs twig\" translate=\"no\"><span class=\"xml\"><span class=\"hljs-tag\">&lt;<span class=\"hljs-name\">img</span> <span class=\"hljs-attr\">src</span>=<span class=\"hljs-string\">\"</span></span></span><span class=\"hljs-template-variable\">{{ asset('icon.png')|dataurl }}</span><span class=\"xml\"><span class=\"hljs-tag\"><span class=\"hljs-string\">\"</span> <span class=\"hljs-attr\">alt</span>=<span class=\"hljs-string\">\"\"</span>&gt;</span></span></code></pre>",
      "language": "en"
    }
  ]
}
