Skip navigation
Currently Being Moderated

Linked jpg background color?

Jul 20, 2012 10:52 AM

Tags: #background #color #javascript #css #linked #jpg

Is it possible to specify the background color of a linked jpg?

 

I am linking directly to a jpg on my site and I think would like to keep it that way for sake of simplicity. The link looks something like this:

http://my-domain.com/jpg-name.jpg

I am getting the default color of the browser, but am hoping I can manipulate that color somehow.

 

Thanks,

Brian

 
Replies
  • Currently Being Moderated
    Jul 20, 2012 11:36 AM   in reply to brian914

    I'm not exactly sure what you are asking. You want the page's background color to be determined by the colors used in the JPG? Which colors?  You might try something like this:

     

    http://www.phpclasses.org/package/5577-PHP-Get-the-most-used-colors-in -an-image.html

     
    |
    Mark as:
  • Currently Being Moderated
    Jul 20, 2012 1:14 PM   in reply to brian914

    You can't change browsers. Instead of linking directly to a full size image, you could link to an HTML page with a white background.

     

     

    Nancy O.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points