jp2-to-image
Version:
A library for converting JPEG 2000 (JP2) images to another format
29 lines (21 loc) • 869 B
Markdown
`jp2-to-image` is a powerful open-source library for image conversion, specifically designed to handle JPEG 2000 (JP2) format seamlessly. It provides a simple API to convert JP2 images into widely supported formats like PNG or JPEG while delivering the output as a Base64 string. This ensures smooth integration into your workflow, allowing you to process images without limitations or bottlenecks. 🚀
```sh
yarn add jp2-to-image
npm install jp2-to-image
pnpm add jp2-to-image
```
```typescript
import { JPEG2000NodeConverter } from 'jp2-to-image'
try {
await new JPEG2000NodeConverter().convertImage(inputBuffer, 'png') // Return a buffer
console.log('Conversion successful!')
} catch (error) {
console.error('Conversion failed:', error)
}
```