-
-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
how to decode image-data
#53
Comments
Apologies for the late reply. The image data output by tiramisu is raw pixel data. So you'll first decode the base64 to a .raw file. The .raw file will need to be converted, which can be done with ImageMagick. The appropriate information prefixes the base64 of the image. In order it's width, height, row stride, if an alpha channel is used (transparency), the bit depth, and channels. That should point you in the right direction. If you need any additional help, let me know. I'm actually back in the US now so I can reply. |
how am i even supposed to parse with |
I can see to decode into raw is |
You may not necessarily need all of the information provided. Depends on your application, but a simple image conversion should be something along the lines of Also, don't pass all of the image-data into a base64 decode. The only thing that should be passed for decoding is the actual base64 data, which is everything after the last separator ( |
This all help point you in the right direction? |
https://0x0.st/of6F.json
this is the json from
tiramisu -j
from https://www.bennish.net/web-notifications.html, how do i convert this to a PNG in use for a notification daemon?The text was updated successfully, but these errors were encountered: