[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"$fTVsv5iYDQQKDzr6GCbJPy91v9p2PO9N_4ACtLMwmZWY":3},{"slug":4,"display_name":5,"profile_url":6,"plugin_count":7,"total_installs":8,"avg_security_score":9,"avg_patch_time_days":10,"trust_score":11,"computed_at":12,"plugins":13},"matteobruschetti","Matteo Bruschetti","https:\u002F\u002Fprofiles.wordpress.org\u002Fmatteobruschetti\u002F",1,0,100,30,94,"2026-08-29T21:13:47.236Z",[14],{"slug":15,"name":16,"version":17,"author":5,"author_profile":6,"description":18,"short_description":19,"active_installs":8,"downloaded":20,"rating":8,"num_ratings":8,"last_updated":21,"tested_up_to":22,"requires_at_least":23,"requires_php":24,"tags":25,"homepage":31,"download_link":32,"security_score":9,"vuln_count":8,"unpatched_count":8,"last_vuln_date":33,"fetched_at":34},"firepunch-images-for-acf","FirePunch | Instant AVIF & WebP images for ACF developers","2.2.2","\u003Cp>\u003Cstrong>FirePunch\u003C\u002Fstrong> is a lightweight, 100% free plugin designed to optimize image management in WordPress by automatically converting them into next-generation \u003Cstrong>AVIF\u003C\u002Fstrong> and \u003Cstrong>WebP\u003C\u002Fstrong> formats.\u003C\u002Fp>\n\u003Cp>This tool is built specifically for web developers working with custom themes and image fields (such as \u003Cstrong>ACF – Advanced Custom Fields\u003C\u002Fstrong> or \u003Cstrong>Gutenberg blocks\u003C\u002Fstrong>).\u003C\u002Fp>\n\u003Ch3>How does it work?\u003C\u002Fh3>\n\u003Cp>\u003Cspan class=\"embed-youtube\" style=\"text-align:center; display: block;\">\u003Ciframe loading=\"lazy\" class=\"youtube-player\" width=\"750\" height=\"422\" src=\"https:\u002F\u002Fwww.youtube.com\u002Fembed\u002FoEg8D7W3K1U?version=3&rel=1&showsearch=0&showinfo=1&iv_load_policy=1&fs=1&hl=en-US&autohide=2&wmode=transparent\" allowfullscreen=\"true\" style=\"border:0;\" sandbox=\"allow-scripts allow-same-origin allow-popups allow-presentation allow-popups-to-escape-sandbox\">\u003C\u002Fiframe>\u003C\u002Fspan>\u003C\u002Fp>\n\u003Col>\n\u003Cli>\u003Cstrong>Automatic conversion:\u003C\u002Fstrong> The plugin intercepts JPG and PNG media uploads and generates variants asynchronously in the background, ensuring zero impact on server performance during your daily workflow.\u003C\u002Fli>\n\u003Cli>\u003Cstrong>Predictable URL Structure:\u003C\u002Fstrong> Converted AVIF and WebP variants are saved directly alongside the original media, making them instantly accessible by simply appending \u003Ccode>.avif\u003C\u002Fcode> or \u003Ccode>.webp\u003C\u002Fcode> to the original image URL. For example: \u003Ccode>https:\u002F\u002Fexample.com\u002Fwp-content\u002Fuploads\u002Fimmagine.jpg.webp\u003C\u002Fcode> and \u003Ccode>https:\u002F\u002Fexample.com\u002Fwp-content\u002Fuploads\u002Fimmagine.jpg.avif\u003C\u002Fcode>\u003C\u002Fli>\n\u003Cli>\u003Cstrong>Effortless Theme Integration:\u003C\u002Fstrong>  Simply call them inside your custom theme using the standard WordPress function \u003Ccode>wp_get_attachment_image()\u003C\u002Fcode> or the plugin’s dedicated helper function \u003Ccode>wp_avif_img()\u003C\u002Fcode>.\u003C\u002Fli>\n\u003Cli>\u003Cstrong>Smart HTML5 Fallback:\u003C\u002Fstrong> The plugin automatically rewrites the frontend output into a robust \u003Ccode>\u003Cpicture>\u003C\u002Fcode> tag. The browser will dynamically load the best possible format based on user compatibility, seamlessly prioritizing \u003Cstrong>AVIF\u003C\u002Fstrong>, falling back to \u003Cstrong>WebP\u003C\u002Fstrong>, and using the original \u003Cstrong>JPG\u003C\u002Fstrong> or \u003Cstrong>PNG\u003C\u002Fstrong> as the ultimate safety fallback.\u003C\u002Fli>\n\u003C\u002Fol>\n\u003Ch3>Key Features:\u003C\u002Fh3>\n\u003Cul>\n\u003Cli>\u003Cstrong>Asynchronous Background Processing:\u003C\u002Fstrong> Leverages Action Scheduler (or WP-Cron with a safety offset) to process images sequentially without locking up the server or triggering execution timeouts.\u003C\u002Fli>\n\u003Cli>\u003Cstrong>Smart Hybrid Engine:\u003C\u002Fstrong> Tries ImageMagick first for premium encoding and seamlessly falls back to GD when necessary, dynamically boosting memory limits to prevent crashes on large files.\u003C\u002Fli>\n\u003Cli>\u003Cstrong>Zero Disk I\u002FO Abuse:\u003C\u002Fstrong> Caches the status of all available file variants directly inside the attachment metadata in the database. No endless file system lookups on every single page load.\u003C\u002Fli>\n\u003Cli>\u003Cstrong>Modern HTML5 Rewriting:\u003C\u002Fstrong> Utilizes the native \u003Ccode>WP_HTML_Tag_Processor\u003C\u002Fcode> (introduced in WP 6.2) to safely rewrite \u003Ccode>\u003Cimg>\u003C\u002Fcode> tags into multi-source \u003Ccode>\u003Cpicture>\u003C\u002Fcode> structures.\u003C\u002Fli>\n\u003Cli>\u003Cstrong>Automatic Cleanup:\u003C\u002Fstrong> When an image is deleted from the media library, all associated AVIF and WebP variants are permanently removed, featuring path traversal protection.\u003C\u002Fli>\n\u003Cli>\u003Cstrong>Zero ACF Dependencies:\u003C\u002Fstrong> Built 100% WordPress-native with absolutely no reliance on Advanced Custom Fields, making it perfectly compatible with any custom theme workflow.\u003C\u002Fli>\n\u003C\u002Ful>\n\u003Ch3>Developer Guide (Custom Themes & ACF)\u003C\u002Fh3>\n\u003Cp>This plugin offers total flexibility for custom theme development. You can display optimized images using three different approaches:\u003C\u002Fp>\n\u003Ch4>1. Native Automatic Integration\u003C\u002Fh4>\n\u003Cp>If your theme already uses standard WordPress functions, you do not need to change a single line of code. The plugin automatically filters the output and injects the AVIF\u002FWebP sources:\u003C\u002Fp>\n\u003Cpre>\u003Ccode>\u003C?php echo wp_get_attachment_image( $attachment_id, 'large' ); ?>\n\u003C\u002Fcode>\u003C\u002Fpre>\n\u003Ch4>2. Using the Helper Function wp_avif_img()\u003C\u002Fh4>\n\u003Cp>If you need granular control—such as stripping away default WordPress layout classes or easily overriding loading behavior—use the plugin’s global helper function:\u003C\u002Fp>\n\u003Cpre>\u003Ccode>\u003C?php echo wp_avif_img( $attachment_id, $size, $attr ); ?>\n\u003C\u002Fcode>\u003C\u002Fpre>\n\u003Cul>\n\u003Cli>\u003Cstrong>$attachment_id\u003C\u002Fstrong> (int): The attachment ID of the image (Required).\u003C\u002Fli>\n\u003Cli>\u003Cstrong>$size\u003C\u002Fstrong> (string|array): The requested image size (‘thumbnail’, ‘medium’, ‘large’, ‘full’). Default: ‘full’.\u003C\u002Fli>\n\u003Cli>\u003Cstrong>$attr\u003C\u002Fstrong> (string|array): Simplifies attributes. You can pass ‘lazy’ or ‘eager’ directly as a string, or supply a custom HTML attribute array.\u003C\u002Fli>\n\u003C\u002Ful>\n\u003Cp>Practical Examples:\u003C\u002Fp>\n\u003Cpre>\u003Ccode>\u002F\u002F Standard output in 'large' size with native lazy loading\necho wp_avif_img( $image_id, 'large', 'lazy' );\n\n\u002F\u002F Advanced output with custom CSS classes and specific Alt text\necho wp_avif_img( $image_id, 'full', array(\n    'class' => 'hero-banner-image',\n    'alt'   => 'Optimized hero cover background'\n) );\n\u003C\u002Fcode>\u003C\u002Fpre>\n\u003Ch4>3. Advanced Custom Fields (ACF) Integration\u003C\u002Fh4>\n\u003Cp>When creating an Image field in ACF, leave the \u003Cstrong>Return Format\u003C\u002Fstrong> to \u003Cstrong>Array\u003C\u002Fstrong>. This approach allows you to dynamically extract the attachment ID for the optimization engine while safely preserving a native standard HTML fallback. In your template file, write:\u003C\u002Fp>\n\u003Cpre>\u003Ccode>\u003Cfigure>\n   \u003C?php if($acf_img_field): ?>\n      \u003C?php if ( function_exists('wp_avif_img') ) {\n         $img_id = $acf_img_field['ID'];\n         echo wp_avif_img($img_id, 'large', 'lazy');\n      } else { ?>\n         \u003Cimg loading=\"lazy\" src=\"\u003C?php echo esc_url($acf_img_field['url']); ?>\" alt=\"\u003C?php echo esc_attr( $acf_img_field['alt'] ); ?>\" \u002F>\n      \u003C?php } ?>\n   \u003C?php endif; ?>\n\u003C\u002Ffigure>\n\u003C\u002Fcode>\u003C\u002Fpre>\n","Automatic and asynchronous AVIF & WebP image optimization for custom themes and ACF fields using native HTML5 picture tags.",151,"2026-07-04T10:30:00.000Z","7.0.2","6.2","8.1",[26,27,28,29,30],"acf","avif","images","performance","webp","","https:\u002F\u002Fdownloads.wordpress.org\u002Fplugin\u002Ffirepunch-images-for-acf.2.2.2.zip",null,"2026-07-22T17:31:50.256Z"]