Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Can't figure this out: Yesterday my local Apache config was sending PNGs just fine, today the browser is trying to decode them as JPGs and thus, only showing a "missing image" error despite returning a valid response from the server.

Opening the image in the browser using a direct file path works fine.

enter image description here enter image description here

share|improve this question
    
Your apache server says the PNGs are actually JPEGs... – Cole Johnson Jun 1 '12 at 20:43
    
Yeah, I saw that and eventually gave up understanding the "why." I suspect that if the php script can't find the cache dir that it just gives up somewhere in the middle of generating the header for the first alt image. – nipponese Jun 2 '12 at 21:01
up vote 0 down vote accepted

I just realized the problem was being caused by some code in my .htaccess file added as part of an "adaptive images" script I installed (GitHub link) to handle Retina display swap-outs. To be more exact, I didn't set the $cache_path variable in adaptive-images.php.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .