sometimes images have exif info that tells a program to rotate it - so the image itself might be wrong, but some applications can read the tag and rotate it properly. I doubt web browsers are reading that tag so this could be your issue.
Re-saving the file in Photoshop or another image editor could save it in the proper rotation if that is the issue.