=== Jeet Sanwal Featured Image Crop Preview ===
Contributors: jeetsanwal
Tags: featured image, image sizes, thumbnails, crop preview, media
Requires at least: 6.5
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 1.0.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Compare actual generated thumbnails and current registered crop settings without changing your images.

Created by Jeet Sanwal — https://jeetsanwal.in

== Description ==

An image can look different at thumbnail, card and banner sizes. Jeet Sanwal Featured Image Crop Preview puts existing image files beside clearly labeled simulations so you can see what your current WordPress and theme size settings would request.

Open Tools → Image crop preview. Choose an editable image from the Media Library batches, or choose an editable post/page and inspect its featured image. You can filter editable titles in the current batch or enter an existing attachment/post/page ID. The lists display titles instead of loading every media thumbnail.

* Readable local JPEG, PNG, GIF, WebP and AVIF attachments only, subject to server/browser format support.
* Current registered size names, dimensions, soft resizing, hard cropping and native left/center/right plus top/center/bottom crop positions.
* Actual already-generated local sub-size files, separately labeled from simulations.
* Simulations use core image_resize_dimensions geometry and do not promise upscaling or generate missing files.
* Source pixel dimensions and file size, missing/stale metadata warnings and different-existing-dimensions warnings.
* Capability-checked Media Library and post/page lists: 20 unfiltered candidate IDs per batch, up to 1,000 batches. Literal title filtering is applied to editable rows in the current batch only; Next follows candidates rather than global matches. Restricted titles/content are not database search inputs.
* Registered sizes shown 20 per page, up to 500 total. A coverage warning appears if more exist. Unregistered old metadata sizes are not listed.
* With optional installation reports off, admin screen only. No frontend assets, ads, paid tier, signup, telemetry, external service or public credit.

This plugin is read-only. It never crops, regenerates, replaces, uploads or deletes an image. It stores no reports, settings or image copies. It has no public API endpoint.

Only users with manage_options plus edit_post access to the selected attachment and selected source post/page can see their details. Restricted items are omitted from lists. The URL forms only read existing data; they do not perform writes.

== Installation ==

1. Upload the plugin ZIP using Plugins → Add New → Upload Plugin.
2. Activate it and open Tools → Image crop preview.
3. Pick an image or select a post/page with a featured image.
4. Compare “Existing thumbnail” with “Simulated current settings”.

For self-hosted updates, upload the newer ZIP and use WordPress's replace-existing-plugin confirmation. No automatic update service is included.

== Frequently Asked Questions ==

= Will it change my images or create missing thumbnails? =
No. Missing files remain missing. Regenerate thumbnails separately if you decide that is needed; this plugin does not include regeneration.

= Does the simulation guarantee the crop on my live site? =
No. Themes, CSS object-fit, srcset, viewport, browser selection, page builders, CDN transformations and image-editor filters may change the live result. The simulation describes the selected current WordPress size geometry. Existing thumbnails may reflect older settings. A matching pixel dimension does not prove a matching composition.

= Can I preview external URLs or images on a CDN? =
No. Images must have a readable raster file under this site's uploads directory and a same-origin attachment URL, without query strings or fragments. Off-site/CDN images and missing local files are metadata-only. No remote images or arbitrary caller URLs/paths are fetched. Even private admin previews are not a way to make public uploads private.

= What happens with very large images? =
Individual images over 10 MB are not loaded by this tool. A large source may be simulated using one of the first 300 metadata entries if a smaller readable derivative has nearly the same aspect ratio and enough width. That preview is explicitly approximate: it may have less detail, different edges or a previously edited composition. If there is no suitable derivative, only dimensions and warnings are shown. Displayed images are browser-scaled and lazy-loaded.

= Why does the source differ from my original upload? =
WordPress may have made a scaled or edited full-size attachment. The source dimensions here describe that current full attachment source, which is the basis for current size geometry. Original-upload dimensions are shown separately when that local file can be verified; no original-upload image is loaded just to display its dimensions.

