Title: Optimize Images Resizing
Author: OriginalEXE
Published: <strong>18 juni 2014</strong>
Last modified: 17 december 2016

---

Sök tillägg

Det här tillägget **har inte testats med någon av de 3 senaste huvudversionerna 
av WordPress**. Det kanske inte längre underhålls och kan ha kompatibilitetsproblem
när det används tillsammans med nyare versioner av WordPress.

![](https://s.w.org/plugins/geopattern-icon/optimize-images-resizing.svg)

# Optimize Images Resizing

 Av [OriginalEXE](https://profiles.wordpress.org/originalexe/)

[Ladda ner](https://downloads.wordpress.org/plugin/optimize-images-resizing.zip)

 * [Detaljer](https://sv.wordpress.org/plugins/optimize-images-resizing/#description)
 * [Recensioner](https://sv.wordpress.org/plugins/optimize-images-resizing/#reviews)
 *  [Installation](https://sv.wordpress.org/plugins/optimize-images-resizing/#installation)
 * [Utveckling](https://sv.wordpress.org/plugins/optimize-images-resizing/#developers)

 [Support](https://wordpress.org/support/plugin/optimize-images-resizing/)

## Beskrivning

If you were ever annoyed about the way WordPress handles images resizing, this is
a plugin for you.

What this plugin does is it optimizes the image handling in such a way that images
are resized only when they are actually needed. What that means is that if your 
plugins/theme define a lot of image sizes, none of them will be generated on the
image upload (like they would be usually), but only if they are actually requested
in that size.

Resizing is done only once, images are later normally served by WordPress, so there
is no performance hit.

Plugin also includes a method for removing all of the previously generated image
sizes (useful when you install this plugin on a site with a lot of existing media).

**TO REMOVE** image sizes generated prior to activating the plugin, visit the ’Tools-
> Remove image sizes’ and use the button to perform the cleanup.

Other than that, you don’t need to do anything, plugin works silently in the background.

To sum up:

 * Resize images only when needed
 * Clean up existing images sizes
 * No performance hit
 * Free up your hosting space

## Skärmdumpar

 * [[
 * Admin UI added by the plugin.
 * [[
 * Difference between before and after running the plugin under a default theme (
   Twenty Sixteen).

## Installation

 1. Upload `optimize-images-resizing` folder to the `/wp-content/plugins/` directory
 2. Activate the plugin through the ’Plugins’ menu in WordPress
 3. (optional) Visit ’Tools -> Remove image sizes’ to clean up your media folder
 4. ???
 5. Profit

## Vanliga frågor

  Installation Instructions

 1. Upload `optimize-images-resizing` folder to the `/wp-content/plugins/` directory
 2. Activate the plugin through the ’Plugins’ menu in WordPress
 3. (optional) Visit ’Tools -> Remove image sizes’ to clean up your media folder
 4. ???
 5. Profit

  I just installed the plugin. Is there anything else I need to do?

Is this a new site with no existing images? If the answer is yes, then there is 
nothing else you need to do, any uploads that happen after you activated this plugin
will be automatically cleaned up. If the answer is no, keep reading.

  How to clean up existing images?

Images can be cleaned up at any time by visiting ’Tools -> Remove image sizes’ in
your WordPress Dashboard. Simply click on the ”Start new cleanup” button and wait
for the process to finish (there is a visual feedback for the duration of the cleanup).

  Some image sizes are not cleaned up, which ones and why?

Plugin never cleans default image sizes (thumbnail, medium, large), so if your theme/
plugins don’t define custom image sizes, you don’t need this plugin. Why does it
not clean up those image sizes? Well the reason for that is that all of those image
sizes are used in the Media UI of the WordPress Dashboard. What that means is: if
plugin were to clean up all sizes, they would be generated for all of your images
as soon as you would visit the Media screen. Since I don’t know of anyone that never
visits the Media screen, it made sense to exclude those image sizes from the cleaning
process and avoid the redundant server load.

  How do I know which files the plugin cleaned up?

A list of removed files is available only for the manual cleanup request, by checking
the checkbox at the top of the plugin page. Once the request finishes, a message
will appear stating how many images it removed. Click on the number to show the 
list of files that were removed in the process.

  Are there any drawbacks to using this plugin?

Not that I know of. Your WordPress website will continue working as it did before,
only your uploads folder will be a bit lighter (depending on the number of images
and image sizes you have). It’s certainly useful during migrations!

## Recensioner

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

### 󠀁[Excellent!](https://wordpress.org/support/topic/excellent-11183/)󠁿

 [ajiaim](https://profiles.wordpress.org/ajiaim/) 29 september 2021

This plugin is awesome even in 2021! I wish I knew about it sooner and that the 
developer would continue to update it. Works fine though for 3 sites I installed
it on.

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

### 󠀁[Works great with the latest WordPress version!](https://wordpress.org/support/topic/works-great-with-the-latest-wordpress-version/)󠁿

 [Panos Sakalakis](https://profiles.wordpress.org/meymigrou/) 21 mars 2020

Thank you very much for this amazingly easy-to-use and very helpful plugin! It works
great with the latest version of WordPress and saved me tons of disk space.

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

### 󠀁[Perfect](https://wordpress.org/support/topic/works-perfectly-fine-on-latest-wordpress/)󠁿

 [Anonymous User 17702700](https://profiles.wordpress.org/anonymized-17702700/) 
2 mars 2020

Works 100% on Latest WordPress Version

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

### 󠀁[God Job! Need More Features!](https://wordpress.org/support/topic/god-job-need-more-features/)󠁿

 [NikosTsolakos](https://profiles.wordpress.org/nikostsolakos/) 7 november 2018

Hello! nice plugin one click option and all done! add a custom search for images
to detele. ex. -unsmushed.jpg

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

### 󠀁[Doesn’t work as should](https://wordpress.org/support/topic/doesnt-work-1855/)󠁿

 [Jek-fdrv](https://profiles.wordpress.org/jek-fdrv/) 14 april 2018

Why it generate all sizes if I have requested only 100 on 100 pixel. For example
I have 20 different sizes. For post example with id 21 I use featured image. On 
the front page I have custom template which use featured img for post 22 with size
100 on 100. Why it generate all other 19 sizes? I dont use for this img all other,
just 100 on 100.

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

### 󠀁[BAD](https://wordpress.org/support/topic/bad-167/)󠁿

 [shovgan](https://profiles.wordpress.org/shovgan/) 19 februari 2018

stupid plugin removed all featured image from a site

 [ Läs alla 46 betyg ](https://wordpress.org/support/plugin/optimize-images-resizing/reviews/)

## Bidragsgivare och utvecklare

”Optimize Images Resizing” är programvara med öppen källkod. Följande personer har
bidragit till detta tillägg.

Bidragande personer

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

”Optimize Images Resizing” har översatts till 1 språk. Tack till [översättarna](https://translate.wordpress.org/projects/wp-plugins/optimize-images-resizing/contributors)
för deras bidrag.

[Översätt ”Optimize Images Resizing” till ditt språk.](https://translate.wordpress.org/projects/wp-plugins/optimize-images-resizing)

### Intresserad av programutveckling?

[Läs programkoden](https://plugins.trac.wordpress.org/browser/optimize-images-resizing/),
kika på [SVN-filförvaret](https://plugins.svn.wordpress.org/optimize-images-resizing/)
eller prenumerera på [utvecklarloggen](https://plugins.trac.wordpress.org/log/optimize-images-resizing/)
via [RSS](https://plugins.trac.wordpress.org/log/optimize-images-resizing/?limit=100&mode=stop_on_copy&format=rss).

## Ändringslogg

#### 1.4.1

 * Fix a 1.4.0 PHP bug.

#### 1.4.0

 * Move plugin to the Tools menu.
 * Add support for resuming image sizes removing.
 * Declare WordPress 4.7 compatibility.

#### 1.3.0

 * Improve the plugin UI and UX by providing a more meaningful feedback (plugin 
   will now tell you how many images it removed exactly and show the list of files
   that got removed).
 * Introduce WP-CLI support (props @charlesLF).
 * Fix issues with the plugin localization support.
 * Declare WordPress 4.5 compatibility.

#### 1.2.1

 * Declare WordPress 4.4 compatibility.

#### 1.2.0

 * Improve performance by returning the correct response after image is resized.
 * Improve performance by returning response immediately if image size is already
   found.
 * Avoid removing image sizes that are added via ’image_size_names_choose’ filter(
   they get generated anyway on the Media screen).

#### 1.1.0

 * Improve the process of removing unwanted image sizes on image upload (props @bcole808)

#### 1.0.9

 * Declare WordPress 4.3 support

#### 1.0.8

 * Fix compatibility issue in specific scenarios

#### 1.0.7

 * Fix issue where cleanup process would get stuck on certain images.

#### 1.0.6

 * Fix issue where default image size would not be generated after cleanup, if a
   custom image size of the same dimensions is defined.

#### 1.0.5

 * Fix issue where full image size would be duplicated when width and height are
   both set to 0.

#### 1.0.4

 * Fix issue with cleaning up images from media settings screen.

#### 1.0.3

 * Plugin no longer removes any of the default WordPress image sizes.

#### 1.0.2

 * Fixed issue where image sizes were not listed in some places inside admin area.

#### 1.0.1

 * Fixed issue where images would be regenerated even when not needed.

#### 1.0.0

 * Initial version.

## Meta

 *  Version **1.4.1**
 *  Senast uppdaterat **8 år sedan**
 *  Aktiva installationer **6 000+**
 *  WordPress-version ** 3.8 eller senare **
 *  Testat upp till **4.7.33**
 *  Språk
 * [Croatian](https://hr.wordpress.org/plugins/optimize-images-resizing/) och [English (US)](https://wordpress.org/plugins/optimize-images-resizing/).
 *  [Översätt till ditt språk](https://translate.wordpress.org/projects/wp-plugins/optimize-images-resizing)
 * Etiketter
 * [cleanup](https://sv.wordpress.org/plugins/tags/cleanup/)[images](https://sv.wordpress.org/plugins/tags/images/)
   [media](https://sv.wordpress.org/plugins/tags/media/)[Optimize](https://sv.wordpress.org/plugins/tags/optimize/)
   [resizing](https://sv.wordpress.org/plugins/tags/resizing/)
 *  [Avancerad vy](https://sv.wordpress.org/plugins/optimize-images-resizing/advanced/)

## Betyg

 4.6 av 5 stjärnor.

 *  [  39 5-stjärniga recensioner     ](https://wordpress.org/support/plugin/optimize-images-resizing/reviews/?filter=5)
 *  [  0 4-stjärniga recensioner     ](https://wordpress.org/support/plugin/optimize-images-resizing/reviews/?filter=4)
 *  [  3 3-stjärniga recensioner     ](https://wordpress.org/support/plugin/optimize-images-resizing/reviews/?filter=3)
 *  [  0 2-stjärniga recensioner     ](https://wordpress.org/support/plugin/optimize-images-resizing/reviews/?filter=2)
 *  [  3 1-stjärniga recensioner     ](https://wordpress.org/support/plugin/optimize-images-resizing/reviews/?filter=1)

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

[Se alla recensioner](https://wordpress.org/support/plugin/optimize-images-resizing/reviews/)

## Bidragande personer

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

## Support

Har du något att säga? Behöver du hjälp?

 [Visa supportforum](https://wordpress.org/support/plugin/optimize-images-resizing/)