Skip to content

Commit

Permalink
Merge branch 'branch/1.9.5'
Browse files Browse the repository at this point in the history
  • Loading branch information
Screenfeed committed Jul 16, 2019
2 parents cdc80f3 + d95a8db commit 87e4013
Show file tree
Hide file tree
Showing 23 changed files with 464 additions and 56 deletions.
32 changes: 26 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@

Dramatically reduce image file sizes without losing quality, make your website load faster, boost your SEO and save money on your bandwidth.

Imagify is the most advanced image compression tool, you can now use this power directly in WordPress.
After enabling it, all your images including thumbnails will be automatically optimized when uploaded into WordPress. You can also use Imagify to convert and serve WebP images for free.
Speed up your website with our image optimizer and get lighter images without losing quality.

Imagify is the most advanced tool to optimize images. You can now use this power directly in WordPress.
After enabling it, all your images including thumbnails will be automatically optimized when uploaded into WordPress. You can also use Imagify to convert WebP images for free.

WooCommerce and NextGen Gallery compatible.

Expand All @@ -27,12 +29,29 @@ Imagify can directly resize your images, **you won't have to lose time anymore o

Three level of compression are available:

- Normal, a lossless compression algorithm. The image quality won't be altered at all.
- Aggressive, a lossy compression algorithm. Stronger compression with a tiny loss of quality most of the time this is not even noticeable at all.
- Ultra, our strongest compression method using a lossy algorithm.
* Normal, a lossless compression algorithm. The image quality won't be altered at all.
* Aggressive, a lossy compression algorithm. Stronger compression with a tiny loss of quality most of the time this is not even noticeable at all.
* Ultra, our strongest compression method using a lossy algorithm.

With the backup option, you can change your mind whenever you want by restoring your images to their original version or optimize them to another compression level.

## How about webp images?
Now, for each image you optimize with the Imagify plugin, you will also get its **WebP version** (if you tick the option in the settings); in your Media library, this will result in the following image versions:

* full-sized optimized image,
* full-sized WebP image,
* optimized thumbnails,
* WebP thumbnails.

The optimization will also work for images included in your themes and plugins.

If you want, Imagify can also display WebP images on your front-end in two ways:

* `<picture>` tag,
* rewrite rules in the .htaccess file.

If you kept a backup copy of the original images, you have the possibility to **create their WebP version separately** (one by one or via the bulk optimization).

## What our users think of Imagify?

> "Imagify is an awesome tool that is powerful & easy to use. It's fast, rivals and surpasses other established plugins/software. Awesome!" — [Simon Harper](https://twitter.com/SRHDesign/status/663758140505235456)
Expand Down Expand Up @@ -65,6 +84,7 @@ Our mission is to improve the web, we are making it faster with [WP Rocket](http
* Twitter: [https://twitter.com/imagify](https://twitter.com/imagify)

## Related Plugins

* [WP Rocket](https://wp-rocket.me/): Best caching plugin to speed-up your WordPress website.
* [Rocket Lazy Load](https://wordpress.org/plugins/rocket-lazy-load/): Best Lazy Load script to reduce the number of HTTP requests and improves the websites loading time.

Expand All @@ -74,7 +94,7 @@ License: [GPLv2 or later](http://www.gnu.org/licenses/gpl-2.0.html).

### Which formats can be optimized?

Imagify can optimize jpg, png and gif (whether animated or not) formats.
Imagify can optimize images such as jpg, png and gif (whether animated or not) formats and for each image you optimize you also get its WebP version if you tick the option in the settings (except for animated gif).

### Can I use the plugin with a free account?

Expand Down
9 changes: 8 additions & 1 deletion assets/js/options.js
Original file line number Diff line number Diff line change
Expand Up @@ -566,7 +566,7 @@ window.imagify = window.imagify || {};
}

// Reset properties.
e.data.imagifyOptionsBulk.fetchQueue = imagifyOptions.bulk.contexts;
e.data.imagifyOptionsBulk.fetchQueue = imagifyOptions.bulk.contexts.slice();
e.data.imagifyOptionsBulk.queue = [];
e.data.imagifyOptionsBulk.processingQueue = [];
e.data.imagifyOptionsBulk.fetchError = false;
Expand Down Expand Up @@ -912,6 +912,13 @@ window.imagify = window.imagify || {};
html: imagifyOptions.bulk.labels.nothingToDoText,
type: 'info'
};
}
else if ( 'no-backup' === this.error ) {
errorArgs = {
title: imagifyOptions.bulk.labels.nothingToDoTitle,
html: imagifyOptions.bulk.labels.nothingToDoNoBackupText,
type: 'info'
};
} else {
errorArgs = {
title: imagifyOptions.bulk.labels.error,
Expand Down
2 changes: 1 addition & 1 deletion assets/js/options.min.js

Large diffs are not rendered by default.

8 changes: 8 additions & 0 deletions assets/js/pricing-modal.js
Original file line number Diff line number Diff line change
Expand Up @@ -1106,6 +1106,14 @@
checkout_datas.onetime = JSON.parse( $onetime_offer.attr( 'data-offer' ) );
}

// Clear user account cache.
if ( imagifyPricingModal.userDataCache ) {
$.post( ajaxurl, {
action: imagifyPricingModal.userDataCache.deleteAction,
_wpnonce: imagifyPricingModal.userDataCache.deleteNonce
} );
}

// Change views to go to checkout/payment view.
imagifyModal.switchToView( imagifyModal.$paymentView );

Expand Down
Loading

0 comments on commit 87e4013

Please sign in to comment.