=== PixelCraft with WebP === Contributors: secilkars Tags: webp, image optimizer, image compression, optimize images, wordpress speed Requires at least: 6.0 Tested up to: 6.9 Requires PHP: 7.4 Stable tag: 2.0.7 License: GPLv2 or later License URI: https://www.gnu.org/licenses/gpl-2.0.html Automatically convert JPG and PNG images to WebP, reduce file sizes and speed up your WordPress website. == Description == **PixelCraft with WebP** helps speed up your site by creating **WebP** copies of images you upload (and optionally replacing originals). It uses WordPress image APIs (**GD** or **Imagick**) with sensible PHP fallbacks when a host mis-reports WebP support. * **Automatic conversion** on upload for JPEG and PNG (after WordPress generates thumbnails). * **Keep originals** or replace them after a successful WebP write (your choice). * **Quality** preset and **max width/height** for the full-size WebP. * **Bulk conversion** in the admin (batched AJAX, optional WP-Cron background queue). * **Savings report** per attachment (stored in attachment meta). * **Settings** under **Settings → PixelCraft with WebP**. * **Media list column** showing optimization status. * **Frontend delivery**: when enabled, image URLs can switch to `.webp` for clients that send `Accept: image/webp` (compatible with WooCommerce product images that use core attachment APIs). * **No external services** — conversion runs on your server only. **Trademark notice:** [WordPress](https://wordpress.org/) is a registered trademark of the WordPress Foundation. This plugin is not affiliated with or endorsed by WordPress or the WordPress Foundation. More info: [wordpressplugin.adbear.cloud](https://wordpressplugin.adbear.cloud/) == Installation == 1. Upload the `pixelcraft-webp` folder to `/wp-content/plugins/`, or install the ZIP via **Plugins → Add New → Upload Plugin**. 2. Activate the plugin through the **Plugins** screen in WordPress. 3. Go to **Settings → PixelCraft with WebP** and adjust options. 4. For existing images, use **Bulk conversion** on the same settings page (WebP-capable PHP required). == Frequently Asked Questions == = Does this plugin send my images to a third-party service? = No. All conversion happens on your server. There are no paid APIs or remote encoders. = What PHP requirements are needed? = You need **WebP encoding** support via GD (`imagewebp`) and/or **Imagick** with WebP. The plugin detects capability and shows a notice in settings if encoding is not available. = Will it work with WooCommerce? = Yes. Product images use WordPress attachment URLs; when “Serve WebP in HTML” is enabled and a `.webp` companion exists, compatible browsers receive WebP URLs where the plugin applies filters. = What happens if I uninstall? = See **uninstall.php**: plugin options and scheduled bulk jobs are removed. WebP files and attachment meta created while the plugin was active are **not** automatically deleted (your media and files stay intact). You can remove `.webp` files manually if needed. = Does the plugin collect personal data? = No analytics or tracking are included. Optional file logging is local, disabled by default, and when enabled writes only under `wp-content/uploads/pixelcraft-webp/`. == Screenshots == 1. screenshot-1.png — Settings screen: conversion, delivery, diagnostics, and bulk conversion. 2. Media library — “WebP” column with savings summary. == Changelog == = 2.0.7 = * **Plugin Review:** optional logging and `.htaccess` / `index.php` stubs are written only under `wp-content/uploads/pixelcraft-webp/` (via `wp_upload_dir()`), not a generic uploads subfolder. * **Plugin Review:** PHP identifiers (classes, functions, `define`s, options, meta keys, AJAX actions, cron hooks, script/style handles, CSS class prefix) now use the distinct `pclwebp` prefix; one-time migration moves data from older `webpforge_*` keys where present. = 2.0.6 = * **Branding:** display name **PixelCraft with WebP**; directory slug, text domain, settings screen slug, and main file `pixelcraft-webp` / `pixelcraft-webp.php`. = 2.0.5 = * Branding preparation release before the current `pixelcraft-webp` package naming. = 2.0.4 = * WordPress coding standards / Plugin Check: translator comments for placeholder strings in bulk JS i18n; AJAX bulk inputs use `filter_input` where appropriate; `HTTP_ACCEPT` sanitized in the front-end WebP check; documented `phpcs:ignore` for the core `wp_image_editor` filter (cannot be prefixed). = 2.0.3 = * **Plugin URI** updated to the product page with full feature details: https://adbear.cloud = 2.0.2 = * Plugin header: simplified formatting for Plugin Check compatibility (**Description**, **Version**, **License** as GPLv2 or later); moved non-header lines out of the plugin docblock. = 2.0.1 = * Plugin header: **Plugin URI** points to the WordPress.org plugin page; **Author URI** remains the author site (WordPress.org requires these two URLs to differ). = 2.0.0 = * **Breaking package layout:** package structure was rebuilt and internal identifiers were namespaced with a unique prefix (options, meta keys, AJAX actions, cron hooks, CSS/JS handles) to avoid collisions with other plugins. * One-time migration copies legacy option/meta data, clears legacy cron hooks, and renames the uploads log folder when present. * If you previously installed an earlier package folder, remove the old plugin folder after upgrading to prevent duplicate plugins. = 1.0.2 = * Plugin display name was previously adjusted to comply with WordPress.org trademark rules (names may not begin with the restricted “WP” prefix). = 1.0.1 = * WordPress.org submission polish: readme contributor matches the WordPress.org profile username; removed redundant load_plugin_textdomain call (translations load automatically for plugins hosted on WordPress.org as of WordPress 6.7). = 1.0.0 = * Initial release on WordPress.org track: WebP conversion, bulk tools, admin settings, media column, optional WebP delivery via Accept header, logging, uninstall handler. == Upgrade Notice == = 2.0.7 = * Settings, bulk job state, attachment meta keys, and optional log files migrate automatically from older internal prefixes; uploads log directory moves to `uploads/pixelcraft-webp/` when upgrading from 2.0.6 or earlier. = 2.0.6 = * New slug `pixelcraft-webp` and matching text domain; ZIP folder must be `pixelcraft-webp`. Deactivate/remove any older plugin folder before activating to avoid duplicates. = 2.0.5 = * Transitional packaging update before the current `pixelcraft-webp` slug. = 2.0.4 = * Maintenance release for Plugin Check / PHPCS; no settings or data changes. = 2.0.3 = * Plugin URI / readme link to product page only. = 2.0.2 = * Plugin file header only (Plugin Check); no feature changes. = 2.0.1 = * Header/metadata only; no functional changes. = 2.0.0 = * Major package layout update; settings and media data are migrated automatically. Deactivate and delete older plugin folders after installing this version. = 1.0.2 = * Display name only (Plugins screen and settings menu); no change to features or data. = 1.0.1 = * Maintenance release for the plugin directory; no settings changes. = 1.0.0 = * First public release. == Privacy == This plugin does not collect, store, or transmit personal data to third parties. Conversion and logging (if enabled) occur on your server. See the FAQ for details.