Opened 18 years ago

Closed 18 years ago

#826 closed bug (fixed)

tga image files not in MIME Database

Reported by: marcusoverhagen Owned by: korli
Priority: normal Milestone:
Component: Kits/Application Kit Version:
Keywords: Cc:
Blocked By: Blocking:
Platform: All

Description

tga image files are not in MIME Database, and thus can't be opened by double click.

Change History (4)

comment:1 by ekdahl, 18 years ago

Add the following in a file called x-tga under beos_mime/image and it should do the trick. Works fine when testing under Haiku.

resource(0, "BEOS:TYPE") #'MIMS' "application/x-vnd.Be-meta-mime";

resource(1, "META:TYPE") "image/x-tga";

resource(2, "META:S:DESC") #'MSDC' "Targa Image";

resource(3, "META:EXTENS") message(234) {
	"extensions" = "tga",
	"type" = "image/x-tga"
};

There doesn't seem to be magic numbers for tga. The files starts with some bytes that are zeros, which probably would be bad to use for sniff rule.

I must be blind, but I can't find how to attach a file to the ticket.

comment:2 by wkornewald, 18 years ago

Everyone can attach files now. Sorry for not having noticed this.

comment:3 by korli, 18 years ago

Owner: changed from axeld to korli
Status: newassigned

I committed a fix in revision 18818. Please test :)

comment:4 by axeld, 18 years ago

Resolution: fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.