iphone

Is this a good strategy to optimize web images for iphone?

I have a lot of old resources (html and image files) that I need to optimize for mobile devices. Existing assets were built for desktop and have no mobile devices in mind.

I am planning to make the following changes:

  • What can be done when the headphones are not sitting in an iPhone?
  • Can anyone have access to my iCloud account which prevents me from receiving text messages?
  • What Happens During a Hard Reset of iPhone?
  • How can I stop automatic Bluetooth streaming?
  • Uploading Photos to Windows PC with Broken Touchscreen

1) At the front, if it is running on a desktop device, its content will be loaded from the existing url (ex. static.example.com/document1/index.html ). But if the website is loaded from an iphone6, it will switch to static.example.com/document1_iphone6/index.html

2) document1_iphone6 it is basically a duplicate of document1 . All assets in the image will be resized to fit 750 × 1334

Is there any problem / error with this plan?

  • Shares iTunes Home Sharing Transfer In-App Purchases?
  • How can I record my iPhone screen?
  • How do I move all recent photos from iPhone to PC, but keep my favorites on my iPhone?
  • How to change Exchange email account settings on 50 iPhones remotely?
  • The calendar list view scrolls

I think you’re on your way to optimizing images for mobile, but I think the way you go about it doesn’t scale very well. If you just want to target iPhone with resized images, you will support 5 different size, iPhone 6+, iPhone 6, iPhone 5 / 5S, iPhone 4 / 4S, plus the original, which is not that bad.

But what if you want to support Android phones on the same level, having an image for each device made? You’re going to end up with dozens of different image sizes.

Android screen resoultions

Here is another link with a larger list of device sizes.

mydevice.io common smartphone formats

Not only will you have dozens of different devices, but your naming scheme won’t work well, as some resolutions are used for multiple displays, leaving us image duplicates.

A better way to optimize for mobile is to fix screen resolutions instead of devices. For example, it is possible to define a set of similar resolutions

xxxhdpi: 1280 × 1920 px
xxhdpi: 960 × 1600 px
xhdpi: 640 × 960 px
hdpi: 480 × 800 px
mdpi: 320 × 480 px
ldpi: 240 × 320 px

With this method you can support all mobile devices with only six different sizes, and when a new device is launched, you won’t need to resize every image on your site for the new device.

All of this assumes you’re just talking about resizing your image assets. If you’re thinking about redesigning the layout of each device, you’d be much, much better off creating a responsive site that scales for mobile devices.

  • In iOS9, where did the newsstand go?
  • Can I get music videos on my iPhone with iTunes Music Library enabled?
  • How to undo notes on iPhone “Notes” application?
  • iPhone says it is verifying the update, but it is stuck on the block screen
  • Adjust Internet Usage in iPhone 4S?
  • How to delete emails instead of archiving them on iPhone and iPad?
  • How to fix flashlight and camera bug in iOS7?
  • What is the meaning of this status bar icon?