feat: Add support for 3d assets through assimp converter

This is a start for #144
It does not support all the 3d formats, but its a good few
This commit is contained in:
Aymen Djellal 2024-09-26 08:23:28 -04:00 committed by C4illin
parent 413f5dc7b4
commit 63a4328d4a
5 changed files with 166 additions and 3 deletions

View file

@ -1,4 +1,7 @@
import { convert as convertImage, properties as propertiesImage } from "./vips";
import {
convert as convertImage,
properties as propertiesImage
} from "./vips";
import {
convert as convertPandoc,
@ -30,6 +33,11 @@ import {
properties as propertiesresvg,
} from "./resvg";
import {
convert as convertassimp,
properties as propertiesassimp,
} from "./assimp";
import { normalizeFiletype } from "../helpers/normalizeFiletype";
// This should probably be reconstructed so that the functions are not imported instead the functions hook into this to make the converters more modular
@ -78,6 +86,10 @@ const properties: Record<string, {
properties: propertiesGraphicsmagick,
converter: convertGraphicsmagick,
},
assimp: {
properties: propertiesassimp,
converter: convertassimp,
},
ffmpeg: {
properties: propertiesFFmpeg,
converter: convertFFmpeg,