= What about animations and unsupported formats? =
Animated GIF playback can differ from a generated still thumbnail. WebP/AVIF decoding depends on the server's header-reading support and your browser. SVG, PDFs and arbitrary URLs are not supported.

= Does it scan every attachment or every historical size? =
No. Select one attachment at a time. Lists and current registered sizes are paginated and bounded. The title filter covers editable rows in the current candidate batch only, so a blank filtered batch does not rule out matches elsewhere. Old metadata sizes that are no longer registered by WordPress, the active theme or active plugins are not enumerated. Database edits, filesystem changes and theme switches can change the result between requests.

= Does it depend on WooCommerce? =
No. It works with the regular WordPress Media Library, posts and pages.

== Privacy ==

With optional installation reports off, no telemetry, remote service, cookies or plugin database records are created. Selected image URLs are requested by your browser from this site's own origin. Normal WordPress permissions and site/server logs still apply. Deactivation or removal does not alter attachment files or metadata.

== Updating an existing installation ==

Download this plugin's individual ZIP from https://jeetsanwal.in/tools/jeet-image-crop-preview . Make a normal site backup and try the update on staging first. In WordPress, use Plugins > Add New > Upload Plugin and choose Replace current with uploaded when WordPress detects the existing installation. Keep the same plugin folder; do not uninstall/delete the plugin as an update step. Confirm the displayed version is 1.0.4, then reopen the plugin's normal screen and check one representative workflow described above. Clear relevant page caches if public output remains stale.

Updates are installed manually; a matching Update URI prevents unrelated directory plugins from replacing this package, but does not provide an update service. If replacement fails, check hosting upload limits and write permissions before retrying. To roll back, replace the plugin files with your saved previous ZIP; file replacement alone does not restore database records or deleted files. Use your site backup when data restoration is needed. Read this plugin's retention notes before deliberately uninstalling it.

Author and support: Jeet Sanwal — https://jeetsanwal.in/contact

== Optional installation reports ==

Installation reports are optional and OFF by default. Installing, activating, or using this product does not submit a report. Administrators can choose consent separately for each product under Settings > Jeet Sanwal Reports. All product features remain available with reporting off.

After explicit consent, the client sends the website URL, a random installation ID, product/WordPress/PHP versions, reported state, and an observed activation timestamp when available to https://jeetsanwal.in/api/v1/plugin-reports. While that product is active and consent remains enabled, a daily WordPress cron check-in can update its last-known status. WP-Cron depends on site traffic and hosting; it is not a continuous monitor.

Pause stops future reports without deleting records already shared. Forget requests deletion of the remote installation entry and history, retrying deletion if delivery fails. Records automatically expire after 90 days without a check-in. The plugin does not send page content, files, database exports, administrator email addresses, or raw IP addresses. Server rate limiting keeps a keyed IP hash for up to 24 hours; ordinary hosting access logs are governed separately by the privacy policy.

Review the fields and consent before enabling reporting. Read https://jeetsanwal.in/privacy for the reporting endpoint, retention, and deletion details. Reporting does not authorize remote control, automatic updates, or access to the website.

== Changelog ==

= 1.0.4 =
* Updated the product display name to Jeet Sanwal Featured Image Crop Preview and retained the Jeet Sanwal author website.
* Added voluntary installation/status reports with per-product consent OFF by default, pause/forget controls, and documented fields and retention.
* Preserved existing identifiers, stored data, permissions, and earlier release history.


= 1.0.3 =
* Standardized interface wording to US English without changing stored field keys or permissions.
* Added a complete US English installation and update guide; kept documented permissions, limits and manual rollback steps.


= 1.0.2 =
* Clarified the manual replacement, verification and rollback workflow, with direct author support details.
* Rechecked package metadata, source/archive consistency and existing isolated regressions.


= 1.0.1 =
* Rechecked local raster preview paths, image permissions, native crop geometry and batch-local search; refreshed release metadata.

= 1.0.0 =
* Initial release: read-only actual thumbnail comparison, native positioned crop simulations, featured-image selection, safe local previews and explicit coverage warnings.

== Upgrade Notice ==

= 1.0.0 =
Initial release. Back up your site before installing or updating any plugin.
