Getting More from ExactDN

The default behavior of ExactDN is to use your existing images, compress them losslessly, and only resize when necessary, but it can do much more than that!

Important: For all of these options, make sure that you insert the option above where it says to stop editing. There will always be a line in your wp-config.php that says something like "That's all, stop editing!". Anything below that line will not work properly.

More Compression

By default, ExactDN performs lossless (original quality) compression and obeys the strip/metadata flag in the plugin options to make sure your images are packed efficiently. However, if you'd like, we can take things up a notch (or 5) and perform high quality lossy compression for up to 5x more savings. Just add this line to your wp-config.php

define( 'EXACTDN_LOSSY', true );

You can also change the default quality level by setting EXACTDN_LOSSY to a number from 60-90 instead of just "true".

Resizing for Better Quality

If you aren't satisfied with how the "resizes" that Wordpress generates are looking, you can tell ExactDN to re-resize all images on-demand, so that the resized versions will use the superior GraphicsMagick library, and you can also adjust the image quality on the Advanced EWWW IO settings (don't go higher than 90 though, that's just silly). To enable ExactDN to override existing resizes, you will simply need to add this line to your wp-config.php file:

define( 'EXACTDN_RESIZE_EXISTING', true );

Going Beyond Images

With version 4.1, this option is enabled by default. If you need to disable it, you add the line below and set it to false. In previous versions, you can tell ExactDN to serve all files from the wp-includes (core WP content) and wp-content (user-generated content) with a single line in your wp-config.php:

define( 'EXACTDN_ALL_THE_THINGS', true );

The EWWW IO plugin will then do a simple replacement in all wp-includes and wp-content links to allow ExactDN to serve CSS, JavaScript, Fonts, and more.

If you need any assistance with these functions, just use the contact form below!

Still need help? Contact Us Contact Us