Replies: 1 comment
-
In the latest version you should just be Able to |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I saw this example here on the site last year. I thought I'd try it again with the latest version of Jimp, because the old one unfortunately turned 16-bit image datas into 8-bit datas. I downloaded topology files from NASA. These have the hgt format and for this I wrote a small decoder in python and it then turns them into 16-bit grayscale images. In gimp I then see that the image file also has 16 bits and if I use fast-png then it also reads the 16 bit pixel data correctly. But I'm looking for a decoder that can also do this with jpg images, because png images are significantly larger and take longer to load because the alpha channel is also included, which I don't need at all. Where can I find the JIMP script to be integrated in webworker? I've searched the folder and can't find anything. Maybe I'm just being clumsy.
In my software I integrate everything via import because I bundle it with webpack. Then I want to use electron. That's why it's so important for me to have a 16-bit image decoder that doesn't have any node dependencies. With fast-png I have resolved all node dependencies so that it runs purely frontend. That was quite a hassle and I`m happy that it works, but it's still the png format and i urgently need the jpg format for better performance.
Where can I currently find the JIMP code to be integrated into the webworker?
Is there perhaps a new example if something has changed fundamentally?
The html-File:
The worker-script:
I'm sorry that I can't actively support the further development, because my project is already taking up all of my free time.
Here is an example with fast-png in three.js but i would like to do it with jimp and 16 bit jpg files.
Beta Was this translation helpful? Give feedback.
All reactions