Media Library File Size

Beskrywing

Improve your Media Library functionality by introducing a new column that showcases the sizes of files, including collective variants. This lightweight plugin empowers you to effortlessly sort files based on their respective file sizes and view variants.

Primary Features:

  • Tested with meida libraries with over 50,000 attachments
  • View file size of primary file and their variants
  • Sort the media library by file size to find those pesky large file
  • View all variants of an image with the ability to download them

Images and videos play a crucial role in engaging visitors and making a website visually appealing. However, managing these files can become a daunting task, especially when you have a large number of media files on your website. WordPress does offer a media library that allows users to upload and manage media files, but it falls short when it comes to providing information about file sizes. This is where the “Media File Sizes” plugin comes in.

  • By default sizes may show without the need to run an index however, indexing the Media Library is highly recommended.
  • If sizes do not show, you can click the Index Media button within the Media Library to index/re-index items.
  • Shows file size of primary file, plus combined sized for variants (images).
  • Ability to order the media items by file size.

Screenshots

  • The Media Library view with the new File Size column and ‘Index Media’ button.
  • Pressing this button indexes your Media Library file sizes.

Installation

Use the automatic installer via WordPress or download the plugin and:

  1. Upload the plugin files to the /wp-content/plugins/media-library-file-size directory.
  2. Activate the plugin through the ‘Plugins’ screen in WordPress.
  3. Navigate to the Media Library and click the Index Media button.

Kwel-vrae

The file size does not show for an attachment in the media library?

First try to index the Media Library by pressing the button ‘Index Media’ (when viewing the Media Library in list view mode). If this fails, it usually means that the file does not exist locally on the server.

The most common reason is because the file has been offloaded onto a CDN.

I do not see a Index Media button?

Make sure you are looking at your Media Library, and you are in List view. Grid mode does not work with this plugin.

What is the additional file size e.g. ‘(+27 KB)’ in the file size column?

This is a collective size of your thumbnails (and other sized images).

Aanbevelings

April 1, 2024 1 reply
We use this plugin with a large Wordpress site, where multiple users add images. We keep this plugin installed so everyone can easily see if images are too large.Love the ability to sort the media library by file size.
Mei 1, 2023 1 reply
Nice addition to the feature set of the WP Media library. Helpful to identify large media files that are taking up server space. Great work!
April 13, 2023 1 reply
Generally great plugin, just the extension in the Media Library (Medienübersicht) that shows you the size of each immage. But it only shows the size of the latest 60 immages. All that comes after (Bevore may 2022) has no sizes. Also the sorting by immage size does not work. I hope this plugin will improve over time!
Maart 20, 2023 1 reply
I needed something that helped me manage my uploaded files. I found the default media manager in wordpress a little lacking and was happy to try a few out. This is the one that I stuck with as it seems to do exactly what I need.
Read all 4 reviews

Contributors & Developers

“Media Library File Size” is oopbron sagteware. Die volgende mense het bygedra tot die ontwikkeling van hierdie uitbreiding:

Contributors

Changelog

1.6.5

  • Removed memory_limit
  • Indexing/Reindexing will batch process 100 media items at a time (memory saving feature)

1.6.4

  • Fix: Remove ‘View Variants’ link if no variants exist on images
  • Fix: Index/Reindex populates the total size correctly
  • Fix: Translation code fix + prep for later release

1.6.3

  • Added prior version to trunk for rollback compatibility
  • Minor fixes to code and readme.txt
  • Rate us link

1.6.2

  • Fix visibility of button on Activation of plugin

1.6.1

  • File size fix in modal

1.6

  • Many thanks for 2,000 active installations!
  • This new version includes a ‘View Variants’ button, which opens a minimalist modal to show you all the different variants WordPress has for the selected image. This information includes filename, file size, width, height, and the wordpress size name use. You can also click the box to load that individual variant in a new tab!

1.5.1

  • Potential memory issue fix for large libraries

1.5

  • Added a ‘Reindex Media’ button to admin sidebar under Media
  • Extra hooks for better count of file sizes

1.4

  • This update requires pressing the Index Media button again
  • Size of entire Media Library now shows next to title

1.3

  • Spelling fix
  • When uninstalling the plugin, it removes the post meta we use to index the files.
  • Readme.txt updates
  • Index check — do not show ‘Index Media’ button if the library is already indexed (also fixes first time arrow).

1.2

  • Added arrow and redirect when plugin activated to help users press the Index Media button

1.1

  • Updated to work with WordPress 4.1+

1.0

  • Initial release.