Apache zeigt .jpg als 1*1 gif an (Vista64)

-=Bandito=-

Cadet 4th Year
Registriert
Nov. 2007
Beiträge
110
Ich werde noch verrückt. Ich habe mir jetzt schon 3 komplett Pakete (apache, mysql, php) auf meinem Home-Rechner installiert und bei keinem erkennt der Apache die jpegs als jpegs. Sobald ich die Seite auf meinem Server (Debian) anzeigen lasse funktioniert alles, aber ich hab keine Lust bei jeder Änderung ein CheckIn im SVN zu machen, dann könnte man die Versionskontrolle auch ganz lassen.

Hier mal die relevanten configs:
http.conf:
Code:
...
LoadModule mime_module modules/mod_mime.so
LoadModule mime_magic_module modules/mod_mime_magic.so
...
<IfModule mime_module>
    #
    # TypesConfig points to the file containing the list of mappings from
    # filename extension to MIME-type.
    #
    TypesConfig conf/mime.types

    #
    # AddType allows you to add to or override the MIME configuration
    # file specified in TypesConfig for specific file types.
    #
    #AddType application/x-gzip .tgz
    #
    # AddEncoding allows you to have certain browsers uncompress
    # information on the fly. Note: Not all browsers support this.
    #
    #AddEncoding x-compress .Z
    #AddEncoding x-gzip .gz .tgz
    #
    # If the AddEncoding directives above are commented-out, then you
    # probably should define those extensions to indicate media types:
    #
    AddType application/x-compress .Z
    AddType application/x-gzip .gz .tgz
    AddType image/jpeg	.jpeg .jpg .jpe
    #
    # AddHandler allows you to map certain file extensions to "handlers":
    # actions unrelated to filetype. These can be either built into the server
    # or added with the Action directive (see below)
    #
    # To use CGI scripts outside of ScriptAliased directories:
    # (You will also need to add "ExecCGI" to the "Options" directive.)
    #
    AddHandler cgi-script .cgi

    # For files that include their own HTTP headers:
    #AddHandler send-as-is asis

    # For server-parsed imagemap files:
    #AddHandler imap-file map

    # For type maps (negotiated resources):
    #AddHandler type-map var

    #
    # Filters allow you to process content before it is sent to the client.
    #
    # To parse .shtml files for server-side includes (SSI):
    # (You will also need to add "Includes" to the "Options" directive.)
    #
   AddType text/html .shtml
   AddOutputFilter INCLUDES .shtml
</IfModule>

#
# The mod_mime_magic module allows the server to use various hints from the
# contents of the file itself to determine its type.  The MIMEMagicFile
# directive tells the module where the hint definitions are located.
#
MIMEMagicFile conf/magic
...

mime.types:

Code:
...
chemical/x-xyz					xyz
image/bmp					bmp
image/cgm					cgm
image/fits
image/g3fax					g3
image/gif					gif
image/ief					ief
image/jp2
image/jpeg					jpeg jpg jpe
image/jpm
image/jpx
image/naplps
image/png					png
image/prs.btif					btif
image/prs.pti
image/svg+xml					svg svgz
image/t38
image/tiff					tiff tif
image/tiff-fx
image/vnd.adobe.photoshop			psd
image/vnd.cns.inf2
image/vnd.djvu					djvu djv
image/vnd.dwg					dwg
image/vnd.dxf					dxf
image/vnd.fastbidsheet				fbs
image/vnd.fpx					fpx
image/vnd.fst					fst
image/vnd.fujixerox.edmics-mmr			mmr
image/vnd.fujixerox.edmics-rlc			rlc
image/vnd.globalgraphics.pgb
image/vnd.microsoft.icon
image/vnd.mix
image/vnd.ms-modi				mdi
image/vnd.net-fpx				npx
image/vnd.sealed.png
image/vnd.sealedmedia.softseal.gif
image/vnd.sealedmedia.softseal.jpg
image/vnd.svf
image/vnd.wap.wbmp				wbmp
image/vnd.xiff					xif
image/x-cmu-raster				ras
image/x-cmx					cmx
image/x-icon					ico
image/x-pcx					pcx
image/x-pict					pic pct
image/x-portable-anymap				pnm
image/x-portable-bitmap				pbm
image/x-portable-graymap			pgm
image/x-portable-pixmap				ppm
image/x-rgb					rgb
image/x-xbitmap					xbm
image/x-xpixmap					xpm
image/x-xwindowdump				xwd
message/cpim
...

