Keep the frames of pasted GIF, WebP, and AVIF images
A browser puts only the first frame of an image on the clipboard, with HTML that names the image address. - Documents and cards download the original of a GIF, WebP, or AVIF address. The host commands workspace_save_image_url and workspace_download_image read the format from the file contents and refuse other data. A failed download keeps the first frame and shows a message. - Copy image in the RuneStone browser keeps the bytes that the page loaded. The engine reads them through the DevTools Protocol, so the website gets no second request. The new copiedImage command gives them in parts below the line limit of the host. A paste uses them first. - An empty dropped image file shows a message. Firefox gives such a file when the website refuses its download. Copy image needs a new browser engine build. Card 0d5c18f7.
This commit is contained in:
@@ -10,6 +10,8 @@ This guide explains how to insert and edit images, read diagrams, edit Markdown
|
||||
| --- | --- |
|
||||
| Drag an image from the navigator into a Markdown editor | RuneStone inserts a relative link to the existing file. Press Escape to cancel the drag. |
|
||||
| Drop an image from your system file manager, or paste an image | RuneStone copies the image into the workspace `attachments/` folder with a unique name, then inserts a link. |
|
||||
| Paste an image that you copied with **Copy image** in the RuneStone browser | RuneStone saves the original file that the page loaded. A GIF keeps its animation, also from a website that refuses downloads. |
|
||||
| Paste a GIF, WebP, or AVIF image that you copied in another web browser | That browser copies only the first frame. RuneStone downloads the original file from the image address, so the animation stays. If the website refuses the download, RuneStone saves the first frame and shows a message. |
|
||||
|
||||
Undo removes the inserted link. It keeps the image file.
|
||||
|
||||
|
||||
@@ -116,6 +116,12 @@ To add an image to a card, paste it or drop it into the description, or select *
|
||||
Use a PNG, JPEG, GIF, or WebP image of at most 50 MiB.
|
||||
To show an image on the board, add **Card cover** and choose one of the images of the card.
|
||||
|
||||
A web browser copies only the first frame of an image. When you paste a GIF or WebP image from a browser, RuneStone downloads the original file.
|
||||
Then the animation stays.
|
||||
|
||||
Some websites refuse that download. Then the card gets the first frame, and RuneStone shows a message.
|
||||
To keep the animation, use **Copy image** in the RuneStone browser. That copy keeps the original file that the page loaded.
|
||||
|
||||
**More actions** → **Customize background** sets an image behind the open board, or behind All tasks.
|
||||
To show the Background slideshow on the boards, see [Choose where the background shows](themes.md#choose-where-the-background-shows).
|
||||
|
||||
|
||||
Reference in New Issue
Block a user