Solved

Image background color displays incorrectly on iPhone

Posted on 2013-06-01
12
465 Views
Last Modified: 2013-06-02
Certain images on my website have an unintended appearance in iPhone.  For example, an image at the top of www.mauitradewinds.com which says "Maui Tradewinds-- Welcoming the Traveler to Paradise".  This image is supposed to have the same background color as the page, but the background appears black on some iPhones.  

The reason I am using images, rather than text itself, is because I couldn't create the desired font by other means.  The backround was applied to these images by setting the Palette Transparency in Paint Shop Pro to equal the background color of the page.
The images look just as intended on desktops and notebooks, but not on some iPhones.
0
Comment
Question by:ddantes
  • 6
  • 6
12 Comments
 
LVL 83

Expert Comment

by:Dave Baldwin
ID: 39213980
"This image is supposed to have the same background color as the page"

There is no background color assigned to your body or wrap elements.
0
 

Author Comment

by:ddantes
ID: 39213991
Thank you for participating.  In style.css:
body {
background-image: url("../images/background.jpg");
}
0
 
LVL 83

Expert Comment

by:Dave Baldwin
ID: 39214017
background-image: is not background-color: so I don't know what you are talking about then.
0
 

Author Comment

by:ddantes
ID: 39214025
Sorry for my lack of distinction with some terms.  The images in question consist of blue text against a beige, textured background.  That background is made from an image called background.jpg, which is also used as the background for the body of the page.  The desired result, which appears on desktops, is blue text against a background which is seamless with the rest of the page.  In some iPhones, what appears is a black rectangle with blue text.
0
 
LVL 83

Accepted Solution

by:
Dave Baldwin earned 500 total points
ID: 39214740
Try converting your image to a PNG format with a transparent background.  Paint Shop Pro can do that.
0
 

Author Comment

by:ddantes
ID: 39214764
I will try that.  Were you able to reproduce the observation about a black rectangle?
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 83

Expert Comment

by:Dave Baldwin
ID: 39214783
No, I don't have an iPhone.  By the way, which model iPhones are giving you problems?
0
 

Author Comment

by:ddantes
ID: 39214789
My own iPhone 5 and iPad 4th generation don't have this issue, although it has appeared once or twice.  I saw the black rectangle on three iPhones yesterday, while attending a graduation party.  I didn't think to notice what model of iPhone I was using.
0
 
LVL 83

Expert Comment

by:Dave Baldwin
ID: 39214792
Try the PNG but you need to find out who and what device is having the problem before you can know whether it can be solved.
0
 

Author Comment

by:ddantes
ID: 39214806
Will do, and thanks again.
0
 
LVL 83

Expert Comment

by:Dave Baldwin
ID: 39214815
Sure, let us know how it works out.
0
 

Author Comment

by:ddantes
ID: 39214933
Success!  My iPhone happened to have one if its intermittent moods, and it displayed the black rectangle around the title image.  Comparing that with the same image, saved in png format and converted to transparent background, the issue is resolved.  Great suggestion.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Let Bitmoji into your life. Now is the time to learn a new language of smartphone messaging with this brief introduction.
Learn to move / copy / export exchange contacts to iPhone without using any software. Also see the issues in configuration of exchange with iPhone to migrate contacts.
The goal of the tutorial is to teach the user the full work flow of how to use flash media encoder to stream onto YouTube.
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.

867 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now