public
Last active

Code-Snippet für functions.php, um die Komprimierung der JPEG-Bilder in der Mediathek zu steuern

  • Download Gist
gistfile1.php
PHP
1 2 3 4 5 6 7 8 9 10
<?php
 
add_filter(
'jpeg_quality',
'adjust_jpeg_quality'
);
 
function adjust_jpeg_quality($quality) {
return 100; /* 0 = Sehr stark komprimiert / 100 = Keine Komprimierung */
}

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.