WordPress media library

See every size WordPress actually generated for an image

Image Sizes List adds a panel to every image's attachment details showing exactly which sizes exist for that file, with the dimensions, a direct link, and a one-click copy button for each.

  • Shows only sizes that actually exist for this specific image.
  • Works in both the media library modal and the classic edit screen.
  • One click opens any size directly; another copies its URL.
  • Skipped entirely for non-image attachments.
Attachment DetailsImage Sizes List
Image Sizes
full2560 × 1856
medium300 × 218
large1024 × 742
thumbnail150 × 150
medium_large768 × 557
7 sizes found for this imageEvery generated file, one click away.
Active
Quick answer

What does Image Sizes List do?

When the image_sizes_list module is active, TOWP_Image_Sizes_List reads an image's actual attachment metadata through wp_get_attachment_metadata() and lists the full size plus every registered sub-size genuinely generated for that specific file, skipping any size WordPress didn't actually produce. Since WordPress core has no single mechanism covering every place an attachment gets opened, the module renders the same panel two different ways: a proper sidebar meta box on the classic attachment edit screen, and a compat-field inside the media library's grid-view modal. Each size gets its real dimensions, a link that opens the file, and a button that copies its URL to the clipboard.

The "files exist, nobody can see them" problem

WordPress generates sizes and never says which ones

Because nothing in the default admin lists what actually got generated, finding one specific file often comes down to guesswork.

Every upload produces files nobody sees

WordPress resizes each uploaded image into several registered sizes, but nothing in the default admin shows which of those files actually exist for a specific attachment, or what their dimensions and URLs are.

Finding a size's direct URL means guessing or digging

Without a listing, getting the URL for one particular size means either guessing a filename pattern or digging through the page source of wherever the image happens to be displayed.

A dedicated WordPress solution

Every generated size, listed and one click away

The module shows exactly what WordPress produced for a specific image, with a direct link and a copy button for each one.

Only sizes that actually exist

The list reflects what WordPress genuinely generated for this file, not the theoretical list of every registered size on the site.

A direct link for every size

Open any size's file directly, without guessing at a filename pattern or digging through page source.

The URL, copied in one click

A dedicated copy button puts any size's URL on the clipboard instantly, with a visual confirmation when it works.

Verified feature set

Real data, shown wherever it's needed

Every capability below is present in the supplied PHP class, its JS asset and the settings registration.

Classic edit screen

A proper sidebar meta box

On the attachment edit screen (post.php), the panel appears as a standard sidebar meta box, placed the same way as other attachment detail panels.

add_meta_boxes_attachmentSidebar context
Media library modal

A compat-field inside the grid view

Since the grid-view modal has no meta-box concept, the panel renders through attachment_fields_to_edit, the mechanism WordPress uses for exactly this case.

attachment_fields_to_editModal-compatible
Direct view link

Opens the file safely

Each size's link opens in a new tab with noopener and noreferrer, pointing straight at that size's actual file.

target=_blanknoopener noreferrer
Copy to clipboard

One click, instant feedback

A dedicated button copies the size's URL using the Clipboard API, with a temporary checkmark confirming the copy succeeded.

navigator.clipboardVisual confirmation
Non-image attachments skipped

No empty panel for PDFs or documents

The panel never appears for anything that isn't an image, since a non-image attachment would never have sizes to list.

wp_attachment_is_imageNo empty state
Practical use cases

Where seeing every size helps most

The module supports anyone who needs to know exactly what WordPress produced for a given image.

Grabbing a specific size's URL for custom code

Copy the exact URL for a size needed in a template, a custom block, or an email, without hunting for it manually.

Checking whether a size actually generated correctly

Confirm a specific sub-size exists and has the expected dimensions after a theme change or a bulk regenerate.

Editorial teams working with images regularly

Give content editors a quick way to grab the right size URL themselves, without asking a developer each time.

Operational benefits

Clarity first, then a faster workflow

The module combines genuine visibility into what WordPress did with a quicker way to actually use that information.

Visibility into what WordPress actually didSee exactly which files exist for an image, instead of assuming every registered size was generated successfully.
No manual URL constructionSkip guessing at filename suffixes or digging through source code to find a specific size's address.
A faster workflow for grabbing URLsOne click copies a ready-to-use URL, faster than opening the file and copying it from the browser's address bar.
Consistent wherever the attachment opensThe same information appears whether the image is opened from the media library grid or the classic edit screen.
Performance behaviour

Existing data, read once, displayed

The verified implementation adds no processing beyond reading data WordPress already stored.

Reads existing metadata, no extra processing

The panel reads metadata WordPress already stored at upload time; it doesn't regenerate or recalculate anything.

Loaded only where relevant

Because the panel's own assets only load on screens where an attachment can actually be opened, they never weigh down other admin pages.

Skipped for anything that isn't an image

An early check exits before any processing for non-image attachments, avoiding wasted work on files that would never have sizes to show.

Security implementation

Read-only, by design

The code only displays existing data and never touches files, permissions, or settings.

