=== ShortPixel Image Optimizer === Contributors: AlexSP Tags: image optimizer, image optimization, compress pdf, compress jpeg, compress png, image compression, wp smush, compress images, optimize images, shrink jpeg, optimize photos, tinypng Requires at least: 3.2.0 Tested up to: 4.5 Stable tag: 3.3.4 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html Easy-to-use, lightweight plugin that optimizes images & PDFs. Make your website faster, keeping the images’ high quality. WooCommerce compatible. == Description == ShortPixel makes your website load faster by resizing/rescaling and then compressing the images. Optimized images mean better user experience, better PageSpeed Insights results, better Google PageRank (SEO) and more visitors. Both lossy and lossless image compression available for all common image types (JPG, PNG and GIF), plus PDF files. ShortPixel optimized so far over 60M images from 32,000 different websites saving them more than 10 Petabytes of traffic. **How does it work?** * choose your favorite settings like lossy/lossless, keep/remove EXIF, backup, optimize thumbs, etc. * all your current pics can be easily scaled and optimized with a single click via our **bulk optimization** page. * new images are automatically resized and compressed in the cloud right after they are uploaded. * smaller images will start being served from your website once they were optimized It's that easy indeed. You can try a **live demo** here (via addendio.com) or you can watch a short intro video on how to optimize images with our plugin: [youtube https://www.youtube.com/watch?v=5EbX0Hsy6j4] **Why use ShortPixel to optimize your images? Here are some of the features:** * **24h support** directly from the developers * compress JPG, PNG, GIF (still and animated) images and PDF documents * optimize thumbnails as well as featured images * featured images can be rescaled before being optimized. **No need for additional plugins** like Imsanity * CMYK to RGB conversion * skip already optimized images * easily test lossy/lossless versions of the images * great for photographers: **keep or remove EXIF** data from your images * no file size limit * works well with both HTTPS and HTTP websites * it is safe to test and use the plugin: all the original **images can be restored** with a click * 'Bulk' optimize existing images with one click * 40 days optimization report with all image details and overall statistics * works great for eCommerce websites using WooCommerce plugin * Use the **same API Key** on many sites (including multisites) * compatible with WP Engine hosted websites and all the major hosting providers * compatible with WPML and WPML Media plugins * receive **100 free image optimization credits** each month. * images that are optimized less that 5% are bonus ShortPixel free and paid plans offer the same features and deliver the same optimization quality. The difference is made by the available image quota. Additional image quota can be bought for as little as $4,99 for 5,000 image optimization credits. Both monthly subscriptions and one-time plans are available. The same plan can be used for multiple websites. Make an instant image compression test on your site or compress some images to make sure they are to your liking. We believe in a better society, so we support non-profits. Contact us and we’ll see how we can help! Help us spread a the word by recommending ShortPixel to your friends and collect 100 additional image credits for each referred sign up. Make money by promoting a great plugin with our 50/50 affiliate program. > ★★★★★ **Increased Page Speed and Optimizes Properly** > "I noticed a huge difference on page speed after running the bulk compression. Does exactly as promised. An excellent plugin for those that care about page speed, SEO and optimizing their sites to the fullest potential." — [BrowCo](https://wordpress.org/support/topic/increased-page-speed-and-optimizes-properly#post-) > > ★★★★★ **Great tool and excellent support** > "This tool does what it's supposed to do: automatically compress images with a great, clear interface. Also, support is more than excellent with the developers trying everything to help you, even beyond the scope of the plugin! Very recommended." — [Tomeranaray](https://wordpress.org/support/topic/great-tool-and-excellent-support-2?replies=1) > > ★★★★★ **Outstanding Time Saving Application** > "What a time saver! I bought Short Pixel on the advice of my website designer because it would save him time optimizing the photos in a website and therefore save me money. This has worked out for all of us- my client saved money on our time; and the software is bullet proof. We will continue to purchase this software for any site we develop with a lot of photos." — [amulhern](https://wordpress.org/support/topic/outstanding-time-saving-application?replies=1#post-) > **New features coming soon:** * support for NextGen Galley * support for custom image locations. * mass restore for backed-up images **Get in touch!** * Email https://shortpixel.com/contact * Twitter https://twitter.com/shortpixel * Google+ https://www.google.com/+Shortpixelpage * Facebook https://www.facebook.com/ShortPixel * LinkedIn https://www.linkedin.com/company/shortpixel **Keywords:** picture, optimization, image editor, pngout, upload speed, shortpixel, compression, jpegmini, webp, lossless, cwebp, media, jpegtran, image, image optimisation, image optimization, shrink, picture, photo, optimize photos, compress, performance, tinypng, crunch, pngquant, attachment, optimize, pictures, fast, images, image files, image quality, lossy, upload, kraken, resize, seo, smushit, optipng, kraken image optimizer, ewww, photo optimization, gifsicle, image optimizer, images, krakenio, png, gmagick, image optimize, pdf, pdf optimisation, pdf optimization, optimize pdf, optimise pdf, shrink pdf, jpg, jpeg, jpg optimisation, jpg optimization, optimize jpg, optimise jpg, shrink jpg, gif, animated gif, optimize gif, optimise gif, optimizer, optimiser, compresion, optimization, cruncher, image cruncher, compress png, compress jpg, compress jpeg, compress pdf, faster loading times, image optimiser, improve pagerank, optimise, optimize animated gif, optimise jpeg, optimize jpeg, optimize png, optimise png, optimise pdf, optimize pdf, tinyjpg, short pixel, shortpixel, woocommerce compatible, wpml compatible, smush, imsanity, scale, wp smush, compress images, pdf compression, optimize images, shrink jpeg, compressor, faster website, google pagerank, imagify, prizm, optimus, zara, improve page speed, PageSpeed Insights, sitespeed, smaller images, tinyjpeg, wordpress compression, wordPress image tool, reduce image size, bandwidth, pics, keep exif, remove exif, speed up site, speed up website, compress thumbnails, optimize thumbnails == Installation == Let's get ShortPixel plugin running on your WordPress website: 1. Sign up using your email at https://shortpixel.com/wp-apikey 2. You will receive your personal API key in a confirmation email, to the address you provided. 3. Upload the ShortPixel plugin to the /wp-content/plugins/ directory 4. Use your unique API key to activate ShortPixel plugin in the 'Plugins' menu in WordPress. 5. Uploaded images can be automatically optimized in the Media Library. 6. Done! == Frequently Asked Questions == = What happens to the existing images, when installing the ShortPixel plugin? = Just installing the plugin won’t start the optimization process on existing images. To begin optimizing the images previously loaded on your website, you should: * Go to **Media Library**, and select which of the existing images you want to optimize. OR * Use the **Bulk ShortPixel** option, to automatically optimize all your previous library. = Should I pick lossy or lossless optimization? = This depends on your compression needs. **Lossy** has a better compression rate than lossless compression. The resulting image is not 100% identical with the original. Works well for photos taken with your camera. With **lossless** compression, the shrunk image will be indistinguishable from the original, and smaller in size. Use this when you do not want to loose any of the original image's details. Works best for technical drawings, clip art and comics. For more information about the difference read the Wiki article on the lossy/lossless difference. = Why do I need an API key? = ShortPixel Image Optimizer uses automated processes to crunch images. The ShortPixel API integrates in the dashboard of your WordPress website and processes both old and new images automatically. You can also use the same API, multiple times, in your own applications, the Documentation API shows you how. = Where do I get my API key? = To get your API key, you must Sign up to ShortPixel. You will receive your personal API key in a confirmation email to the address you provided. Use your API key to activate ShortPixel plugin in the 'Plugins' menu in WordPress. = Where do I use my API key? = You use the API key in the ShortPixel plugin Settings (don’t forget to click Save Settings). The same API key can be used on multiple websites/blogs. = How do I activate the API key on a multisite? = You have to activate the plugin in the network admin and then activate it manually on each individual site in the multisite. Once you have done that, the Settings menu appears and you can add the API key for each individual site. As an alternative, you can edit wp-config.php and add this line define('SHORTPIXEL_API_KEY', 'APIKEY') where 'APIKEY' is the API Key received upon sign up. If configured that way, the API key will be used for all the sites of the multisite but will only be visible on the main site's Settings page, being hidden for the rest of the sites. = How does Bulk Optimization work? = The Bulk option makes ShortPixel optimize all your images at once (not one by one). You can do this in the Media > Bulk ShortPixel section by clicking on the **Compress all your images** button. The batch optimization may work slower, depending on your existing image gallery. Please be patient and do not close the Wordpress admin while you are rolling the Bulk Processing on your media gallery. = Are my images safe? = Yes, privacy is guaranteed. The ShortPixel encryption process doesn't allow anyone to view your photos. = What happens with my original images after they have been processed with ShortPixel? = If you didn't make any changes in the plugin Settings and you left the 'Image backup' option checked, the originals will be located in a backup folder at: /wp-content/uploads/ShortpixelBackups After optimization, if you want to switch back to a certain original image, hit Restore backup in the Media Library. If you are happy with the optimized images, you can deactivate saving the backups in the plugin Settings. = What types of formats can be optimized? = For now, ShortPixel supports JPEG, PNG, PDF and GIF formats. Animated GIFs and thumbnails are also optimized. Additional formats are scheduled for optimization in the future. = Will ShortPixel work if my website is using CloudFare? = Yes, the image processing happens without interfering with the CloudFare protection. The ShortPixel and CloudFare plugins are also compatible. = I’m stuck. What do I do? = The ShortPixel team is here to help. Contact us! == Screenshots == 1. Activate your API key in the plugin Settings. (Settings>ShortPixel) 2. Compress all your past images with one click. (Media>Bulk) 3. Your stats: number of processed files, saved space, average compression, saved bandwidth, remaining images. (Settings>ShortPixel) 4. Restore to original image. (Media>Library) == Changelog == = 3.3.4 = * Fix Settings Resources display * Add user and password authentication option for downloading images * fix for PHP installs that lack utf8_encode function * retry from the optimize Ajax post when server sends a 500 error = 3.3.3 = * Compatibility with WPML Media plugin * Fix ListView link on multisites * Fix for server configurations that have max_execution_time = 0 = 3.3.2 = * fix for PHP installs that are missing the mcrypt functions = 3.3.1 = * small fix to the quota revalidation process = 3.3.0 = * reoptimize lossless/lossy * optimize thumbs for images already optimized * compatibility with WPML = 3.2.1 = * old PHP compatibility fix = 3.2.0 = * ICC color profile is always preserved. * possibility to hide the API key in a multisite install. * detection of best protocol to use: https / http. = 3.1.9 = * option to keep the EXIF data and ICC profile. * more explanations on settings. = 3.1.8 = * fix reloading bulk page on quota used up = 3.1.7 = * bugfixes = 3.1.6 = * look and feel improvements = 3.1.5 = * longer timeout for the API Key validation postback = 3.1.4 = * fix bug in bulk processing = 3.1.3 = * fix problems with activating the keys on some systems that do not allow post requests = 3.1.2 = * bulk runs now only on media and post pages * settings page redesign * client site access test from our servers when activating the API key and warn if site not accessible * fix last image sometimes unprocessed by bulk * fix progress bar to advance when skipping images = 3.1.1 = * fix calculation of displayed counters of images to be processed on bulk start * fix restore option that appeared wrongly sometimes - thanks to Bogdan Günther @ http://medianotions.de = 3.1.0 = * rescale big images option - thanks to Bogdan Günther @ http://medianotions.de * referral system * show how many thumbs are optimized for each image * fix the Visual Composer conflict - thanks to Andy Adams - www.certainlysoftware.com = 3.0.8 = * fix issue with files in /tmp dir that weren't deleted in certain cases, issue noted by Daniel - http://germangoogleguy.com = 3.0.7 = * Affiliate codes * Solve conflict with wp-ses plugin * skip image on _FAIL message * mixed content warning fix = 3.0.6 = * Optimized bulk processor behaviour when navigating from one admin page to another. * Improved some explanatory texts. = 3.0.5 = * different bug fixes = 3.0.2 = * Progress bar improvements = 3.0.0 = * Major update * when validating the API Key on a multisite a message with instructions on how to add the API Key in wp-config.php is displayed * check when an optimized image cannot be saved and stop bulk processing (if running) * restore backup is not displayed when option is not activated * change image status in the Media Library ShortPixel Compression column imediately after the image is reduced, not only after reloading the page. Add spinner to the "Image waiting to be processed" status. * images with relative URLs are converted to absolute URL so they can be processed by the plugin * proper handling of images with non-standard latin chars inside * better average compression computation * rewritten handleImageUpload * removed MUST_HAVE_KEY * changed isProcessable * and others :) = 2.1.9 = * Check if the server address is localhost and warn when activating the API key. * Quota exceeded now displays a link to billing page = 2.1.8 = * improved texts/explanations for different sections * added extra option to convert CMYK to RGB for further size reduction * display credits for one time payments as well * API Key can also be configured in wp-config.php like this: define('SHORTPIXEL_API_KEY', 'YOUR_API_KEY'); Useful for multisite installations = 2.1.7 = * improved checking and reporting of firewall restriction on client side * optimized files are saved in the right location when dealing with WP Multisite * updated screenshots = 2.1.6 = * improved login procedure upon quota is exceeded * when quota is exceeded user can more easily increase it * extra warning regarding the number of thumbs available additionally to main images * improved counting of images * check if https works if not use http for communications with the API * better handling of error messages when API service cannot be contacted = 2.1.5 = * visiting Settings/ShortPixel now resets the Queue flag * when plgin's API Key cannot be validated the JS script that calls admin-ajax.php is stopped * return meaningful message on Media Library listing when API Key is not valid * extra check for API Key validation = 2.1.4 = * fixed global variable issue for some variables * fixed API Key validation that occurred for some of the hosting providers out there when HTTPS was used = 2.1.3 = * when backup wasn't activated the processed files weren't put in the right place * removed forgotten debug message * changed "optimised" to "optimized". Welcome USA :) * improved bulk handling and also "cancel" and "resume" options * fixed conflict with wpmandrill on wp_mail function = 2.1.2 = * fixed condition that hanged bulk processing sometimes * added "Reduced by" text * more useful wrong/missing API Key message * test if a backup dir can be created upon plugin validation * added alert when a file couldn't have been overwritten * added alert when a file cannot be saved in backup dir * added Quota on API Calls functionality * added resume bulk processing feature = 2.1.1 = * fixed condition in function that validates content by extension * fixed bug that prevented files uploaded directly in /uploads dir to be properly processed/saved * retry link added besides files that failed to be optimized due to different reasons = 2.1.0 = * speedier file download from API resource * SQL changed to use less CPU intensive queries * improved BULK processing logic, faster results * different small fixes & improvements * skip processed images when running bulk processing = 2.0.8 = * improved logic for processed files to be downloaded every time * sometimes the processing script stopped before finishing all the files to be optimized, fixed * improved processing speed for bulk processing = 2.0.7 = * fixed issue with "missing" images * save plugin version for easier debugging * list mode is set for media library for first time run * fixed bug that prevented backup-ed files to remove when the original was removed = 2.0.6 = * different small fixes = 2.0.5 = * small improvement to make the optimization of newly added images faster. * fixed condition when the PDF files weren't processed * different improvements = 2.0.4 = * fixed recursive backup directory size counter * added backup with subdirectory structure to handle many files * empty backup can handle subdirectories & sets the right flag for backup restore * latest images are optimized first * check for missing images on disk but still linked in DB = 2.0.3 = * added extra check for bad server responses * 10 files/post request for file processing * updated error codes according to API v2 * updated description = 2.0.2 = * added more tags so we better describe newest features = 2.0.1 = * some improvements to bulk processing * PDF files are also optimized now * fixed a thumb processing bug that caused extra API requests = 2.0.0 = * SP plugin uses API v2 and the processing speed is significantly improved = 1.6.10 = * Corrected a bug affecting option saving for some of the users. = 1.6.9 = * Optimize now option only appears when the image wasn't optimized = 1.6.8 = * Bulk Processing optimized to skip images that were already optimized with the same options when Bulk Processing is run multiple times * changed the place where original (backup) files are stored * extra check for missing(expired) processed images = 1.6.7 = * extra check for exif_imagetype function = 1.6.6 = * changed method from GET to POST for API Key validation * bulk optimization text update = 1.6.5 = * plugin tested for WP 4.1 = 1.6.4 = * API validation URL changed to v1 = 1.6.3 = * fallback to http if plugin activation fails for https * added error mesage API Key validation fail = 1.6.2 = * extra check for images that return 3xx/4xx codes to be ignored * API Key validation (error) message is returned to user * error messages for images are displayed in the "ShortPixel Compression" column = 1.6.1 = * fixed small upload glitch * added succes message upon bulk processing completion * improved image backup * lossy option by default upon plugin installation = 1.6.0 = * images' requests for optimization are sent for all sizes upon image upload in media gallery * non-image (e.g. PDF files) are ignored now @ bulk processing * bulk optimization improved & some bugs fixed. * FAQ/Description small changes = 1.5.1 = * readme changes = 1.5.0 = * pictures are removed from backup as well when deleted * restore backup warning/error fixed * fixed useless/bad AJAX requests that occured sometimes * added user agent to API Key validation for debugging purposes * Bulk Processing was freezing for some users, fixed this + added Cancel button = 1.4.1 = * optimize again overwrote the original image, fixed * fixed restore errors * changes to FAQ/Description texts = 1.4.0 = * Bulk image processing improved so it can optimize all the images in background while admin page is open * small changes in readme.txt description = 1.3.5 = * fixed broken link in settings page * updated FAQ * description updated = 1.3.2 = * fixed missing action link @ Bulk Processing * added more screenshots = 1.3.1 = * possible fix for API key validation failing * added backup and restore for images that are processed with shortpixel * optimize now feature on Media Library = 1.0.6 = * bulk processing runs in background now. = 1.0.5 = * extra check for the converted images to be safely copied from ShortPixel = 1.0.4 = * corrections and additions to readme.txt and wp-shortpixel.php = 1.0.3 = * minor bug fixes = 1.0.2 = * Updated Bulk editing to run in background * Updated default options * Added notifications on activation = 1.0 = * First working version