-
Notifications
You must be signed in to change notification settings - Fork 158
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
Uncaught RuntimeError: unreachable in Node on multiple functions #134
Comments
@coreyward Hi Corey! Thanks for opening this issue. It's mentioned that you're using |
@silvia-odwyer Oops that was just a typo in my post. I'm using const photon = require("@silvia-odwyer/photon-node")
const img = new photon.PhotonImage([], 10, 10)
img.get_base64() For reference, this occurred with every base64 string I tried, and I verified syntax on several by doing |
Here's a CodeSandbox example demonstrating the issue. It actually seems to work fine when creating the image from the PNG data, but the JPG fails. This is the source of the PNG. I convert it to JPEG using some built-in routine in Finder, resulting in the image attached here, for reference: |
@coreyward Thanks very much for the CodeSandbox example, it's much appreciated! 👍 I've taken a look at the issue, and it seems to be linked to Issue #120. The To fix this, I've just published a new build. Could you update your |
Thank you! It looks like this allows |
Hi Corey, If you can't seem to apply effects etc, just include a code snippet and I'll try help out! 😄 👍 |
Hi there, I'm also seeing this via get_image_data using ^0.3.3:
EDIT: Okay... I think this is a buried error over needing to apply another |
I'm unable to create a new
PhotonImage
from a base64 encoded string, or export an existingPhotonImage
to base64 in a Node environment using @silvia-odwyer/photon-node@0.3.1:This happens in both Node 14.x and 16.x in both Intel and Apple Silicon environments (both macOS).
The text was updated successfully, but these errors were encountered: