View Issue Details

IDProjectCategoryView StatusLast Update
0000500fileGeneralpublic2024-01-30 21:30
Reportercolin Assigned Tochristos  
PrioritylowSeveritytrivialReproducibilityN/A
Status resolvedResolutionfixed 
Fixed in VersionHEAD 
Summary0000500: Add ktx and ktx2 mime types and extension definitions
DescriptionThe mime type and extensions were missing for ktx and ktx2 texture formats, though they are defined in the iana

https://www.iana.org/assignments/media-types/image/ktx
https://www.iana.org/assignments/media-types/image/ktx2
TagsNo tags attached.

Activities

colin

2024-01-24 04:36

reporter  

ktx-ktx2-mime.patch (1,231 bytes)   
diff --git a/magic/Magdir/images b/magic/Magdir/images
index bab11b55..e92dcba2 100644
--- a/magic/Magdir/images
+++ b/magic/Magdir/images
@@ -3283,6 +3283,7 @@
 # Type: Khronos KTX texture.
 # From: David Korth <gerbilsoft@gerbilsoft.com>
 # Reference: https://www.khronos.org/opengles/sdk/tools/KTX/file_format_spec/
+# https://www.iana.org/assignments/media-types/image/ktx
 
 # glEnum decoding.
 # NOTE: Only the most common formats are listed here.
@@ -3357,6 +3358,8 @@
 # Main KTX header.
 # Determine endianness, then check the rest of the header.
 0	string	\xABKTX\ 11\xBB\r\n\x1A\n	Khronos KTX texture
+!:mime	image/ktx
+!:ext	ktx
 >12	ulelong	0x04030201			(little-endian)
 >>16	use	khronos-ktx-endian-header
 >12	ubelong	0x04030201			(big-endian)
@@ -3366,6 +3369,7 @@
 # From: David Korth <gerbilsoft@gerbilsoft.com>
 # Based on draft19.
 # Reference: http://github.khronos.org/KTX-Specification/
+# https://www.iana.org/assignments/media-types/image/ktx2
 
 # Supercompression enum.
 0	name	khronos-ktx2-supercompression
@@ -3627,6 +3631,8 @@
 
 # Main KTX2 header.
 0	string	\xABKTX\ 20\xBB\r\n\x1A\n	Khronos KTX2 texture
+!:mime	image/ktx2
+!:ext	ktx2
 >20	ulelong	x	\b, %u
 >24	ulelong	>1	x %u
 >28	ulelong	>1	x %u
ktx-ktx2-mime.patch (1,231 bytes)   

christos

2024-01-30 21:30

manager   ~0003991

added, thanks!

Issue History

Date Modified Username Field Change
2024-01-24 04:36 colin New Issue
2024-01-24 04:36 colin File Added: ktx-ktx2-mime.patch
2024-01-30 21:30 christos Assigned To => christos
2024-01-30 21:30 christos Status new => assigned
2024-01-30 21:30 christos Status assigned => resolved
2024-01-30 21:30 christos Resolution open => fixed
2024-01-30 21:30 christos Fixed in Version => HEAD
2024-01-30 21:30 christos Note Added: 0003991