=== Fotalyze ===
Contributors: warzi37
Tags: woocommerce, upload, image, quality, personalization
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 0.3.1
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Checks the customer's photo before checkout and warns them if it won't print well. Everything is computed in their browser.

== Description ==

Personalized-product shops receive unusable photos: blurry, backlit, too
small to print. The problem is discovered after the order, and costs an email
exchange, a refund, or an unhappy customer.

Fotalyze scores the photo the moment the customer picks it, and tells them
clearly what's wrong — before they pay.

= The photo never leaves the customer's device =

All the analysis happens in the browser. No image is ever sent to a server,
neither yours nor the plugin's. There is no third-party service, no account to
create, no outgoing request, no personal data transmitted.

= Warns, never blocks =

By default, the plugin warns the customer and lets them order anyway. This is
deliberate: no automated tool judges a photo as well as a human does, and
rejecting a good photo costs a sale.

Blocking the add-to-cart button exists as a Pro feature, so it's a deliberate
choice you make once the thresholds have been proven on your own orders — not
something a fresh install can do by accident.

= What is measured =

* **Sharpness** — Laplacian variance, to catch motion blur or missed focus.
* **Exposure** — overexposed or overly dark areas, where detail is permanently lost.
* **Backlight** — a subject noticeably darker than its background. Warns only.
* **Resolution** — actual image size compared to what your print format requires.
* **Screenshot detection** — recognises files that aren't photographs at all.

Shop-wide thresholds are adjustable from WooCommerce → Fotalyze.

= The score stays attached to the order =

The verdict the customer saw is recorded on the order line — for free, on
every order. So if a dispute comes up, you know the customer was warned and
ordered anyway.

= Free vs. Pro =

Free forever:

* Photo scoring with every metric above.
* Customer-facing warning — never blocks the order.
* Shop-wide thresholds.
* The score attached to every order line.

Fotalyze Pro adds:

* Optional blocking of the add-to-cart button, once you trust your thresholds.
* Per-product thresholds — a large-format print can demand a higher
  resolution than a small one, without changing the shop-wide default.
* A history screen listing every order with a photo score, instead of opening
  orders one by one.

== Installation ==

1. Install and activate the plugin.
2. Open WooCommerce → Fotalyze to adjust the thresholds if needed.
3. That's it: the plugin attaches itself to the file fields present on your
   product pages, whichever plugin provides them.

== Frequently Asked Questions ==

= Are my customers' photos sent anywhere? =

No. The analysis happens in the customer's browser. No file is transmitted,
stored, or accessed by any third party. The plugin makes no outgoing request.

= Does it work with the upload plugin I already use? =

The plugin doesn't attach to a specific field: it watches for image-accepting
file fields on the product page. So it works with most upload plugins without
any configuration.

= Can the customer order despite a warning? =

Yes, by default. Blocking is an option you enable yourself.

= Does the score recorded on the order count as proof? =

No. It's computed in the customer's browser and submitted with the form: it's
a self-reported statement, not binding proof. It's more than enough to inform
an ordinary customer conversation.

= What happens if the file can't be read? =

The plugin doesn't judge what it couldn't measure: it flags this and lets the
customer order anyway.

= Does licensing collect any data? =

The photo-scoring engine itself doesn't — it stays entirely in the customer's
browser, free or Pro. Licensing is handled by Freemius, which asks for your
own opt-in (not your customers') on activation, and may then collect
non-sensitive site data (URL, WordPress and plugin versions) to manage your
license and check for updates. See
[Freemius's privacy policy](https://freemius.com/privacy/) for details. This
is separate from and unrelated to customer photos, which Freemius never sees.

== Changelog ==

= 0.3.1 =
* Renamed from SnapProof to Fotalyze: the WordPress.org review team found
  SnapProof already in use by several independent photography products.

= 0.3.0 =
* Renamed from Photo-Check to SnapProof.
* Fotalyze Pro (blocking, per-product thresholds, order history) is now a
  separate add-on, sold through Freemius and installed on top of this plugin
  once purchased — the code for those features no longer ships in this free
  plugin at all. Nothing changes for the free tier itself.
* Dropped the bundled French translation file — translations are now handled
  entirely through translate.wordpress.org.

= 0.2.0 =
* Fotalyze Pro: optional blocking, per-product thresholds, order history
  screen. Free tier unchanged — photo scoring, customer warning, shop-wide
  thresholds, and the score attached to every order stay free.

= 0.1.0 =
* First release: photo scoring at upload, customer warning, adjustable
  thresholds, optional blocking, screenshot detection, score attached to the
  order line.

== Upgrade Notice ==

= 0.2.0 =
Adds optional Fotalyze Pro (blocking, per-product thresholds, order
history). Nothing changes for the free tier.
