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

Add Polypane instruction to convert image to data uri tip #131

Merged
merged 1 commit into from
Jun 27, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion src/tips/en/convert-image-to-data-url.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
date: 2023-10-02
authors: Patrick Brosset
title: Convert images to data-urls
tags: ["tip", "productivity", "browser:edge", "browser:chrome", "browser:firefox"]
tags: ["tip", "productivity", "browser:edge", "browser:chrome", "browser:firefox", "browser:polypane"]
see-also: ["download-all-images.md", "find-all-images-without-alt-text.md"]
---
A data URL is a URL that starts with the prefix `data:` instead of `http:` or `https:`. This data prefix (or scheme) allows you to embed the actual content of the resource in the URL itself, rather than linking to it. For example `data:text/html,<h1>Hello world</h1>` is a data URL that contains HTML content directly. Try it out in a browser tab!
Expand Down Expand Up @@ -30,4 +30,9 @@ To convert any image to a data URL:
1. Click the **Preview** tab in the sidebar.
1. Right-click on the image preview and select **Copy image as data URI**.

* In Polypane:

1. Right-click on the image you want to convert.
1. Select **Copy...** > **Copy as data URI**. Other options include coping as an IMG tag, copying as markdown and as CSS background-image.

![The Network tool in Edge, an image is selected, the Preview tab is open, and the right-click menu shows the copy image as data URI item](../../assets/img/convert-image-to-data-url.png)
Loading