{"id":11954,"date":"2026-08-22T23:46:09","date_gmt":"2026-08-23T04:46:09","guid":{"rendered":"https:\/\/infiniteuploads.com\/?post_type=docs&#038;p=11954"},"modified":"2026-08-22T23:46:09","modified_gmt":"2026-08-23T04:46:09","password":"","slug":"excluding-images-from-optimization","status":"publish","type":"docs","link":"https:\/\/infiniteuploads.com\/docs\/image-optimization\/excluding-images-from-optimization\/","title":{"rendered":"Excluding Images from Optimization"},"content":{"rendered":"<!DOCTYPE html PUBLIC \"-\/\/W3C\/\/DTD HTML 4.0 Transitional\/\/EN\" \"http:\/\/www.w3.org\/TR\/REC-html40\/loose.dtd\">\n<html><body><p class=\"wp-block-paragraph\">Most sites never need this, but if you have a specific image that must be delivered exactly as you uploaded it, the <strong>Exclusions<\/strong> field lets you tell Infinite Uploads to skip optimizing it. Excluded images are always delivered as their original file.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"when-you-might-use-it\">When you might use it<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>A <strong>logo or brand asset<\/strong> that must be pixel-exact.<\/li>\n\n\n\n<li>A <strong>screenshot or diagram<\/strong> with fine text where any compression softening isn't acceptable.<\/li>\n\n\n\n<li>A <strong>downloadable or print image<\/strong> you want served untouched.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">If you don't have a case like this, leave Exclusions blank. The whole library benefits from optimization.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"how-to-add-exclusions\">How to add exclusions<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">In the <strong>Image Optimization<\/strong> section, type your entries into the <strong>Exclusions<\/strong> box, one per line, then click <strong>Save Settings<\/strong>.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" src=\"https:\/\/infiniteuploads.com\/wp-content\/uploads\/2026\/07\/text-list-showing-exclusions-for-logo-png-and-2026-01-hero-banner-jpg.png\" alt='Text list showing exclusions for \"logo.png\" and \"\/2026\/01\/hero-banner.jpg\".' class=\"wp-image-11955\"><figcaption class=\"wp-element-caption\">Exclusions field with example entries<\/figcaption><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">You can match in two ways:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>By filename<\/strong>: enter <code>logo.png<\/code> to skip that file anywhere in your library.<\/li>\n\n\n\n<li><strong>By path<\/strong>: enter a folder fragment like <code>\/2026\/01\/<\/code> to skip everything uploaded in that month, or <code>\/brand\/<\/code> to skip a folder.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Examples:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>logo.png<\/code>: never optimize any file named <code>logo.png<\/code>.<\/li>\n\n\n\n<li><code>hero-print.jpg<\/code>: skip one specific file.<\/li>\n\n\n\n<li><code>\/2026\/01\/<\/code>: skip every image uploaded in January 2026.<\/li>\n<\/ul>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p class=\"wp-block-paragraph\">Note: You can paste a full image URL and we'll trim it down for you automatically: <code>https:\/\/xxxxx.infiniteuploads.cloud\/2026\/01\/logo.png<\/code> is stored and matched as <code>\/2026\/01\/logo.png<\/code>. Match is case-insensitive and checks whether the entry appears anywhere in the image's path, so keep entries specific enough to only catch what you intend.<\/p>\n<\/blockquote>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"how-can-i-verify-an-image-is-excluded-\">How can I verify an image is excluded?<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Visit the front end, right-click the excluded image, and choose <strong>Inspect<\/strong>. In the Network panel, reload and click the image request. The response <strong>Content-Type<\/strong> should be the original <code>image\/jpeg<\/code> or <code>image\/png<\/code> (not <code>image\/avif<\/code> or <code>image\/webp<\/code>), confirming it's being delivered untouched.<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p class=\"wp-block-paragraph\">Note: If you added an exclusion but still see a next-gen format, the previously optimized copy may still be cached. Use the <strong>Purge CDN Cache<\/strong> button to clear it, then re-check. See <a href=\"#\">Purging the CDN cache<\/a>.<\/p>\n<\/blockquote>\n<\/body><\/html>\n","protected":false},"excerpt":{"rendered":"<p>Most sites never need this, but if you have a specific image that must be delivered exactly as you uploaded it, the Exclusions field lets you tell Infinite Uploads to skip optimizing it. Excluded images are always delivered as their original file. When you might use it If you don&#8217;t have a case like this, [&hellip;]<\/p>\n","protected":false},"author":3787,"featured_media":0,"template":"","meta":{"_acf_changed":false,"wds_primary_doc_category":0,"wds_primary_doc_tag":0,"footnotes":""},"doc_category":[171],"doc_tag":[],"class_list":["post-11954","docs","type-docs","status-publish","hentry","doc_category-image-optimization"],"acf":[],"year_month":"2026-09","word_count":326,"total_views":"43","reactions":{"happy":"0","normal":"0","sad":"0"},"author_info":{"name":"Blake Whittle","author_nicename":"blakew","author_url":"https:\/\/infiniteuploads.com\/blog\/author\/blakew\/"},"doc_category_info":[{"term_name":"Image optimization","term_url":"https:\/\/infiniteuploads.com\/docs-category\/image-optimization\/"}],"doc_tag_info":[],"knowledge_base_info":[],"knowledge_base_slug":[],"_links":{"self":[{"href":"https:\/\/infiniteuploads.com\/api\/wp\/v2\/docs\/11954","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/infiniteuploads.com\/api\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/infiniteuploads.com\/api\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/infiniteuploads.com\/api\/wp\/v2\/users\/3787"}],"version-history":[{"count":0,"href":"https:\/\/infiniteuploads.com\/api\/wp\/v2\/docs\/11954\/revisions"}],"wp:attachment":[{"href":"https:\/\/infiniteuploads.com\/api\/wp\/v2\/media?parent=11954"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/infiniteuploads.com\/api\/wp\/v2\/doc_category?post=11954"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/infiniteuploads.com\/api\/wp\/v2\/doc_tag?post=11954"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}