https://github.com/native-bindings/imebra
Node.js integration with the Imebra SDK
https://github.com/native-bindings/imebra
Last synced: 5 months ago
JSON representation
Node.js integration with the Imebra SDK
- Host: GitHub
- URL: https://github.com/native-bindings/imebra
- Owner: native-bindings
- Created: 2023-01-23T16:40:04.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2023-07-04T02:57:43.000Z (about 2 years ago)
- Last Synced: 2025-02-23T01:51:39.416Z (5 months ago)
- Language: C++
- Homepage:
- Size: 597 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# node-imebra
## Installation
```
yarn add node-imebra
```## Usage
```ts
import imebra from "node-imebra";CodecFactory.setMaximumImageSize(8000, 8000);
const set = CodecFactory.load(path.resolve(__dirname,'0003.dcm'));
const outFile = path.resolve(__dirname,'out.jpg');
CodecFactory.save(set,outFile,imebra.constants.codecType_t.jpeg)
assert.strict.deepEqual(await fs.promises.readFile(
path.resolve(__dirname,'expected.out.jpg')
),await fs.promises.readFile(outFile))
```