JSPM

  • Created
  • Published
  • Downloads 3
  • Score
    100M100P100Q55537F
  • License MIT

Core file conversion modules for @nottimtam/file-converter.

Package Exports

  • @nottimtam/file-converter-core
  • @nottimtam/file-converter-core/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@nottimtam/file-converter-core) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

@nottimtam/file-converter-core

Core file conversion modules for @nottimtam/file-converter.

This package is still a work-in-progress, useful modules are in the works.

Installation

npm i @nottimtam/file-converter @nottimtam/file-converter-core

Usage

See file-converter for general implementation instructions. To implement these modules, add them to the modules array of your FileConverter constructor:

import FileConverter from "@nottimtam/file-converter";
import CoreModules from "@nottimtam/file-converter-core";

const fileConverter = new FileConverter({
    modules: [...CoreModules],
});

Modules

You can use all the modules:

import CoreModules from "@nottimtam/file-converter-core";

Or just the groups you need:

import { ImageModules, PDFModules } from "@nottimtam/file-converter-core";

Do not use both CoreModules and a sub-group at the same time, or conflict errors will be thrown.

ImageModules

  • JPEGToPNG — image/jpeg to image/png
  • JPEGToWebP — image/jpeg to image/webp
  • JPEGToGIF — image/jpeg to image/gif
  • JPEGToAVIF — image/jpeg to image/avif
  • JPEGToTIFF — image/jpeg to image/tiff
  • PNGToJPEG — image/png to image/jpeg
  • PNGToWebP — image/png to image/webp
  • PNGToGIF — image/png to image/gif
  • PNGToAVIF — image/png to image/avif
  • PNGToTIFF — image/png to image/tiff
  • WebPToPNG — image/webp to image/png
  • WebPToJPEG — image/webp to image/jpeg
  • WebPToGIF — image/webp to image/gif
  • WebPToAVIF — image/webp to image/avif
  • WebPToTIFF — image/webp to image/tiff
  • GIFToPNG — image/gif to image/png
  • GIFToWebP — image/gif to image/webp
  • GIFToJPEG — image/gif to image/jpeg
  • GIFToAVIF — image/gif to image/avif
  • GIFToTIFF — image/gif to image/tiff
  • AVIFToPNG — image/avif to image/png
  • AVIFToWebP — image/avif to image/webp
  • AVIFToGIF — image/avif to image/gif
  • AVIFToJPEG — image/avif to image/jpeg
  • AVIFToTIFF — image/avif to image/tiff
  • TIFFToPNG — image/tiff to image/png
  • TIFFToWebP — image/tiff to image/webp
  • TIFFToGIF — image/tiff to image/gif
  • TIFFToAVIF — image/tiff to image/avif
  • TIFFToJPEG — image/tiff to image/jpeg

PDFModules

  • JPEGToPDF — image/jpeg to application/pdf