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.

  • "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 Leedy 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

Here are some plugins that may be just what you're looking for:



.. also take a look at this post: http://wordpress.org/support/topic/adaptive-images


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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