Export Media as ZIP
Export Media as ZIP
Description
Export Media as ZIP is a lightweight plugin that lets administrators export images from the WordPress media library as a ZIP file. Choose exactly what to download using the year and image size filters before exporting.
Key Features
- Export JPG, PNG, GIF, JPEG, and WEBP images
- Filter by year — select one or more upload years to narrow the export
- Filter by image size — choose from Full Size (original) or any intermediate size registered by WordPress core, your active theme, or plugins (e.g. Thumbnail, Medium, Large, custom sizes)
- Live export preview shows how many images match the current filters before you start
- Real-time progress bar during export
- Auto-expiring ZIP file — cleaned up automatically after 5 minutes
- Admin-only access
- No external dependencies
Premium Features
- Document export — include PDF, Word (doc/docx), Excel (xls/xlsx), and PowerPoint (ppt/pptx) files alongside images
- Background export — large exports run via WP-Cron in chunks instead of a single blocking request, so they don’t time out; you get an email with the download link when the ZIP is ready
- Scheduled export — configure a recurring (daily, weekly, or monthly) export with your preferred filters; each run emails a fresh download link automatically
Support
If you have any questions or need help, please open an issue on GitHub or contact me at huzoorbux@gmail.com.
Installation
- Upload the plugin folder to
/wp-content/plugins/export-media-as-zipor install via the WordPress Plugin Directory. - Activate the plugin through the Plugins menu in WordPress.
- Go to Media > Export Media as ZIP.
- Use the Year and Image Size dropdowns to select what to export.
- Click Export Images and download the generated ZIP.
Screenshots
Faq
Only users with the manage_options capability (administrators) can access the export page.
Only image files — .jpg, .jpeg, .png, .gif, and .webp.
You can export the original uploaded file (Full Size) and any intermediate size WordPress has generated for that image. The available sizes depend on your active theme and plugins. The plugin uses wp_get_registered_image_subsizes() to list all registered sizes automatically.
Yes. The Year filter shows all years that have image uploads, with a count per year. Select one or more years before exporting.
The ZIP is written temporarily to your uploads directory and deleted automatically after 5 minutes via a scheduled WP-Cron event.
Only sizes you check in the Image Size dropdown are included. If an intermediate size was never generated for a particular image, that file is silently skipped.
PDF, Word (.doc/.docx), Excel (.xls/.xlsx), and PowerPoint (.ppt/.pptx). Documents are always included at their original file — the Image Size filter only affects images.
Premium users can check “Run in background” before exporting. The export is queued and processed in chunks via WP-Cron so it can complete without keeping the browser tab open or hitting a server timeout. You’ll receive an email with the download link (valid for 24 hours) when it’s ready.
Premium users can configure a recurring export (daily, weekly, or monthly) using the Year, Image Size, and Document Type filters selected on the page, plus a recipient email. Each run happens automatically in the background and emails a fresh download link.
Reviews
Does what it says on the tin
By losbenos on May 18, 2026
I need to do this a lot when redesigning websites for people. So relieved to find this plugin.
Works as expected and when a server issue prevented me from downloading the entire library, it was easy to filter by year and export one year at a time.
Effortless.
Changelog
2.0
- Added Premium document export — PDF, Word, Excel, and PowerPoint files alongside images
- Added Premium background export — chunked WP-Cron processing with email notification, for exports too large for a single request
- Added Premium scheduled export — recurring daily/weekly/monthly exports emailed automatically
- Plugin menu is now a top-level admin menu instead of a submenu under Media
1.9
- Tested up to WordPress 7.1
1.7
- Added Year filter — export images from one or more specific upload years
- Added Image Size filter — choose Full Size (original) and/or any intermediate size registered by the theme or plugins
- Live export preview shows image and size count before starting
- Replaced flat checkbox layout with dropdown-style filter UI
- Export now uses WP_Query against the database instead of filesystem scanning, ensuring only real media library attachments are included
- Uses wp_get_registered_image_subsizes() (WP 5.3+) with fallback for older installs
1.6
- Added media library statistics panel (total images, total size, file type breakdown)
- Added real-time progress bar with file counter
- Added auto-cleanup of expired ZIP files via WP-Cron
- Improved error handling and user messaging
1.5
- Tested up to WordPress 6.9
1.4
- Initial release


