Title: Imsanity
Author: nosilver4u
Published: <strong>July 22, 2011</strong>
Last modified: February 10, 2026

---

Search plugins

![](https://ps.w.org/imsanity/assets/banner-772x250.png?rev=2420360)

![](https://ps.w.org/imsanity/assets/icon.svg?rev=2420360)

# Imsanity

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

[Download](https://downloads.wordpress.org/plugin/imsanity.2.9.0.zip)

 * [Details](https://wordpress.org/plugins/imsanity/#description)
 * [Reviews](https://wordpress.org/plugins/imsanity/#reviews)
 *  [Installation](https://wordpress.org/plugins/imsanity/#installation)
 * [Development](https://wordpress.org/plugins/imsanity/#developers)

 [Support](https://wordpress.org/support/plugin/imsanity/)

## Description

Automatically resize huge image uploads with Imsanity. Choose whatever size and 
quality you like, and let Imsanity do the rest. When a contributor uploads an image
that is larger than the configured size, Imsanity will automatically scale it down
to the configured size and replace the original image.

Imsanity also provides a bulk-resize feature to resize previously uploaded images
and free up disk space. You may resize individual images from the Media Library’s
List View.

This plugin is ideal for blogs that do not require hi-resolution original images
to be stored and/or the contributors don’t want (or understand how) to scale images
before uploading.

You may report security issues through our Patchstack Vulnerability Disclosure Program.
The Patchstack team helps validate, triage and handle any security vulnerabilities.
[Report a security vulnerability.](https://patchstack.com/database/vdp/imsanity)

#### Features

 * Automatically scales large image uploads to a more “sane” size
 * Bulk resize feature to resize existing images
 * Selectively resize images directly in the Media Library (List View)
 * Allows configuration of max width/height and JPG quality
 * Optionally converts BMP and PNG files to JPG for more savings
 * Once enabled, Imsanity requires no actions on the part of the user
 * Uses WordPress built-in image scaling functions

#### Translations

Imsanity is available in several languages, each of which will be downloaded automatically
when you install the plugin. To help translate it into your language, visit https://
translate.wordpress.org/projects/wp-plugins/imsanity

#### Contribute

Imsanity is developed at https://github.com/nosilver4u/imsanity (pull requests are
welcome)

### Credits

Originally written by Jason Hinkle (RIP). Maintained and developed by [Shane Bishop](https://ewww.io)
with special thanks to my [Lord and Savior](https://www.iamsecond.com/).

## Screenshots

 * [[
 * Imsanity settings page to configure max height/width
 * [[
 * Imsanity bulk image resize feature

## Installation

Automatic Installation:

 1. Go to Admin -> Plugins -> Add New and search for “imsanity”
 2. Click the Install Button
 3. Click ‘Activate’

Manual Installation:

 1. Download imsanity.zip
 2. Unzip and upload the ‘imsanity’ folder to your ‘/wp-content/plugins/’ directory
 3. Activate the plugin through the ‘Plugins’ menu in WordPress

## FAQ

### Will installing the Imsanity plugin alter existing images in my blog?

Activating Imsanity will not alter any existing images. Imsanity resizes images 
as they are uploaded so it does not affect existing images unless you specifically
use the “Bulk Image Resize” feature on the Imsanity settings page. The Bulk Resize
feature allows you to quickly resize existing images.

### Why am I getting an error saying that my “File is not an image” ?

WordPress uses the GD library to handle the image manipulation. GD can be installed
and configured to support various types of images. If GD is not configured to handle
a particular image type then you will get this message when you try to upload it.
For more info see http://php.net/manual/en/image.installation.php

### How can I tell Imsanity to ignore a certain image so I can upload it without being resized?

You can re-name your file and add “-noresize” to the filename. For example if your
file is named “photo.jpg” you can rename it “photo-noresize.jpg” and Imsanity will
ignore it, allowing you to upload the full-sized image.

If you are a developer (or have one handy), you can also use the ‘imsanity_skip_image’
filter to bypass resizing for any image.

### Does Imsanity compress or optimize my images?

While Imsanity does compress JPG images in the process of resizing them, it uses
the standard WordPress compression. Thus, the resulting images are not efficiently
encoded and can be optimized further (without quality loss) by the EWWW Image Optimizer
and many other image optimization plugins.

### Will Imsanity resize images from plugin X, Y, or Z?

If the images can be found in the Media Library of your site, then it is likely 
Imsanity will resize them. Imsanity uses the wp_handle_upload hook to process new
uploads and can resize any existing images in the Media Library using the Bulk Resizer.
If the images are not in the Media Library, you can use the EWWW Image Optimizer
to resize them.

### Why would I need this plugin?

Photos taken on any modern camera and most cellphones are too large to display full-
size in a browser.
 This wastes space on your web server, and wastes bandwidth for
your visitors to view these files.

Imsanity allows you to set a sanity limit so that all uploaded images will be constrained
to a reasonable size which is still more than large enough for the needs of a typical
website. Imsanity hooks into WordPress immediately after the image upload, but before
WordPress processing occurs. So WordPress behaves exactly the same in all ways, 
except it will be as if the contributor had scaled their image to a reasonable size
before uploading.

The size limit that imsanity uses is configurable. The default value is large enough
to fill the average vistor’s entire screen without scaling so it is still more than
large enough for typical usage.

### Why would I NOT want to use this plugin?

You might not want to use Imsanity if you use WordPress as a stock art download 
site, to provide hi-resolution images for print or use WordPress as a hi-resolution
photo storage archive.

### Doesn’t WordPress already automatically scale images?

When an image is uploaded WordPress keeps the original and, depending on the size
of the original, will create up to 4 smaller sized copies of the file (Large, Medium-
Large, Medium, Thumbnail) which are intended for embedding on your pages. Unless
you have special photographic needs, the original usually sits there unused, but
taking up disk quota.

### Why did you spell Insanity wrong?

Imsanity is short for “Image Sanity Limit”. A sanity limit is a term for limiting
something down to a size or value that is reasonable.

### Where do I go for support?

Questions may be posted on the support forum at https://wordpress.org/support/plugin/
imsanity but if you don’t get an answer, please use https://ewww.io/contact-us/.

## Reviews

![](https://secure.gravatar.com/avatar/2d8a5d13a06188348437a594c02c36e266fbe800cd52137f2a8311642c3b26f7?
s=60&d=retro&r=g)

### 󠀁[It works](https://wordpress.org/support/topic/it-works-2596/)󠁿

 [robertgray](https://profiles.wordpress.org/robertgray/) February 26, 2026

It just works 🙂

![](https://secure.gravatar.com/avatar/1888dbf143eccf1a53dfe494172a7333cdfe54a0cf5be771da073ddb8dbeff9f?
s=60&d=retro&r=g)

### 󠀁[The best!](https://wordpress.org/support/topic/the-best-2733/)󠁿

 [edgarro](https://profiles.wordpress.org/edgarro/) February 25, 2026

Very, very useful.

![](https://secure.gravatar.com/avatar/9f8f099065ceffe62bc40ed22f624d99fcc084ef2b9dc9b656923fe2f0899a11?
s=60&d=retro&r=g)

### 󠀁[Perfect](https://wordpress.org/support/topic/perfect-10850/)󠁿

 [Topher](https://profiles.wordpress.org/topher1kenobe/) October 11, 2025

This plugin does exactly what it says. It also works with WebP, so combined with
Cimo you have a perfect scenario for a health media library.

![](https://secure.gravatar.com/avatar/6106bc5e3abccd66f196d133fa692d0c6c53cc2cac1b58528c510ee8de9e791e?
s=60&d=retro&r=g)

### 󠀁[Great little plugin](https://wordpress.org/support/topic/great-little-plugin-373/)󠁿

 [Paul](https://profiles.wordpress.org/headwall/) September 18, 2025

I’ve used this on a few sites where the client keeps uploading large image files.
Imsanity does a good job of reducing the dimensions, improving the compression and
deleting the original file. It also works well from WP CLI, to bulk-process images
on first use. I prefer Imsanity to image-smushing plugins these days. Recommended.

![](https://secure.gravatar.com/avatar/f67e438ef576daae6ce67be23e78eb401a7733b1a866ec544a41450b6c7473bd?
s=60&d=retro&r=g)

### 󠀁[very usefull plugin](https://wordpress.org/support/topic/very-usefull-plugin-173/)󠁿

 [nicolashol](https://profiles.wordpress.org/nicolashol/) September 11, 2025

I scaled more than 1200 pictures in 20 minutes without any problem very comprehensive
and perfect integration with my theme wordpress thank you Nicolas

![](https://secure.gravatar.com/avatar/698febc1cdd59c08878526a34b44236bea3e447c6f0380c723021331bc534baf?
s=60&d=retro&r=g)

### 󠀁[I love how fast this plugin works with bulk resize](https://wordpress.org/support/topic/i-love-how-fast-this-plugin-works-with-bulk-resize/)󠁿

 [Amr – The Internet Guy](https://profiles.wordpress.org/amorselimgmailcom/) May
17, 2025

Thank you for for creating this plugin, it helps so much with clients who are still
uploading images from their mobile phones to their website making the page load 
in forever, then coming back to the web designer after uploading 30 plus images 
and asking why the home page is so slow.I’d love it if we can also have a “percentage
option” like reduce size by 25%, similar to what we do manually with graphic applications,
and sometimes we also don’t know which size in pixels will look good after reduction,
in these cases it’s easier to use a percentage.Thanks again.

 [ Read all 291 reviews ](https://wordpress.org/support/plugin/imsanity/reviews/)

## Contributors & Developers

“Imsanity” is open source software. The following people have contributed to this
plugin.

Contributors

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

“Imsanity” has been translated into 21 locales. Thank you to [the translators](https://translate.wordpress.org/projects/wp-plugins/imsanity/contributors)
for their contributions.

[Translate “Imsanity” into your language.](https://translate.wordpress.org/projects/wp-plugins/imsanity)

### Interested in development?

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

## Changelog

#### 2.9.0

_Release Date – February 10, 2026_

 * added: support for resizing AVIF image uploads
 * added: settings for WebP and AVIF quality
 * added: support for Modern Image Formats plugin
 * added: PHP 8.5 compatibility
 * fixed: quality settings not applied
 * fixed: PNG alpha detection may throw errors if PHP GD cannot obtain information
   from a PNG image

#### 2.8.7

_Release Date = August 6, 2024_

 * added: change default permissions via imsanity_editor_permissions and imsanity_admin_permissions
   filters
 * changed: default permission to resize individual images changed to editor role

#### 2.8.6

_Release Date – November 26, 2024_

 * fixed: fatal error if other plugins run big_image_size_threshold filter with 
   too few arguments

#### 2.8.5

_Release Date – November 12, 2024_

 * bumped WP tested version
 * changed: improve JSON handling/efficiency

#### 2.8.4

_Release Date – April 29, 2024_

 * bumped WP tested version and PHP minimum

#### 2.8.3

_Release Date – April 23, 2024_

 * changed: use updated WP coding standards
 * fixed: PHP 8 error trying to do math with string values

#### 2.8.2

_Release Date – October 5, 2022_

 * fixed: mime type error when filename in attachment metadata is incorrect

#### 2.8.1

_Release Date – June 16, 2022_

 * changed: escape and sanitize more things
 * changed: tighten PHPCS rules used for pre-release testing

#### 2.8.0

_Release Date – May 18, 2022_

 * added: support for resizing WebP images via ImageMagick
 * changed: update attachment file size to keep WP 6.0 metadata in sync
 * changed: use original image for resizing if full size version was scaled by WordPress
 * fixed: JS scroller during bulk resize causes unexpected behavior

#### 2.7.2

_Release Date – June 3, 2021_

 * fixed: delete originals might remove full-size version in rare cases
 * fixed: error thrown for image that is 1 pixel larger than max dimensions

#### 2.7.1

_Release Date – November 24, 2020_

 * changed: clarify text for queue reset button
 * changed: Delete Originals function in bulk/selective resizer will clean metadata
   if original image is already gone

#### 2.7.0

_Release Date – November 18, 2020_

 * changed: bulk resizer will resize all images with no limits, use list mode for
   selective resizing
 * added: see current dimensions and resize individual images in Media Library list
   mode
 * added: imsanity_disable_convert filter to bypass BMP/PNG to JPG conversion options
   conditionally
 * added: imsanity_skip_image filter to bypass resizing programmatically
 * added: ability to remove pre-scaled original image backup (in bulk or selectively)
 * changed: PNG images will not be converted if transparency is found
 * fixed: BMP files not converted when server uses image/x-ms-bmp as mime identifier
 * removed: Deep Scan option is the default behavior now, no need for configuration

#### Earlier versions

Please refer to the separate changelog.txt file.

## Community plugin

This plugin is developed and supported by a community. [Contribute to this plugin](https://github.com/nosilver4u/imsanity)

## Meta

 *  Version **2.9.0**
 *  Last updated **2 months ago**
 *  Active installations **200,000+**
 *  WordPress version ** 6.6 or higher **
 *  Tested up to **6.9.4**
 *  PHP version ** 7.4 or higher **
 *  Languages
 * [Bulgarian](https://bg.wordpress.org/plugins/imsanity/), [Danish](https://da.wordpress.org/plugins/imsanity/),
   [Dutch](https://nl.wordpress.org/plugins/imsanity/), [English (Canada)](https://en-ca.wordpress.org/plugins/imsanity/),
   [English (UK)](https://en-gb.wordpress.org/plugins/imsanity/), [English (US)](https://wordpress.org/plugins/imsanity/),
   [French (France)](https://fr.wordpress.org/plugins/imsanity/), [Galician](https://gl.wordpress.org/plugins/imsanity/),
   [German](https://de.wordpress.org/plugins/imsanity/), [Greek](https://el.wordpress.org/plugins/imsanity/),
   [Hungarian](https://hu.wordpress.org/plugins/imsanity/), [Japanese](https://ja.wordpress.org/plugins/imsanity/),
   [Polish](https://pl.wordpress.org/plugins/imsanity/), [Portuguese (Portugal)](https://pt.wordpress.org/plugins/imsanity/),
   [Romanian](https://ro.wordpress.org/plugins/imsanity/), [Russian](https://ru.wordpress.org/plugins/imsanity/),
   [Spanish (Chile)](https://cl.wordpress.org/plugins/imsanity/), [Spanish (Colombia)](https://es-co.wordpress.org/plugins/imsanity/),
   [Spanish (Mexico)](https://es-mx.wordpress.org/plugins/imsanity/), [Spanish (Spain)](https://es.wordpress.org/plugins/imsanity/),
   [Spanish (Venezuela)](https://ve.wordpress.org/plugins/imsanity/), and [Swedish](https://sv.wordpress.org/plugins/imsanity/).
 *  [Translate into your language](https://translate.wordpress.org/projects/wp-plugins/imsanity)
 * Tags
 * [image](https://wordpress.org/plugins/tags/image/)[quality](https://wordpress.org/plugins/tags/quality/)
   [resize](https://wordpress.org/plugins/tags/resize/)[scale](https://wordpress.org/plugins/tags/scale/)
 *  [Advanced View](https://wordpress.org/plugins/imsanity/advanced/)

## Ratings

 4.9 out of 5 stars.

 *  [  277 5-star reviews     ](https://wordpress.org/support/plugin/imsanity/reviews/?filter=5)
 *  [  8 4-star reviews     ](https://wordpress.org/support/plugin/imsanity/reviews/?filter=4)
 *  [  0 3-star reviews     ](https://wordpress.org/support/plugin/imsanity/reviews/?filter=3)
 *  [  2 2-star reviews     ](https://wordpress.org/support/plugin/imsanity/reviews/?filter=2)
 *  [  4 1-star reviews     ](https://wordpress.org/support/plugin/imsanity/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/imsanity/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/imsanity/reviews/)

## Contributors

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

## Support

Issues resolved in last two months:

     2 out of 3

 [View support forum](https://wordpress.org/support/plugin/imsanity/)

## Donate

Would you like to support the advancement of this plugin?

 [ Donate to this plugin ](https://ewww.io/donate/)