Repository navigation
added option to use a command line script as image uploader - #2100
Merged
Merged
Conversation
fxha
reviewed
Dec 22, 2021
| import { tmpdir } from 'os' | ||
| import path from 'path' | ||
| import axios from '../axios' | ||
| import { dataURItoBlob, getContentHash } from './index' |
Contributor
There was a problem hiding this comment.
Please keep old import order.
| <div class="description">The script will be executed with the image file path as its only argument and it should output with any valid value for the <code>src</code> attribute of a <em>HTMLImageElement</em>.</div> | ||
| <div class="form-group"> | ||
| <div class="label"> | ||
| Script absolute path |
Contributor
There was a problem hiding this comment.
How about "Shell script location" because the script must be included in the PATH environment variable or absolute? Below too.
| <el-button size="mini" :disabled="githubDisable" @click="setCurrentUploader('github')">Set as default</el-button> | ||
| </div> | ||
| </el-tab-pane> | ||
| <el-tab-pane label="Command line script" name="cliScript"> |
Contributor
There was a problem hiding this comment.
I would prefer "Command-line Script" as title.
Contributor
|
Closes #2737 |
# Conflicts: # src/renderer/util/fileSystem.js
Contributor
Author
|
@fxha can you check if my last commit solves the issues you found? |
fxha
approved these changes
Jan 8, 2022
Contributor
|
LGTM |
thimbleberrysystems
pushed a commit
to thimbleberrysystems/WordBird
that referenced
this pull request
Jun 21, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Added the option to upload images using a script.
I have some use cases where the images have to be in specific server and the easiest way for me to implement an uploader with the editor is to run a script that accepts a file path as its first argument and output to stdout the url to use
I believe this feature can help others
Thanks for the project