magic

Code:
...
# GIF
0	string		GIF		image/gif

# JPEG images
0	beshort		0xffd8		image/jpeg
...

hier auch mal der accses log.
Code:
127.0.0.1 - - [28/Feb/2009:12:25:02 +0100] "GET /templates/images/ HTTP/1.1" 200 886
127.0.0.1 - - [28/Feb/2009:12:25:02 +0100] "GET /icons/blank.gif HTTP/1.1" 304 -
127.0.0.1 - - [28/Feb/2009:12:25:02 +0100] "GET /icons/back.gif HTTP/1.1" 304 -
127.0.0.1 - - [28/Feb/2009:12:25:02 +0100] "GET /icons/image2.gif HTTP/1.1" 304 -
127.0.0.1 - - [28/Feb/2009:12:25:04 +0100] "GET /templates/ HTTP/1.1" 200 853
127.0.0.1 - - [28/Feb/2009:12:25:06 +0100] "GET /templates/images/ HTTP/1.1" 200 886
im error log steht garnichts

und hier nochmal ein Screen wie es dann im Browser aussieht:

unbenannt-1a59z.jpg


oben ist der Tab und darunter die URL wie ich sie eingegeben habe


Wäre wirklich sehr Dankbar wenn mir hier jemand weiterhelfen könnte.


Greetz Bandito
 
Betrifft das nur JPGs (eventuell auch mal .jpg und .jpeg probieren)? Oder ist das Problem bei Bitmaps und den eigentlichen GIFs das gleiche? Oder ist vielleicht nur ein einfacher htaccess-Rewrite der Verursacher (also das JPGs auf ein GIF umgeleitet werden)?
 
Zuletzt bearbeitet:
So, mal ne dumme Frage: Bist du sicher das in deinem .jpg File auch wirklich ein jpeg Bild drin ist? Du kannst ja durchaus auch ein .gih Bild in .jpg umbenennen. Da die Programme das Format nicht zwingend über die Dateiendung bestimmen kann das schon dein Problem sein. Oder passiert das generell mit allen jpeg Bildern? Schonmal was beliebiges aus dem Netz versuch anzeigen zu lassen?

Poste das besagte Bild doch mal hier.
 
So, mal ne dumme Frage: Bist du sicher das in deinem .jpg File auch wirklich ein jpeg Bild drin ist?

Hier ist was media info dazu sagt:

Code:
Allgemein
Vollständiger Name               : C:\...\banner.jpg
Format                           : JPEG
Dateigröße                       : 43,3 KiB

Bild
Format                           : JPEG
Breite                           : 800 Pixel
Höhe                             : 180 Pixel
Auflösung                        : 8 bits

Hab mit adobe auch schon Kopien erstellt ändert alles nichts. Wie gesagt auf meinem Server wird die Seite Korrekt, mit Jpeg angezeigt.

ruf mal '/icons/blank.gif?test=blabla' auf, nur zum testen...

Hier das Ergebnis. Seite ist natürlich leer.
blank7dn9.jpg


Betrifft das nur JPGs

Hab bis jetzt nur ein .png ausprobiert, und dieses wurde ohne Probleme wiedergegeben. Werd aber gleich auch nochmal andere Formate Testen. Muss erstmal kochen :-)

Schonmal was beliebiges aus dem Netz versuch anzeigen zu lassen?

Sobald ich ne externe URL als src angeb wird das jpg angezeigt. Achso Endung ändern hab ich auch schon probiert.

//edit
Es geht. Manchmal steht man sowas von aufm Schlauch. Es lag am Namen, nachdem ich es nicht mehr banner genannt habe ging es ^^
 
Zuletzt bearbeitet:
Zurück
Oben