You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Starting from `2.4.3`, URL upload supports uploading multiple URLs in one action (**one URL per line**):
40
+
41
+
- Empty lines are ignored.
42
+
- Duplicate URLs are de-duplicated automatically (the first occurrence order is preserved).
43
+
- Invalid lines (non-`http(s)` URLs) are skipped. PicGo will show a warning and write the skipped line contents into `picgo.log` for troubleshooting.
44
+
- If you attempt to upload more than 10 URLs at once, PicGo will ask for confirmation. Cancel will return to the input dialog with the original content preserved.
45
+
46
+
#### Tips <Badgetext="2.4.3+" />
47
+
48
+
- When opening the URL input dialog, PicGo will try to extract `http(s)` URLs from your clipboard text and prefill the dialog (upload still requires explicit confirmation).
49
+
- The URL input uses a resizable textarea (max height: 240px).
50
+
51
+
#### Drag-and-drop URLs <Badgetext="2.4.3+" />
52
+
53
+
You can also drag text that contains URLs (or `text/uri-list`) into the upload area. PicGo will parse newline-delimited URLs and upload the valid ones.
24
54
25
55
### All-format Upload <Badgetext="2.4.0+" />
26
56
27
57
Since `2.4.0`, PicGo supports the "all-format upload" feature, which means you can drag non-image files into the upload area as well.
28
58
59
+
## Global URL Rewrite <Badgetext="2.4.3+" />
60
+
61
+
Starting from `2.4.3`, PicGo provides a GUI to manage global URL rewrite rules (`settings.urlRewrite.rules`). These rules can rewrite generated URLs after upload (e.g. change domain, force https, adjust paths, etc.).
For more details, see PicGo-Core's [documentation](https://picgo.github.io/PicGo-Core-Doc/guide/config.html#settings).
115
+
29
116
## Album Area
30
117
31
118
PicGo's album area supports to view all images you have uploaded. You can click on the image to preview. You can also click the icon below to copy the image link or delete the image (this will delete the local data to make your images disappear in your album area)
@@ -42,15 +129,45 @@ You can select the image link format in the album area since PicGo 2.0:
Starting from `2.4.3`, PicGo supports bulk rewriting URLs for selected album items. This is not limited to rewriting the host—you can rewrite the full link using regex rules.
143
+
144
+
How to use:
145
+
146
+
1. Select the images you want to rewrite (you can filter by image host to narrow down the list)
147
+
2. Click the **More** (`…`) button in the album toolbar
148
+
3. Choose **Rewrite selected image URLs**
149
+
150
+
Then you can:
151
+
152
+
- Toggle **Apply global URL rewrite rules** to use the rules you configured in **Global URL Rewrite** (it also shows the global rule count)
153
+
- (Optional) Fill a **temporary rule** (match + replace). The temporary rule takes priority over global rules.
154
+
-`g`: global replace
155
+
-`i`: ignore case
156
+
157
+
If you filled a temporary rule, PicGo will ask whether you want to save it into the global rule list:
158
+
159
+
-**Apply and save**: apply to the current selection and append the rule to the global list
160
+
-**Apply only**: apply to the current selection only
161
+
-**Cancel**: cancel this operation
46
162
47
-
`2.4.0` adds a bulk edit feature for domains inside the album area. For example, when you have multiple URLs that start with `https://www.a.com/...` and you want to switch them all to `www.b.com`, you can select those images and run this action.
163
+
After the operation, PicGo will show the success/failed counts. If no URLs are changed, PicGo will also notify you.
48
164
49
165
::: warning Note
50
-
You have to select the images before running the bulk edit. Use the image host filter to quickly limit the scope.
166
+
- It is recommended to preview your rules first in **Global URL Rewrite** to avoid unexpected bulk edits.
167
+
- If the rewritten result becomes an empty string, it will be skipped.
Copy file name to clipboardExpand all lines: docs/guide/getting-started.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -24,6 +24,7 @@ You can use mini window to upload your images in Windows and Linux. MacOS can do
24
24
25
25
1. You can directly drag and drop images to the mini window for uploading.
26
26
2. Copy the image to the clipboard, then right click on the mini window and select `clipboard image upload` ( **You are not allowed to copy the image itself in systems other than macOS, e.g. Windows must open the image and copy by right-clicking. In the normal case, you want to directly upload your image once you have a snipshot. That is the rationality of this design.** )
27
+
3. <Badgetext="2.4.3+" /> You can also drag and drop image URLs (or multi-line URL text) to the mini window to upload by URL (less common).
0 commit comments