=== Pixloade Image Manager ===
Contributors: arif547, mahabubulalam
Tags: media, images, download, filter, zip
Requires at least: 5.6
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 1.0.1
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Filter, sort, preview, and bulk-download Media Library images with a detail modal, inline editing, and ZIP export.

== Description ==

Pixloade Image Manager gives you a powerful interface inside your WordPress Media Library to:

* Filter images by format (JPEG, PNG, GIF, WebP, SVG, and more)
* Sort images by name, upload date, or file size
* Bulk download all filtered images as a single ZIP file
* Click any image to open a detailed modal with full metadata
* Edit image title, caption, alt text, and description inline
* Copy the image URL to clipboard with one click
* Navigate between images using arrow buttons or keyboard shortcuts

The plugin is designed for site administrators and content managers who need to manage large media libraries efficiently.

== Installation ==

1. Upload the `pixloade-image-manager` folder to the `/wp-content/plugins/` directory.
2. Activate the plugin through the **Plugins** menu in WordPress.
3. Navigate to **Media → Image Manager** to start using the plugin.

== Frequently Asked Questions ==

= What image formats are supported? =

The plugin supports all image formats stored in your Media Library, including JPEG, PNG, GIF, WebP, and SVG. Any other format present in your library will also appear as a tab automatically.

= Does the ZIP download include all image sizes? =

No. The ZIP file contains only the original uploaded files, not the resized thumbnails generated by WordPress.

= Is the PHP ZipArchive extension required? =

Yes. The bulk ZIP download feature requires the PHP ZipArchive extension, which is enabled by default on most hosting providers.

= Who can access the plugin page? =

Users with the `upload_files` capability (Authors, Editors and Administrators by default) can browse and download images. Editing an image's title, caption, alt text or description additionally requires permission to edit that image, the same rule the Media Library uses. Developers can change the base capability with the `pixloade_capability` filter.

== Screenshots ==

1. Main admin page showing image grid with format tabs and sort controls.
2. Image details modal with metadata, editable fields, and download button.

== Changelog ==

= 1.0.1 =
* Security: editing and viewing details now only works on image attachments the current user is allowed to edit, matching core Media Library permissions.
* Security: base capability changed from `edit_posts` to `upload_files`; format filter now only accepts image MIME types.
* Fix: arrow keys and Escape no longer discard edits while typing in a field; unsaved changes now ask before closing.
* Fix: saving no longer strips HTML from caption/description or backslashes from text.
* Fix: saving an image without a title no longer stores "Untitled" as its title.
* Fix: ZIP download now contains original uploads, cleans up its temporary files and handles duplicate file names safely.
* Fix: upload date now respects the site timezone.
* Performance: format counts use a single query and the grid loads in pages with a "Load more" button.

= 1.0 =
* Initial release with image format filtering, sorting, bulk ZIP download, and detailed image modal with inline editing.

== Upgrade Notice ==

= 1.0.1 =
Security and reliability fixes. Recommended for all users.

= 1.0 =
Initial release.
