Recognize G-code filename extensions

This commit is contained in:
Dylan M. Taylor committed 2026-11-13 00:34:11 -05:00
1 parent 79c2003ac9
commit 8d3c753b5e
1 file changed
+2
+2
View File
@@ -15,6 +15,7 @@ pub enum Format {
Dxf,
Svg,
Raster,
Gcode,
Studio,
StencilCraft,
}
@@ -64,6 +65,7 @@ pub fn from_extension(ext: &str) -> Option<Format> {
"png" | "jpg" | "jpeg" | "bmp" | "gif" | "tif" | "tiff" | "webp" | "heic" | "heif" => Some(Format::Raster),
"studio" | "studio3" => Some(Format::Studio),
"stencilcraft" => Some(Format::StencilCraft),
"gcode" | "nc" => Some(Format::Gcode),
_ => None,
}
}