Skip to content
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

Inline base64 image is not displaying in Android app #8197

Open
tonyzzz321 opened this issue Sep 1, 2024 · 2 comments
Open

Inline base64 image is not displaying in Android app #8197

tonyzzz321 opened this issue Sep 1, 2024 · 2 comments
Labels
kind/feature Categorizes issue or PR as related to a new feature.

Comments

@tonyzzz321
Copy link

Summary

Markdown inline image source in base64 strips the base64 content.

Environment Information

  • Device Name: Pixel 6A
  • OS Version: Android 14
  • Mattermost App Version: 2.19.2
  • Mattermost Server Version: 9.11.1

Steps to reproduce

Insert an base64 encoded image using inline markdown

Hello World ![Hello World](data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEYAAAAUCAAAAAAVAxSkAAABrUlEQVQ4y+3TPUvDQBgH8OdDOGa+oUMgk2MpdHIIgpSUiqC0OKirgxYX8QVFRQRpBRF8KShqLbgIYkUEteCgFVuqUEVxEIkvJFhae3m8S2KbSkcFBw9yHP88+eXucgH8kQZ/jSm4VDaIy9RKCpKac9NKgU4uEJNwhHhK3qvPBVO8rxRWmFXPF+NSM1KVMbwriAMwhDgVcrxeMZm85GR0PhvGJAAmyozJsbsxgNEir4iEjIK0SYqGd8sOR3rJAGN2BCEkOxhxMhpd8Mk0CXtZacxi1hr20mI/rzgnxayoidevcGuHXTC/q6QuYSMt1jC+gBIiMg12v2vb5NlklChiWnhmFZpwvxDGzuUzV8kOg+N8UUvNBp64vy9q3UN7gDXhwWLY2nMC3zRDibfsY7wjEkY79CdMZhrxSqqzxf4ZRPXwzWJirMicDa5KwiPeARygHXKNMQHEy3rMopDR20XNZGbJzUtrwDC/KshlLDWyqdmhxZzCsdYmf2fWZPoxCEDyfIvdtNQH0PRkH6Q51g8rFO3Qzxh2LbItcDCOpmuOsV7ntNaERe3v/lP/zO8yn4N+yNPrekmPAAAAAElFTkSuQmCC)

Expected behavior

image <- this is what I see in the web client (Chrome)

Observed behavior (that appears unintentional)

image <- this is what I see in the android app

Possible fixes

:)

@amyblais
Copy link
Member

amyblais commented Sep 3, 2024

@amyblais amyblais added the Bug Report/Open Bug report/issue label Sep 3, 2024
@larkox
Copy link
Contributor

larkox commented Sep 6, 2024

Due to how we handle images, we currently don't give any support for base64 images on mobile, and it is not something we plan to support on the near future.

Images are processed by the server and add metadata about the image sizes. The mobile app doesn't show the images if there is no metadata about them. This is done to properly calculate the elements sizes and avoid the screen jumping around when images are loaded.

@amyblais amyblais added kind/feature Categorizes issue or PR as related to a new feature. and removed Bug Report/Open Bug report/issue labels Sep 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature Categorizes issue or PR as related to a new feature.
Projects
None yet
Development

No branches or pull requests

3 participants