Timeline for How to download Data URLs from command line?
Current License: CC BY-SA 4.0
5 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Dec 25, 2022 at 22:52 | comment | added | Lucas |
If you’re on macOS, you can replace xclip -out -selection clipboard with pbpaste for the same results.
|
|
| Nov 28, 2020 at 16:32 | history | edited | Emanoel | CC BY-SA 4.0 |
Improved script removing useless parts and adding filename and extension.
|
| Nov 27, 2020 at 19:52 | comment | added | Freddy |
There's no need for a temporary file: echo "${data#*,}" | base64 -d > filename. You could also extract the image type and use it as suffix for the output filename, e.g. ext=${data#*/}; ext=${ext%%;*}; ext=.${ext/jpeg/jpg}.
|
|
| Nov 27, 2020 at 17:18 | history | edited | Emanoel | CC BY-SA 4.0 |
Added a bit of explanation about the script
|
| Nov 27, 2020 at 17:01 | history | answered | Emanoel | CC BY-SA 4.0 |