-
Notifications
You must be signed in to change notification settings - Fork 204
bug: exception when showing image in jupyter notebook #4072
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
Comments
When you do a url_download, the returned type is a binary which is why it shows as a base64 string. |
The error looks like your jpeg has an unsupported encoding 'Rgba8' but we do support this with "rgba". Could you try |
@chuanlei-coding please let me know if the suggestion works for you, thank you! |
import daft
df = daft.from_pydict(
{
"urls": [
"https://www.getdaft.io/_static/stairs.png",
]
}
)
df2 = df.with_column("image", df["urls"].url.download().image.decode())
df2.show() daft cannot deal with png image currently. ![]() |
Took a quick look, this bug only happens when we preview images in a notebook. In these cases we were incorrectly encoding images that have an alpha channel as JPEG. Fix is here #4255 |
Describe the bug
To Reproduce
No response
Expected behavior
No response
Component(s)
Expressions
Additional context
No response
The text was updated successfully, but these errors were encountered: