Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/handlers/FFmpeg.ts
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,9 @@ class FFmpegHandler implements FormatHandler {
mime: "video/quicktime",
from: true,
to: true,
internal: "mov"
internal: "mov",
category: "audio",
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if you are wondering thats .qta (QuickTime Audio) thats just mov

lossless: false
});

// Normalize Bink metadata to ensure ".bik" files are detected by extension.
Expand Down
4 changes: 3 additions & 1 deletion src/handlers/als.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ class alsHandler implements FormatHandler {
mime: "application/gzip",
from: true,
to: false,
internal: "als"
internal: "als",
category: "data",
lossless: true
},
CommonFormats.XML.builder("xml").allowTo(),
];
Expand Down
4 changes: 3 additions & 1 deletion src/handlers/bsor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ class bsorHandler implements FormatHandler {
mime: "application/x-bsor",
from: true,
to: false,
internal: "bsor"
internal: "bsor",
category: "data",
lossless: false
},
CommonFormats.PNG.supported("png", false, true),
CommonFormats.JPEG.supported("jpeg", false, true),
Expand Down
4 changes: 3 additions & 1 deletion src/handlers/bunburrows.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ class bunburrowsHandler implements FormatHandler {
from: true,
to: false,
internal: "bunlevel",
category: "data",
lossless: false,
},
];

Expand Down Expand Up @@ -256,4 +258,4 @@ class bunburrowsHandler implements FormatHandler {
}
}

export default bunburrowsHandler;
export default bunburrowsHandler;
5 changes: 3 additions & 2 deletions src/handlers/cgbi-to-png.ts
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,8 @@ class cgbiToPngHandler implements FormatHandler {
from: true,
to: false,
internal: "cgbi-png",
category: "image"
category: "image",
lossless: true
},
CommonFormats.PNG.supported("png", false, true, true),
];
Expand Down Expand Up @@ -198,4 +199,4 @@ class cgbiToPngHandler implements FormatHandler {
}
}

export default cgbiToPngHandler;
export default cgbiToPngHandler;
4 changes: 3 additions & 1 deletion src/handlers/comics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ class comicsHandler implements FormatHandler {
to: true,
internal: "cbz",
category: ["archive"],
lossless: true,
},
{
name: "Comic Book Archive (TAR)",
Expand All @@ -62,6 +63,7 @@ class comicsHandler implements FormatHandler {
to: true,
internal: "cbt",
category: ["archive"],
lossless: true,
},
];

Expand Down Expand Up @@ -184,4 +186,4 @@ class comicsHandler implements FormatHandler {
}
}

export default comicsHandler;
export default comicsHandler;
9 changes: 6 additions & 3 deletions src/handlers/envelope.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ class envelopeHandler implements FormatHandler {
from: true,
to: false,
internal: "odt",
category: "document"
category: "document",
lossless: false
},
{
name: "OpenDocument Presentation",
Expand All @@ -33,7 +34,8 @@ class envelopeHandler implements FormatHandler {
from: true,
to: false,
internal: "odp",
category: "presentation"
category: "presentation",
lossless: false
},
{
name: "OpenDocument Spreadsheet",
Expand All @@ -43,7 +45,8 @@ class envelopeHandler implements FormatHandler {
from: true,
to: false,
internal: "ods",
category: "spreadsheet"
category: "spreadsheet",
lossless: false
},
// Technically not "lossless", but it's about as close as we'll ever get
CommonFormats.HTML.supported("html", false, true, true)
Expand Down
13 changes: 7 additions & 6 deletions src/handlers/flptojson.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,12 @@ class flptojsonHandler implements FormatHandler {
format: "flp",
extension: "flp",
mime: "application/octet-stream",
from: true,
to: false,
internal: "flp",
category: "audio",
},
from: true,
to: false,
internal: "flp",
category: "audio",
lossless: false,
},
// Unsure about this, it might be lossless
CommonFormats.JSON.supported("json", false, true)
];
Expand Down Expand Up @@ -125,4 +126,4 @@ class flptojsonHandler implements FormatHandler {
}
}

export default flptojsonHandler
export default flptojsonHandler
3 changes: 3 additions & 0 deletions src/handlers/mcmap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,8 @@ class mcMapHandler implements FormatHandler {
from: true,
to: true,
internal: "mcmap",
category: "data",
lossless: false
},
{
name: "Minecraft Map File (Grid)",
Expand All @@ -115,6 +117,7 @@ class mcMapHandler implements FormatHandler {
from: false,
to: true,
internal: "mcmap_grid",
category: "data",
lossless: false
}
];
Expand Down
2 changes: 2 additions & 0 deletions src/handlers/ota.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ class otaHandler implements FormatHandler {
from: true,
to: true,
internal: "ota",
category: "image",
lossless: false,
},
];

Expand Down
6 changes: 4 additions & 2 deletions src/handlers/petozip.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@ class peToZipHandler implements FormatHandler {
mime: "application/vnd.microsoft.portable-executable",
from: true,
to: false,
internal: "dll"
internal: "dll",
category: "code",
lossless: false
},
CommonFormats.ZIP.builder("zip").allowTo().markLossless()
];
Expand Down Expand Up @@ -119,4 +121,4 @@ class peToZipHandler implements FormatHandler {
}
}

export default peToZipHandler;
export default peToZipHandler;
4 changes: 3 additions & 1 deletion src/handlers/qoa-fu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,9 @@ class qoaFuHandler implements FormatHandler {
mime: "audio/x-qoa", // I have to put something here
from: true,
to: true,
internal: "qoa"
internal: "qoa",
category: "audio",
lossless: false
}
];
public ready: boolean = false;
Expand Down
23 changes: 17 additions & 6 deletions src/handlers/rename.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ export const renameZipHandler = renameHandler("renamezip", [
from: true,
to: false,
internal: "odt",
category: "document"
category: "document",
lossless: true
},
{
name: "OpenDocument Presentation",
Expand All @@ -46,7 +47,8 @@ export const renameZipHandler = renameHandler("renamezip", [
from: true,
to: false,
internal: "odp",
category: "presentation"
category: "presentation",
lossless: true
},
{
name: "OpenDocument Spreadsheet",
Expand All @@ -56,7 +58,8 @@ export const renameZipHandler = renameHandler("renamezip", [
from: true,
to: false,
internal: "ods",
category: "spreadsheet"
category: "spreadsheet",
lossless: true
},
{
name: "Firefox Plugin",
Expand All @@ -65,7 +68,9 @@ export const renameZipHandler = renameHandler("renamezip", [
mime: "application/x-xpinstall",
from: true,
to: false,
internal: "xpi"
internal: "xpi",
category: "archive",
lossless: true
},
CommonFormats.ZIP.builder("love").allowFrom()
.withFormat("love").withExt("love").named("LÖVE Game Package"),
Expand All @@ -82,7 +87,9 @@ export const renameZipHandler = renameHandler("renamezip", [
mime: "application/x-java-archive",
from: true,
to: false,
internal: "jar"
internal: "jar",
category: "archive",
lossless: true
},
{
name: "Android Package Archive",
Expand All @@ -91,7 +98,9 @@ export const renameZipHandler = renameHandler("renamezip", [
mime: "application/vnd.android.package-archive",
from: true,
to: false,
internal: "apk"
internal: "apk",
category: "archive",
lossless: true
},
CommonFormats.ZIP.builder("sb3").allowFrom()
.withFormat("sb3").withExt("sb3").named("Scratch 3 Project").withMime("application/x.scratch.sb3"),
Expand All @@ -107,6 +116,8 @@ export const renameZipHandler = renameHandler("renamezip", [
from: true,
to: false,
internal: "cbz",
category: "archive",
lossless: true
},
]);
/// handler for renaming text-based formats
Expand Down
2 changes: 2 additions & 0 deletions src/handlers/sb3tohtml.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ class sb3ToHtmlHandler implements FormatHandler {
from: true,
to: false,
internal: "sb3",
category: "archive",
lossless: false,
},
CommonFormats.HTML.builder("html")
.allowTo()
Expand Down
6 changes: 4 additions & 2 deletions src/handlers/sppd.ts
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,9 @@ class sppdHandler implements FormatHandler {
mime: "application/x-portal2-demo",
from: true,
to: false,
internal: "dem"
internal: "dem",
category: "data",
lossless: false
},
CommonFormats.PNG.supported("png", false, true),
CommonFormats.JPEG.supported("jpeg", false, true),
Expand Down Expand Up @@ -571,4 +573,4 @@ class sppdHandler implements FormatHandler {

}

export default sppdHandler;
export default sppdHandler;
6 changes: 4 additions & 2 deletions src/handlers/sqlite.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ class sqlite3Handler implements FormatHandler {
from: true,
to: true,
internal: "sqlite3",
category: "database"
category: "database",
lossless: false
},
{
name: "iTunes Database",
Expand All @@ -29,7 +30,8 @@ class sqlite3Handler implements FormatHandler {
from: true,
to: false,
internal: "sqlite3",
category: "database"
category: "database",
lossless: false
},
// Lossy because extracts only tables
CommonFormats.CSV.builder("csv").allowTo().allowFrom()
Expand Down
4 changes: 3 additions & 1 deletion src/handlers/terrariawld.ts
Original file line number Diff line number Diff line change
Expand Up @@ -888,6 +888,8 @@ class terrariaWldHandler implements FormatHandler {
from: true,
to: false,
internal: "wld",
category: "data",
lossless: false,
},

CommonFormats.PNG.builder("png")
Expand Down Expand Up @@ -976,4 +978,4 @@ class terrariaWldHandler implements FormatHandler {

}

export default terrariaWldHandler;
export default terrariaWldHandler;
7 changes: 5 additions & 2 deletions src/handlers/threejs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ class threejsHandler implements FormatHandler {
from: true,
to: false,
internal: "glb",
category: "model"
category: "model",
lossless: false
},
{
name: "GL Transmission Format",
Expand All @@ -28,7 +29,8 @@ class threejsHandler implements FormatHandler {
from: true,
to: false,
internal: "glb",
category: "model"
category: "model",
lossless: false
},
{
name: "Waveform OBJ",
Expand All @@ -39,6 +41,7 @@ class threejsHandler implements FormatHandler {
to: false,
internal: "obj",
category: "model",
lossless: false,
},
CommonFormats.PNG.supported("png", false, true),
CommonFormats.JPEG.supported("jpeg", false, true),
Expand Down
3 changes: 2 additions & 1 deletion src/handlers/vtf.ts
Original file line number Diff line number Diff line change
Expand Up @@ -809,7 +809,8 @@ class vtfHandler implements FormatHandler {
from: true,
to: false,
internal: "vtf",
category: "image"
category: "image",
lossless: false
},
CommonFormats.PNG.supported("png", false, true, true),
CommonFormats.JPEG.supported("jpeg", false, true),
Expand Down
Loading