{"id":257945,"date":"2025-11-04T18:49:18","date_gmt":"2025-11-04T18:49:18","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/raina-easy-images-compression-on-upload\/"},"modified":"2025-12-04T13:59:04","modified_gmt":"2025-12-04T13:59:04","slug":"raina-image-compression","status":"publish","type":"plugin","link":"https:\/\/pcd.wordpress.org\/plugins\/raina-image-compression\/","author":13136296,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.8.2","stable_tag":"1.8.2","tested":"6.9.4","requires":"5.6","requires_php":"7.4","requires_plugins":null,"header_name":"Raina Image Compression","header_author":"Rainafarai","header_description":"Raina Image Compression is a lightweight, user-friendly plugin designed to optimize your images automatically with minimal settings. It ensures high-definition quality while reducing file size for faster website loading.","assets_banners_color":"272c2f","last_updated":"2025-12-04 13:59:04","external_support_url":"","external_repository_url":"","donate_link":"https:\/\/www.paypal.com\/paypalme\/rainafarai","header_plugin_uri":"https:\/\/www.reggae.it\/my-wordpress-plugins","header_author_uri":"","rating":5,"author_block_rating":0,"active_installs":40,"downloads":393,"num_ratings":1,"support_threads":1,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"1.7":{"tag":"1.7","author":"rainafarai","date":"2025-11-04 21:04:33"},"1.8":{"tag":"1.8","author":"rainafarai","date":"2025-12-01 20:08:36"},"1.8.2":{"tag":"1.8.2","author":"rainafarai","date":"2025-12-04 13:59:04"}},"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":1},"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":3390274,"resolution":"128x128","location":"assets","locale":""},"icon-256x256.png":{"filename":"icon-256x256.png","revision":3390274,"resolution":"256x256","location":"assets","locale":""}},"assets_banners":{"banner-1544x500.png":{"filename":"banner-1544x500.png","revision":3390274,"resolution":"1544x500","location":"assets","locale":""},"banner-772x250.png":{"filename":"banner-772x250.png","revision":3390261,"resolution":"772x250","location":"assets","locale":""}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.7","1.8","1.8.2"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":3405329,"resolution":"1","location":"assets","locale":""},"screenshot-2.png":{"filename":"screenshot-2.png","revision":3405329,"resolution":"2","location":"assets","locale":""},"screenshot-3.png":{"filename":"screenshot-3.png","revision":3389965,"resolution":"3","location":"assets","locale":""},"screenshot-4.png":{"filename":"screenshot-4.png","revision":3389965,"resolution":"4","location":"assets","locale":""},"screenshot-5.png":{"filename":"screenshot-5.png","revision":3389978,"resolution":"5","location":"assets","locale":""},"screenshot-6.png":{"filename":"screenshot-6.png","revision":3407189,"resolution":"6","location":"assets","locale":""},"screenshot-7.png":{"filename":"screenshot-7.png","revision":3407189,"resolution":"7","location":"assets","locale":""},"screenshot-8.png":{"filename":"screenshot-8.png","revision":3407189,"resolution":"8","location":"assets","locale":""}},"screenshots":{"1":"Plugin settings page with compression controls.","2":"Plugin settings page with compression controls.","3":"Example Telegram notification for a compressed image.","4":"Admin bar toggle for quick enable\/disable.","5":"Outputfile Options","6":"Comparison between the original image 2Mb and the optimized version 79kb. Image width px: 1200, JPG quality 70.","7":"Comparison between the original image 7Mb and the optimized version 55kb. Image width px: 1200, JPG quality 70.","8":"Comparison between the original image 1Mb and the optimized version 91kb. Image width px: 1200, JPG quality 70."},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[29152,29161,2192,2194,15376],"plugin_category":[50,52,54],"plugin_contributors":[190648],"plugin_business_model":[],"class_list":["post-257945","plugin","type-plugin","status-publish","hentry","plugin_tags-image-compression","plugin_tags-image-optimization","plugin_tags-jpg","plugin_tags-png","plugin_tags-webp","plugin_category-media","plugin_category-performance","plugin_category-security-and-spam-protection","plugin_contributors-rainafarai","plugin_committers-rainafarai"],"banners":{"banner":"https:\/\/ps.w.org\/raina-image-compression\/assets\/banner-772x250.png?rev=3390261","banner_2x":"https:\/\/ps.w.org\/raina-image-compression\/assets\/banner-1544x500.png?rev=3390274","banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/raina-image-compression\/assets\/icon-128x128.png?rev=3390274","icon_2x":"https:\/\/ps.w.org\/raina-image-compression\/assets\/icon-256x256.png?rev=3390274","generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/raina-image-compression\/assets\/screenshot-1.png?rev=3405329","caption":"Plugin settings page with compression controls."},{"src":"https:\/\/ps.w.org\/raina-image-compression\/assets\/screenshot-2.png?rev=3405329","caption":"Plugin settings page with compression controls."},{"src":"https:\/\/ps.w.org\/raina-image-compression\/assets\/screenshot-3.png?rev=3389965","caption":"Example Telegram notification for a compressed image."},{"src":"https:\/\/ps.w.org\/raina-image-compression\/assets\/screenshot-4.png?rev=3389965","caption":"Admin bar toggle for quick enable\/disable."},{"src":"https:\/\/ps.w.org\/raina-image-compression\/assets\/screenshot-5.png?rev=3389978","caption":"Outputfile Options"},{"src":"https:\/\/ps.w.org\/raina-image-compression\/assets\/screenshot-6.png?rev=3407189","caption":"Comparison between the original image 2Mb and the optimized version 79kb. Image width px: 1200, JPG quality 70."},{"src":"https:\/\/ps.w.org\/raina-image-compression\/assets\/screenshot-7.png?rev=3407189","caption":"Comparison between the original image 7Mb and the optimized version 55kb. Image width px: 1200, JPG quality 70."},{"src":"https:\/\/ps.w.org\/raina-image-compression\/assets\/screenshot-8.png?rev=3407189","caption":"Comparison between the original image 1Mb and the optimized version 91kb. Image width px: 1200, JPG quality 70."}],"raw_content":"<!--section=description-->\n<p><strong>Raina Image Compression<\/strong> is a powerful WordPress plugin that automatically optimizes images during upload while giving full control over compression, output format, and metadata. It is designed for site owners who want fast-loading pages, SEO-friendly images, and a reliable system that prevents users from uploading huge, unoptimized files.\nThe plugin works with the built-in <strong>GD library<\/strong> and intelligently handles <strong>JPG, PNG, and WebP<\/strong> formats. It can also <strong>convert non-transparent PNGs to JPG<\/strong>, achieving better compression without visible quality loss.<\/p>\n\n<p>Ideal for multi-author sites or blogs managed by non-technical users, Raina Image Compression operates automatically in the background, optionally sends Telegram notifications, and keeps your image sizes under control.<\/p>\n\n<h4>Key Features<\/h4>\n\n<p><strong>Smart Image Optimization<\/strong>\n- Automatically compresses JPG and PNG images.\n- Converts non-transparent PNGs to JPG for better performance.<\/p>\n\n<p><strong>Output Mode Selection (4 available modes)<\/strong>\nChoose how your images are generated after upload:\n- 1. JPG\/PNG ONLY Compresses only JPG and PNG files.<br \/>\n- 2. WEBP ONLY  Creates only a WebP version.<br \/>\n- 3. JPG\/PNG PRIMARY + WEBP COPY  Keeps the original JPG\/PNG as the main file and creates a WebP copy in the media library.<br \/>\n- 4. WEBP PRIMARY + JPG\/PNG COPY Sets the WebP image as the primary file while retaining a JPG\/PNG copy for compatibility.<\/p>\n\n<p><strong>Maximum Width Control<\/strong><br \/>\nSet a maximum pixel width for uploaded images to automatically resize large photos from cameras or smartphones.<\/p>\n\n<p><strong>Smart JPG Size Reduction (by KB Limit)<\/strong><br \/>\nWhen enabled, the plugin will try to reduce a JPG\u2019s file size to stay below a specific kilobyte (KB) limit by dynamically lowering the quality level until the target is reached. ( ONLY FOR JPG and No transparent PNG )<\/p>\n\n<p><strong>Compress Only from Post Editor (Optional)<\/strong><br \/>\nOption to limit compression to images uploaded directly from the WordPress post editor, excluding other uploads from plugins or themes or media library.<\/p>\n\n<p><strong>Post Type Filter<\/strong>\nAdded a new option to select which post types the plugin should apply to. If none are selected, all post types will be processed.<\/p>\n\n<p><strong>Keep Original File Copy<\/strong>\nOption to create a full-size copy of the original uploaded image in the media library for backup or archival purposes.<\/p>\n\n<p><strong>Disable WP Auto-Generated Thumbnails<\/strong>\nOption to disable WP Auto-Generated Thumbnails. Save disk space by preventing WordPress from creating unnecessary image files.<\/p>\n\n<p><strong>Automatic Metadata Filling<\/strong><br \/>\nAutomatically fills ALT, Description, and Caption (Excerpt) fields using the parent post information \u2014 ideal for improving SEO with no extra effort.<\/p>\n\n<p><strong>Admin Bar Toggle<\/strong><br \/>\nEasily enable or disable compression from the WordPress admin bar without entering the settings page, handy when you want to upload images related to the theme or the builder, basically content not associated with any post type.<\/p>\n\n<p><strong>Telegram Notifications (Optional)<\/strong><br \/>\nIf the \u201cNotifications for Telegram\u201d plugin is installed, you will receive a message for each processed image containing:\n- File name<br \/>\n- Format<br \/>\n- Compression ratio<\/p>\n\n<p><strong>Logging<\/strong><br \/>\nCan Records all compression events to the WordPress debug log (<code>wp-content\/debug.log<\/code>) for debugging or performance tracking.<\/p>\n\n<p><strong>Lightweight &amp; Compatible<\/strong>\n- Works entirely on your server with no external API, CDN or remote requests.<br \/>\n- Fully compatible with shared hosting environments.<br \/>\n- No third-party dependencies.<\/p>\n\n<h4>Ideal Use Cases<\/h4>\n\n<ul>\n<li>Websites managed by non-technical users who often upload large, unoptimized images.  <\/li>\n<li>Site owners and developers who want full control over compression settings.  <\/li>\n<li>Blogs or news sites that require consistent image optimization without external services.  <\/li>\n<\/ul>\n\n<h4>Summary<\/h4>\n\n<p>Raina Image Compression was built to solve a common problem: users uploading excessively large images that slow down websites.<br \/>\nIt works quietly in the background, optimizing every image for size, speed, and SEO \u2014 so your site stays fast, clean, and professional.<\/p>\n\n<h3>License<\/h3>\n\n<p>This plugin is free software; you can redistribute it and\/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Upload the plugin files to the <code>\/wp-content\/plugins\/raina-image-compression\/<\/code> directory, or install it directly from the WordPress Plugin Directory.<\/li>\n<li>Activate the plugin through the <strong>Plugins<\/strong> screen in WordPress.<\/li>\n<li>Go to <strong>Settings \u2192 Raina Image Compression<\/strong> to configure your compression options.<\/li>\n<li>Optionally, install the <strong>Notifications for Telegram<\/strong> plugin to receive Telegram alerts for image compression events.<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt id='does%20this%20plugin%20require%20an%20external%20api%20or%20cloud%20service%3F'><h3>Does this plugin require an external API or cloud service?<\/h3><\/dt>\n<dd><p>No. Raina Image Compression works entirely on your own server using WordPress\u2019s built-in GD library. No data leaves your site.<\/p><\/dd>\n<dt id='does%20it%20support%20webp%3F'><h3>Does it support WebP?<\/h3><\/dt>\n<dd><p>Yes. You can choose between JPG\/PNG, WebP only, or hybrid modes that create both versions.<\/p><\/dd>\n<dt id='can%20it%20automatically%20fill%20alt%20text%20and%20captions%3F'><h3>Can it automatically fill ALT text and captions?<\/h3><\/dt>\n<dd><p>Yes. When enabled, the plugin automatically sets ALT, Description, and Caption fields using the parent post title.<\/p><\/dd>\n<dt id='will%20it%20change%20existing%20images%3F'><h3>Will it change existing images?<\/h3><\/dt>\n<dd><p>It only compresses new uploads.<\/p><\/dd>\n<dt id='does%20it%20work%20on%20shared%20hosting%3F'><h3>Does it work on shared hosting?<\/h3><\/dt>\n<dd><p>Yes. The plugin is lightweight and compatible with all common hosting environments that support the PHP GD library.<\/p><\/dd>\n<dt id='how%20does%20the%20telegram%20notification%20feature%20work%3F'><h3>How does the Telegram notification feature work?<\/h3><\/dt>\n<dd><p>If you have the \u201cNotifications for Telegram\u201d plugin installed and configured, Raina Image Compression will send a Telegram message each time an image is processed, showing the filename, format, size reduction.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.8.2<\/h4>\n\n<ul>\n<li>Fixed an issue where non-transparent images were incorrectly detected as transparent.<\/li>\n<li>Updated some Text in Option Page<\/li>\n<\/ul>\n\n<h4>1.8<\/h4>\n\n<ul>\n<li>Added a new option to select which post types the plugin should apply to.<\/li>\n<li>Added a new option to create a copy of the original uploaded image.<\/li>\n<li>Added a new option to disable WP Auto-Generated Thumbnails.<\/li>\n<li>Removed some unuseful Telegram logs<\/li>\n<li>FIX some Warnings on option page.<\/li>\n<li>Removed all inline CSS in admin option page<\/li>\n<li>Header &amp; Donation button<\/li>\n<\/ul>\n\n<h4>1.7<\/h4>\n\n<ul>\n<li>Initial release.  <\/li>\n<li>Added Output Mode selection with 4 formats (JPG\/PNG only, WebP only, dual modes).<\/li>\n<li>Added JPG compression by target KB limit.<\/li>\n<li>Added PNG-to-JPG automatic conversion for non-transparent images.<\/li>\n<li>Updated description and compliance with WordPress coding standards.<\/li>\n<li>Added optional Telegram notifications.<\/li>\n<li>Added admin bar toggle for compression control.<\/li>\n<li>Improved metadata automation (ALT, caption, description).<\/li>\n<\/ul>","raw_excerpt":"Smart automatic image optimization and compression for faster WordPress sites.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/257945","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=257945"}],"author":[{"embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/rainafarai"}],"wp:attachment":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=257945"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=257945"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=257945"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=257945"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=257945"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=257945"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}