PDF Compression

It seems that when the pdf is exported, it compress images, is there a way to turn this off? As I have a 6738x4764 image as I exported it bigger to see if it would stop it but it still compresses it.

Here is a comparison:
image
This is on the actual image

PDF
image

Hi @Kai

I couldn’t replicate this problem. I’ve added two images under Personal Branding for Logo and Header image, and both of them appear to be original quality in exported PDF.

Do you have any plugins running on your WordPress installation where MainWP is located that might attempt to resize or optimize the images?

Hi @bojan,

I have taken a look and there is no plugins enabled, only Advanced Custom Fields. This is a full page sized image, but its a 6K image so it shouldn’t be a problem.

Can you please post the community system report from your MainWP Dashboard for review? The report is located in your Dashboard under Status → Server, on the top right of the page.

Be sure to use the button like the one below; this button hides all your private information:

image

Pressing the button auto-copies the report to your clipboard then just paste it in a reply here.


### Server Info                    Required                                               Detected                                     Status   ###

MainWP Dashboard                   
MainWP Dashboard Version           4.2                                                    4.2                                          Pass        
MainWP Upload Directory            Writable                                               Writable                                     Pass        
MainWP Extensions                  
Advanced Uptime Monitor Extension  5.2.2                                                  API License Inactive                         Warning     
MainWP White Label Extension       4.1.1                                                  API License Inactive                         Warning     
MainWP Bulk Settings Manager Extension4.0.4                                                  API License Active                           Pass        
MainWP Custom Dashboard Extension  4.0.2                                                  API License Inactive                         Warning     
MainWP Google Analytics Extension  4.0.4                                                  API License Active                           Pass        
MainWP Lighthouse Extension        4.0                                                    API License Active                           Pass        
MainWP Maintenance Extension       4.1.1                                                  API License Active                           Pass        
MainWP Page Speed Extension        4.0.1.1                                                API License Active                           Pass        
MainWP Pro Reports Extension       4.0.8                                                  API License Active                           Pass        
MainWP Sucuri Extension            4.0.9                                                  API License Active                           Pass        
MainWP UpdraftPlus Extension       4.0.5                                                  API License Inactive                         Warning     
MainWP URL Extractor Extension     4.0.1.1                                                API License Active                           Pass        
MainWP Vulnerability Checker Extension4.1.1                                                  API License Active                           Pass        
MainWP Wordfence Extension         4.0.5                                                  API License Active                           Pass        
WordPress                          
WordPress Version                  >=3.6                                                  5.9.3                                        Pass        
WordPress Memory Limit             >=64M                                                  40M                                          Warning     
MultiSite Disabled                 =true                                                  true                                         Pass        
FileSystem Method                  = direct                                               direct                                       Pass        
PHP                                
PHP Version                        >=7.0                                                  7.4.28                                       Pass        
PHP Safe Mode Disabled             =true                                                  true                                         Pass        
PHP Max Execution Time             >=30 seconds                                           120                                          Pass        
PHP Max Input Time                 >=30 seconds                                           120                                          Pass        
PHP Memory Limit                   >=128M                                                 768M                                         Pass        
PCRE Backtracking Limit            >=10000                                                1000000                                      Pass        
PHP Upload Max Filesize            >=2M                                                   1024M                                        Pass        
PHP Post Max Size                  >=2M                                                   1024M                                        Pass        
SSL Extension Enabled              =true                                                  true                                         Pass        
SSL Warnings                       = empty                                                                                             Pass        
cURL Extension Enabled             =true                                                  true                                         Pass        
cURL Timeout                       >=300 seconds                                          40                                           Warning     
cURL Version                       >=7.18.1                                               7.66.0                                       Pass        
cURL SSL Version                   >=OpenSSL/1.1.0                                        OpenSSL/1.1.1n-fips                          Pass        
PHP Allow URL fopen                YES                                                    
PHP Exif Support                   YES ( V7.4.)                                           
PHP IPTC Support                   YES                                                    
PHP XML Support                    YES                                                    
PHP Disabled Functions             No functions disabled.                                 
PHP Loaded Extensions              Core, PDO, Phar, Reflection, SPL, SimpleXML, Zend OPcache, apache2handler, bcmath, bz2, calendar, ctype, curl, date, dba, dom, enchant, exif, fileinfo, filter, ftp, gd, gettext, gmp, hash, iconv, imap, intl, json, libxml, mbstring, memcached, mysqli, mysqlnd, openssl, pcre, pdo_mysql, pdo_pgsql, pdo_sqlite, pgsql, posix, pspell, session, shmop, soap, sockets, sodium, sqlite3, standard, sysvmsg, sysvsem, tidy, tokenizer, xml, xmlreader, xmlrpc, xmlwriter, xsl, zip, zlib
MySQL                              
MySQL Version                      >=5.0                                                  5.7.32-35-log                                Pass        
MySQL Mode                         NO_ENGINE_SUBSTITUTION                                 
MySQL Client Encoding              utf8                                                   
Server Info                        
Server Software                    Apache                                                 
Operating System                   Linux                                                  
Architecture                       64		 bit                                               
Server Protocol                    HTTP/1.0                                               
HTTPS                              OFF                                                    
Server self connect                Response Test O.K.                                     
User Agent                         Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.79 Safari/537.36
Gateway Interface                  CGI/1.1                                                
Memory Usage                       53.82 MB                                               
Request Time                       1649348217                                             
Accept Content                     text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9
Accept-Charset Content             N/A                                                    
MainWP Settings                    
Number Of Child Sites              3                                                      
Use WP-Cron                        Yes                                                    
Optimize for Shared Hosting or Big NetworksYes                                                    
Automatic Daily Update             Install trusted updates                                
Abandoned Plugins/Themes Tolerance 365                                                    
Maximum number of posts to return                                                         
Maximum number of pages to return                                                         
Primary Backup System              MainWP UpdraftPlus Extension                           
Maximum simultaneous requests      4                                                      
Minimum delay between requests     200                                                    
Maximum simultaneous requests per ip1                                                      
Minimum delay between requests to the same ip1000                                                   
Maximum simultaneous sync requests 8                                                      
Maximum simultaneous install and update requests3                                                      
Active Plugins                     
Advanced Custom Fields PRO         5.9.1                                                  Active                                       
Asset CleanUp: Page Speed Booster  1.3.8.5                                                Inactive                                     
Classic Editor                     1.6.2                                                  Active                                       
MainWP Dashboard                   4.2                                                    Active                                       
PNG to JPG                         4.0                                                    Inactive                                     
SiteGround Optimizer               7.0.7                                                  Active                                       
SiteGround Security                1.2.6                                                  Active                                       
WP File Manager                    7.1.4                                                  Active                                       
WP Post Page Clone                 1.2                                                    Inactive                                     

The active plugins are wrong btw, the only plugins turned on are WP File Manager and ACF Pro and Class Editor

Here is what I do for the backgrounds

<div style="background-image: url('IMAGE HERE'); background-size: cover; height: 100%; position: absolute;">

I’ve just added a background to a custom report in that same manner, and the image is in original quality.

What’s the image format that you’re trying to insert, and can you please check what the DPI of the image is?

DOMPDF library that is used for generating PDFs is set by default to 96 DPI. So perhaps an unusual combination of resolution and DPI could be the culprit.

1 Like

Found a solution, it seems if you use background-image then it can become blurred but if you use instead, then it doesn’t blur.

2 Likes

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.