Code to disable bulk PDF compression

[ad_1]

Ok so I may have found a temporary solution,

Comment out this line in inc/functions/attachments.php

if ( 'image' !== $type ) {
	//$mimes['pdf'] = 'application/pdf';
}

It should be line 25

I have done this and reloaded the bulk optimiser, I’m now only seeing images in the bulk optimiser details whilst running.

If an admin from Imagify could confirm that this method is an appropriate solution and one that isn’t going to cause issues that would be great. From my initial testing it seems to be an adequate fix.

Perhaps we could have a filter to be able to do this without editing the plugin files?

Many thanks

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer