# OSR CAD Tools

This is a CLI(CommandLineInterface) toolset to convert media files

## Requirements

1. [Node-JS](https://nodejs.org/en/download/)
2. Optional: install [Git](https://git-scm.com/downloads) (Make sure you enable Linux tools on Windows console)

## Installation

```sh
git clone https://gitlab.com/plastichub/osr/osr-media.git
cd osr-media
npm i
```

or globally (recommended)

```
npm i @plastichub/osr-media -g
```

## Usage

Open a terminal and run this:

```sh
osr-media --help
```

See more in [./docs/Examples.md](./docs/Examples.md)

### Commands - Todos - 2D/Pictures

- [ ] web formats (https://sharp.pixelplumbing.com/api-constructor)
- [ ] vector formats: pdf|svg
- [ ] meta exchange (from JSON, to Exif)

### Commands - Todos - Pixels

- [ ] RAW formats

### Commands - Video

- [ ] sub titles ?
- [ ] ffmpg
  - [ ] split
  - [ ] merge
  - [ ] server/transcode ?

## References

- [pixelmatch](https://github.com/mapbox/pixelmatch)
- [lib content](https://git.osr-plastic.org/osr-plastic/osr-lib-content)
- [image diff](https://www.npmjs.com/package/img-diff-js)
- [ARW spec](https://github.com/WeTransfer/format_parser/blob/master/lib/parsers/arw_parser.rb)
- [ARW format notes - wiki](http://fileformats.archiveteam.org/wiki/Sony_ARW)
- [RAW View - NodeJS](https://github.com/catdad/raw-viewer/releases)
- [DCRaw - Github](https://github.com/zfedoran/dcraw.js)
- [DCRaw Vendored - NPM](https://www.npmjs.com/package/dcraw-vendored-win32)
- [Exif Data Reader](https://github.com/mattiasw/ExifReader)
- 

## AI Tools

- [Object Replace](https://novita.ai/product/replace-object)

## Video

- [https://github.com/fluent-ffmpeg/node-fluent-ffmpeg.git](https://github.com/fluent-ffmpeg/node-fluent-ffmpeg.git)
