If I get the pro version, does it give me options for compression levels of thumbnails or does the plugin just pull from WordPress generated thumbs?
]]>When going into media library and opening an image compress button works ok.
Could you confirm that it doesn’t work from block editor on particular page?
Thanks
Is it possible to optimize/compress images in a custom folder or outside the default media folders?
I have often sites with other folders in the upload folder containing media.
My image files are fairly simple, line art 8-bit PNG (<256 colors) files that are already optimized from Adobe Illustrator. The screen shot below shows two images, “AAA.png” and “AAAE.png” that are both 1200 x 1200 px. You can see that the closest thumbnails (in size) created are over 4X and 5X the size of the original.
I have tried adjusting the “optimization” with these two code snippets added to my functions.php file:
add_filter(‘jpeg_quality’, function($arg){return 100;});
add_filter(‘wp_editor_set_quality’, function($arg){return 100;} );
I tried the above, and I also tried:
add_filter(‘jpeg_quality’, function($arg){return 60;});
add_filter(‘wp_editor_set_quality’, function($arg){return 60;} );
and:
add_filter(‘jpeg_quality’, function($arg){return 40;});
add_filter(‘wp_editor_set_quality’, function($arg){return 40;} );
These made little to no difference in the file sizes. I’m guessing the WordPress optimization settings, which uses ImageMagick to resize and optimize images, are targeting JPG and 24-bit PNG (those usually guilty of large file size), but how can I tweak it for my already optimized 8-bit PNGs? Perhaps the WordPress Imagemagick code is converting my 8-bit PNGs to 24-bit PNGs (or JPGs) before optimizing and resizing them?
My 50,000 1200 x 1200 px PNG files add up to about 2.5 GB of images. (I do plan to serve those as even smaller Webps, with the PNGs as fallbacks). With WordPress automatic thumbnails and “optimizations”, those files would jump to 53.75 GB!
Solutions welcome.
When I view the images in the media library, they look fine. When I add them to page in the editor (I use Beaver Builder), they look fine. But when I publish the page, they are compressed and pixelated. How do I fix this?
]]>WP-Optimize – Cache, Clean, Compress kan zo worden ingesteld dat de database automatisch (van tijd tot tijd) wordt geoptimaliseerd. Dat is handig voor websites die regelmatig van nieuwe content voorzien worden, maar ook voor websites die het met wat minder aandacht moeten stellen. De updates van WP en de plugins laten ook hun sporen na.
Wat ik zelf erg handig vind, is de functionaliteit die oude tabellen kan omzetten naar innoDB. Mogelijk verraad ik mijn leeftijd nu, maar ik herinner me hoe spannend het was om het handmatig te doen. Ook geeft WP-Optimize – Cache, Clean, Compress eerst netjes aan als tabellen geen functie meer hebben. Bijvoorbeeld na het verwijderen van een plugin. Je kunt dan zelf kiezen of de tabel weg kan of niet. Het is immers niet ondenkbaar dat een plugin slechts tijdelijk verwijderd is.
Een aanrader!
]]>