-
Notifications
You must be signed in to change notification settings - Fork 15.4k
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
core[patch]: rm image loading #27797
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Skipped Deployment
|
return f"data:{mime_type};base64,{encoding}" | ||
def __getattr__(name: str) -> Any: | ||
if name in ("encode_image", "image_to_data_url"): | ||
msg = f"'{name}' has been removed for security reasons." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is very cryptic!
- why did we remove encode_image / image_to_data_url are those not fine if users just use them as a utility? (i also get that they're really light weight so maybe we don't need them.)
- The error message is cryptic. Could we provide at least one more detail? It's not clear why the utility functions themselves would be a security concern.
The main concern is that this going to break user code, so would be ideal to provide information. Including the version as of which this change was made
Is there any information why this was removed? As this breaks already working code in the 0.3 branch it would be nice to at least know why this is a security issue. |
Patch for v0.3.x branch