jpambrun / image-JPEG2000

8 stars 25 forks source link

How to convert export tile Unit16Array into image? #3

Open YuanTian1991 opened 3 years ago

YuanTian1991 commented 3 years ago

Hi, @jpambrun thanks for your work on this JS script, I am developing an app to convert some JP2 to jpg (eventually to Canvas). I have used your script to successfully convert JP2 to a series of Unit16Array, like below:

image

However, I still don't know how to continue to make these Unit16Array into JPG/PNG, or web displable base64 string. Could you give me some hint about this?