Adding Retina Graphics

  • Author
    Posts
  • #827253

    pixelcounter
    Member
    Original poster

    Hi,

    I was wondering if it’s possible to add alternative images (2x) for high-dpi displays, such as that of the iPhone 4 or upcoming iPad 3?

    I’ve been googling around and people are using solutions like Java Script etc. for that, but which are beyond my skills.

    Thanks!

    The blog I need help with is: pixelcounterrr.com

    #827448

    hnsaifi
    Member

    Sorry I don’t know more bout it but Javascript doesn’t work here on WordPress.com.

    #827632

    designsimply
    Member

    I see that there’s a way to add retina graphics using CSS3 media queries, but that’s not available yet for the WordPress.com Custom Design upgrade. I’ve noted your question though and added it to our user suggestion list.

    #827792

    pixelcounter
    Member
    Original poster

    Okay, thanks designsimply. I’m pretty sure the high-dpi graphics are becoming more relevant day by day.

    #827808

    designsimply
    Member

    I agree! Love that you posted about it. We’ve put it on our things-to-update list. Would love to also see more people reply here or send us a note if there is more interest.

    #827949

    designsimply
    Member

    @pixelcounter, adding high-dpi graphics is now supported at WordPress.com. :)

    Try copying the example at http://aralbalkan.com/demos/high-dpi-images/ if you’d like to test it out.

    #827950

    pixelcounter
    Member
    Original poster

    Thanks for the info!

    Is there an easy way now to replace, for instance, the header with a high-resoution image?

    #827951

    designsimply
    Member

    Certainly. :)

    Here is an example showing how to do it for the iPhone 4 based on pixel ratio:

    @media
    only screen and (-webkit-min-device-pixel-ratio : 2),
    only screen and (min-device-pixel-ratio : 2) {
        /* CSS for your header image goes here. */
    }

The topic ‘Adding Retina Graphics’ is closed to new replies.