Opened 2 years ago
#56768 new defect (bug)
Images encoded with Base64 with a given string length appears weird in editor but kills the post render on the site
Reported by: | burgatshow | Owned by: | |
---|---|---|---|
Milestone: | Awaiting Review | Priority: | normal |
Severity: | normal | Version: | 6.0.2 |
Component: | Editor | Keywords: | |
Focuses: | Cc: |
Description
Dear Developers,
I tried to put an image into one of my posts encoded with base64. The image is encoded from PNG to Base64 using macOS
base64 -i input.png -o output.png.txt
command.
The image converted and successfully edited in the related post image block by entering HTML editor and replaced the img src="" with the following:
<figure class="wp-block-image aligncenter"><img src="data:image/png;base64,<base64 long string>" alt="Alternate text" /></figure>
When I switched back to preview mode, the image successfully displayed in the editor, however the post when published is broken.
I have some screenshots from my blog site as well as the image as base64 file.
Attachments (5)
Change History (5)
Note: See
TracTickets for help on using
tickets.
Original large PNG