Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I wonder if there any code or hook out there to manage the image DPI, for example when we use photoshop or other image editing software we use export and image quality to 0-100%, now i am looking for a plugin or code to define the media library'r image DPI to make them small in size.

This is i want store two version one with smaller size[DPI] and one for HD quality.

Anyone Can help ?

share|improve this question

closed as off-topic by helgatheviking, kaiser, s_ha_dum, Johannes Pille, birgire Jul 6 '13 at 15:54

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Theme or plugin recommendation requests are off-topic as they're rarely helpful to others. For more information, visit meta." – helgatheviking, kaiser, s_ha_dum, Johannes Pille, birgire
If this question can be reworded to fit the rules in the help center, please edit the question.

    
Plugin recommendations are off-topic per the FAQ –  helgatheviking Jul 6 '13 at 10:55
    
All right...... –  Shahinul Islam Jul 6 '13 at 11:03

1 Answer 1

up vote 2 down vote accepted

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)
share|improve this answer
    
Thanks Rarst, That make sense. –  Shahinul Islam Jul 6 '13 at 14:11

Not the answer you're looking for? Browse other questions tagged or ask your own question.