How to modify Media Library images DPI [ image quality down to make small in size ] [closed]

DPI (as saved in image metadata) does not really apply to displays since pixel density is property of hardware.

You can fake this by resizing image with smaller dimensions in HTML, but saving with higher JPEG compression might make more sense.

Default compression level WP uses is 90 (out of 100) and it can be modified by filters:

  • jpeg_quality (this seems to be legacy one)
  • wp_editor_set_quality (in new WP_Image_editor class)