Your topic is about png Images, your text about gif images
You are writing about error messages but don't post the error message here.
You have to be much more clear to get good help. Remember, we don't see what you see. We don't know your system, folder structure, requests, etc etc.
With your information i just can say, that MY .gif, .jpg, .png images are working fine with XAMPP independed of if i request them with localhost or other ways.
Maybe we should start with the basics:
- OS version?
- XAMPP version?
- which Browser?
- XAMPP is installed in which folder?
- what do you type in your browser bar to get the error?
- What does your sourcecode look like?
- What is the text of the error message?
Thats the MINIMUM of Information we need.