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 am making a mobile site, and I want to serve higher resolution images to devices with high pixel density, and normal image to the rest, is there a Wordpress functionality or plugin to help me do that?

I'm not looking for non-wordpress libraries/plugins.

share|improve this question
    
"libraries"... WP consist out of dozens of external libraries. Themes, Plugins, MU-Plugins, dropins are all just wrappers for external code. Add a comment on top of the main file and guess what: You got a Theme, Plugin, MU-Plugin or Dropin. –  kaiser Jun 28 '12 at 11:48
    
totally. if you have the different sized images available then you will have to tell your theme which ones to use by detecting the browser and selecting the right image. the code for this should be easy to write. look into: add_theme_support( 'post-thumbnails' ) for the images and then dynamically select the image size based on browser detection for your entire theme. –  Innate Jun 28 '12 at 12:10
    
You can also do this with CSS using Media Queries. –  Joseph Jun 28 '12 at 12:22
    
@Innate the "easy to write code" is my question exactly - is there anything already made for wordpress for this purpose or should I write it myself? –  ilyo Jun 28 '12 at 13:57
    
If you are capable of writing something like this yourself it will be purpose built and lighter than any generic plugin. –  Innate Jun 29 '12 at 6:31
add comment

1 Answer 1

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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