I'm working on the rails backend of a native app.
In a native app, retina (high resolution) images are automatically loaded using the @2x
naming convention.
For example, you can have two images called image.png
and [email protected]
(the higher resolution version of the same image). If the app is running on an iPhone 3gs, image.png
is automatically loaded. If the app is used on an iPhone 4, [email protected]
will be loaded automatically.
This @2x
convention doesn't work for non-native web apps according to what I've read and seen in action.
It seems that Apple's @2x
convention doesn't work for images supplied by a Rails backend. I know that media queries can help with this, but I'm wondering if there is some sort of work around for having an iPhone 4 automatically load @2x
images from a web app instead of the non-highres counterpart.