01

Read-only by design

The entire panel only displays existing data; it doesn't accept input, modify files, or change any setting.

02

Safe external link attributes

Every view link includes noopener and noreferrer, the same security-conscious defaults recommended for any link opening in a new tab.

03

Administrator-only configuration

Only an administrator with access to TheOneWP settings can enable or disable the module itself.

04

No effect on file storage or permissions

The module doesn't change how files are stored, who can access them, or any aspect of media library permissions.

Verified compatibility

Built around every native WordPress attachment display mechanism

The supplied code integrates through APIs present in WordPress core; this page makes no compatibility claim beyond the verified implementation.

Sidebar meta box

add_meta_boxes_attachment

The hook WordPress fires specifically for registering meta boxes on the attachment edit screen.

add_meta_boxes_attachmentClassic screen
Modal compat-fields

attachment_fields_to_edit

The filter WordPress core itself uses to add custom fields inside the media library's attachment details panel.

attachment_fields_to_editNative filter
Media modal assets

wp_enqueue_media

The action that fires wherever WordPress loads its JS media modal, used here to guarantee the panel's assets load alongside it.

wp_enqueue_mediaReliable asset loading
Solution comparison

TheOneWP versus common alternatives

Compare the verified Image Sizes List implementation with manually inspecting file URLs.

CapabilityTheOneWP Image Sizes ListOther common solutions
Listing actually-generated sizes Reads real per-file metadata, not a registered-sizes listOften shows every registered size, whether it exists or not
Coverage across admin screens Works in both the modal and the classic edit screenFrequently limited to just one context
Getting a size's URL A direct link and a one-click copy buttonUsually requires digging through page source
Non-image handling Silently skipped, no empty panelCan show a blank or broken panel for non-images
Administration One toggle, nothing else to configureRequires a dedicated plugin or manual inspection
Recommended workflow

Find any size's URL in four steps

The panel appears automatically once enabled; there's nothing further to set up per image.

01

Enable Image Sizes List

Activate the module from the TheOneWP Content settings tab.

02

Open any image's attachment details

Click an image in the media library grid, or open its classic edit screen.

03

Review the sizes actually generated

Check the Image Sizes panel to see every size that exists for that specific file.

04

Open or copy any size's URL

Use the view button to open a size directly, or the copy button to grab its URL for use elsewhere.

Best practices

A quick check worth building into the workflow

The panel earns its place most clearly right after a change that affects image generation.

01

Check sizes after a bulk image regenerate

Use the panel to confirm sizes actually regenerated correctly for a sample of images after a theme or plugin change.

02

Copy URLs instead of retyping them

The copy button avoids typos that can happen when reconstructing a size's URL by hand.

03

Use it to spot missing sizes

If an expected size doesn't appear in the list, then that size genuinely wasn't generated for that file.

04

Share it with content editors

Editors who need a specific image size for external use can grab the URL themselves without involving a developer.

Common mistakes

Avoid assumptions the panel itself corrects

The panel's whole purpose is to replace assumptions with what actually exists.

Assuming every registered size will always appear

The panel only lists sizes that were actually generated for that specific file; a size can be legitimately absent for a given image.

Not checking both admin contexts

A workflow that only opens attachments from the classic screen might not realize the same panel also appears in the media library modal.

Expecting the panel on non-image files

The panel never appears for PDFs, documents or other non-image attachments, since they never have image sizes to list.

Frequently asked questions

Image Sizes List FAQ

These answers come directly from the verified class, its JS asset and the settings registration.

What does Image Sizes List do?

It adds a panel to an image's attachment details listing every size actually generated for that file, with its dimensions, a direct link, and a copy-to-clipboard button.

Does this show every size registered on the site, or just what exists for this image?

Only what genuinely exists for that specific file; a size the site has registered but that wasn't generated for this particular image won't appear.

Where does this panel appear?

In two places: a sidebar meta box on the classic attachment edit screen, and inside the media library's grid-view modal.

Why does it need two different display methods?

Because WordPress core has no single mechanism that covers both the classic edit screen and the grid-view modal, the module uses the correct native mechanism for each.

Does this work for PDFs or other non-image files?

No. The panel only appears for image attachments, since non-image files never have generated sizes to list.

How does the copy button work?

It uses the browser's Clipboard API to copy the size's URL, with a brief visual confirmation when the copy succeeds.

Does opening a size's link modify or download the file?

No. It simply opens the file's existing URL in a new tab, the same as clicking any other link.

Can this help me find a size that failed to generate?

Yes. If an expected size is missing from the list, then that size genuinely wasn't produced for that specific image.

Does this change how WordPress generates image sizes?

No. The module only displays existing metadata; it doesn't affect image generation in any way.

Who can enable or disable this module?

Only an administrator with access to the TheOneWP settings screen.

Stop guessing which image sizes actually exist.See every one, with a link and a copy button.

Use Image Sizes List to see exactly what WordPress generated for any image, with a direct link and a one-click copy for each size.