Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

1 Answer 1

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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.