Skip to content

Sharp convert to jp2 format (JPEG2000) #2245

@hegyre

Description

@hegyre

Hello,
I'm using latest versions of sharp and libvips

What are you trying to achieve?
I want to convert images like .png to .jp2
I've compiled and installed libvips globally, with imagemagick, itself compiled with jpeg2000 support.

Have you searched for similar questions?
Only found that one from 2018: #1489

Are you able to provide a minimal, standalone code sample that demonstrates this question?
If you could help me understand what should I update in the code to support something like:

sharp(input)
  .toFormat('jp2')
  .toBuffer();

Thanks in advance.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions