Title: ForgeHub Image Memory Guard
Author: WPForgeHub
Published: <strong>November 26, 2026</strong>
Last modified: November 26, 2026

---

Search plugins

![](https://ps.w.org/forgehub-image-memory-guard/assets/banner-772x250.png?rev=3825958)

![](https://ps.w.org/forgehub-image-memory-guard/assets/icon-256x256.png?rev=3825958)

# ForgeHub Image Memory Guard

 By [WPForgeHub](https://profiles.wordpress.org/wpforgehub/)

[Download](https://downloads.wordpress.org/plugin/forgehub-image-memory-guard.1.1.8.zip)

 * [Details](https://wordpress.org/plugins/forgehub-image-memory-guard/#description)
 * [Reviews](https://wordpress.org/plugins/forgehub-image-memory-guard/#reviews)
 *  [Installation](https://wordpress.org/plugins/forgehub-image-memory-guard/#installation)
 * [Development](https://wordpress.org/plugins/forgehub-image-memory-guard/#developers)

 [Support](https://wordpress.org/support/plugin/forgehub-image-memory-guard/)

## Description

One of the most common and disruptive errors in WordPress is uploading a high-resolution
photo only to encounter a generic “HTTP error” or fatal crash:

    ```
    Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 32000000 bytes)
    ```

When an image is uploaded, WordPress and GD / Imagick must decompress the full uncompressed
raster into RAM to generate intermediate thumbnails (thumbnail, medium, large, etc.).
A 15 MB photo can easily require over 180 MB of RAM during decompression!

**Image Memory Guard** prevents this catastrophic crash before it happens:

 * **Pre-Flight Memory Budget Inspection**: Inspects the binary headers of uploaded
   images (`getimagesize`) without allocating full canvas memory. Calculates exact
   memory requirement before processing begins.
 * **Smart Auto-Downscaling**: Gracefully resizes oversized images down to manageable
   master dimensions instead of crashing the PHP process.
 * **Informative Human-Friendly Error Handling**: If downscaling is disabled and
   an image exceeds server memory, gives the user an actionable warning instead 
   of breaking the Media Library.
 * **Dynamic Memory Elevation**: Safely bumps `wp_raise_memory_limit('image')` during
   active image processing.
 * **Interactive Admin Budget Calculator**: Test any image resolution against your
   server memory in real-time.

### Key Features (Free Version)

 * **Pre-Upload Memory Verification**: Protects against 500 and fatal memory exhaustion
   errors.
 * **Automatic Master Downscaling**: Keeps photos within server safe zones.
 * **Live System Diagnostics**: Monitor PHP memory limits, peak usage, and max safe
   resolutions.
 * **Memory De-allocation**: Calls garbage collection after thumbnail generation
   cycles.

### Pro Features (Separate Commercial Plugin)

Need background processing or next-gen conversion? The separate commercial Pro edition
is available at [WPForgeHub](https://wpforgehub.com/product/image-memory-guard/)
and is not bundled in this free plugin:
 * **Background Chunked Resizing**: Queue
heavy resizing tasks in the background via Action Scheduler. * **WebP & AVIF Dual
Engine**: Auto-convert uploaded images to next-gen formats with CPU throttling. ***
WP-CLI Library Audit**: Scan entire media library via command line for memory-heavy
attachments. * **EXIF Privacy Sanitizer**: Strip location and camera metadata before
decompression.

## Screenshots

[⌊Image Memory Guard admin page — live PHP memory diagnostics, upload protection
settings, and interactive memory budget calculator.⌉⌊Image Memory Guard admin page—
live PHP memory diagnostics, upload protection settings, and interactive memory 
budget calculator.⌉[

Image Memory Guard admin page — live PHP memory diagnostics, upload protection settings,
and interactive memory budget calculator.

## Installation

 1. Upload the `forgehub-image-memory-guard` folder to the `/wp-content/plugins/` directory.
 2. Activate the plugin through the ‘Plugins’ menu in WordPress.
 3. Navigate to **Settings > Image Memory Guard** to view server diagnostics and test
    image dimensions.

## FAQ

### How does Image Memory Guard protect against memory crashes?

It intercepts the upload process before image decompression occurs, calculates the
necessary RAM budget using binary header dimensions, and either elevates memory 
temporarily or downscales the master file to prevent PHP crashes.

### Does this plugin alter my original images?

Only if the image exceeds your server’s safe memory limit and you have enabled the
Auto-Downscaling feature. Otherwise, it simply prevents the crash and displays an
informative notification.

### Does this plugin require any external API or service?

No. Image Memory Guard runs entirely locally on your WordPress server with zero 
external dependencies.

## Reviews

There are no reviews for this plugin.

## Contributors & Developers

“ForgeHub Image Memory Guard” is open source software. The following people have
contributed to this plugin.

Contributors

 *   [ WPForgeHub ](https://profiles.wordpress.org/wpforgehub/)

[Translate “ForgeHub Image Memory Guard” into your language.](https://translate.wordpress.org/projects/wp-plugins/forgehub-image-memory-guard)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/forgehub-image-memory-guard/),
check out the [SVN repository](https://plugins.svn.wordpress.org/forgehub-image-memory-guard/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/forgehub-image-memory-guard/)
by [RSS](https://plugins.trac.wordpress.org/log/forgehub-image-memory-guard/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 1.1.8

 * Standardize Upgrade to Pro links to canonical `#pricing` product URL.

#### 1.1.7

 * Fix OOM auto-downscale & unlimited memory_limit handling, add admin settings 
   form, Pro AVIF/EXIF orientation/ICC/CLI fixes, strip Pro checks from Free ZIP

#### 1.1.6

 * Compliance: removed all premium/license wrapper code from the WordPress.org free
   distribution.
 * Fix: updated product links to the canonical product page and excluded WordPress.
   org directory banner/icon assets from the plugin package.

#### 1.1.5

 * Rename: plugin is now “ForgeHub Image Memory Guard” (ForgeHub naming standard).
 * Fix: Plugins screen now shows a consistent “Settings” link.

#### 1.1.4

 * Internal: option cleanup on uninstall also available through the Freemius after_uninstall
   hook (premium build).

#### 1.1.3

 * Fix: removed discouraged ini_set() call (Plugin Check warning); WordPress core
   applies the raised image memory limit.

#### 1.1.2

 * Renamed plugin and slug to meet WordPress.org naming rules (no restricted terms).

#### 1.1.0

 * Feature: Pre-flight upload memory budget calculation.
 * Feature: Dynamic memory limit boost for image processing.
 * Feature: Interactive memory budget calculator in WordPress admin.
 * Enhancement: Safe memory de-allocation via garbage collection after processing.
 * Initial stable directory release.

## Meta

 *  Version **1.1.8**
 *  Last updated **4 hours ago**
 *  Active installations **Fewer than 10**
 *  WordPress version ** 6.0 or higher **
 *  Tested up to **7.1.5**
 *  PHP version ** 7.4 or higher **
 * Tags
 * [media library](https://wordpress.org/plugins/tags/media-library/)[memory limit](https://wordpress.org/plugins/tags/memory-limit/)
 *  [Advanced View](https://wordpress.org/plugins/forgehub-image-memory-guard/advanced/)

## Ratings

No reviews have been submitted yet.

[Your review](https://wordpress.org/support/plugin/forgehub-image-memory-guard/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/forgehub-image-memory-guard/reviews/)

## Contributors

 *   [ WPForgeHub ](https://profiles.wordpress.org/wpforgehub/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/forgehub-image-memory-guard/)