Giter Club home page Giter Club logo

qimage-mac's Introduction

qimage-mac


qimage-mac 是一个 mac 中提升 markdown 贴图体验的实用小工具,基于 Alfred 实现,可以自定义快捷键,一键上传图片或截图至七牛云,获取图片的 markdown 引用至剪贴板,并自动粘贴到当前编辑器,使用简单方便。

Changelog

  • v1.2 - 2020.01
    1. 支持自定义图片url路径,如:在环境变量中指定环境变量prefiximg/则上传的图片url会变为 http://cdn.example.com/img/cool.jpg,而不是使用根目录http://cdn.example.com/cool.jpg
    2. 支持先压缩图片再上传(需安装ImageOptim或者optimage,并填写compressProvider环境变量)。图片将拷贝一份再压缩,不会直接压缩原图。
  • v1.1 - 2017.11 - 针对 issue #4 新增支持自定义文件名称的 workflow :support user-defined file name.alfredworkflow
    特点:
    1. 上传本地图片则默认使用原图片名称
    2. 上传截图或网络图片时,会弹窗提示输入自定义图片名称

Usage

详细的使用教程请参考:使用alfred在markdown中愉快的贴图
windows版本请移步至:https://github.com/jiwenxing/qiniu-image-tool-win

Features

  • 支持jpg、png、bmp及gif等各种图片格式
  • 支持截图及网络图片直接复制上传
  • 支持各种其它格式本地文件上传,返回资源引用
  • 上传失败或成功通知栏会有相应提示
  • 使用简单,只需配置环境变量即可

Requirements

Alfred with Powerpack qshell 七牛账号

Preview

  1. 本地图片文件上传

  2. 截图上传

  3. 其它文件上传

注:演示gif使用macdown及licecap制作

To-do

  1. 文件名中如果包含空格,图片将上传不成功
  2. 文件名没有加类似.jpg后缀,不会自动补齐。

License

MIT License.
Copyright (c) 2017 Jverson

qimage-mac's People

Contributors

codezm avatar huahuayu avatar jiwenxing avatar kchen0x avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

qimage-mac's Issues

按照你的文件出现运行错误

debug 内容如下: 可以解释一下是哪里的问题吗 谢谢

[2019-03-18 13:13:32][ERROR: action.script] /Users/wangxiaoyao/Library/Caches/com.runningwithcrayons.Alfred-3/Workflow Scripts/36DC5873-6F58-4398-95A5-06A330035037:2424:2455: execution error: Error: command account receives zero or three args, received 2

Usage:
  qshell account [<AccessKey> <SecretKey> <Name>] [flags]

Flags:
  -h, --help        help for account
  -w, --overwrite   overwrite account or not when account exists in local db, by default not overwrite

Global Flags:
  -C, --config string   config file (default is $HOME/.qshell.json)
  -d, --debug           debug mode
  -L, --local           use current directory as config file path
  -v, --version         show version

command account receives zero or three args, received 2

Alfred 版本问题

这个支持的 Alfred 版本是多少?
我的显示有新 feature 需要升级 Alfred

能否加一个输出 图片url地址

默认 :

![](http://7.028www.com/8e04c7c2759cc509d62edcf716b28fa4.jpg)

能否加入一个设置选项输出是

http://7.028www.com/8e04c7c2759cc509d62edcf716b28fa4.jpg

控制台报错:ERROR: Qiniu[Run Script] 2331:2362: execution error: Error: command account receives zero or three args, received 2

控制台信息报错

[19:56:49.105] Qiniu[Hotkey] Processing complete
[19:56:49.112] Qiniu[Hotkey] Passing output '' to Run Script
[19:56:51.288] Qiniu[Run Script] Processing complete
[19:56:51.291] Qiniu[Run Script] Passing output '' to Copy to Clipboard
[19:56:51.292] Qiniu[Run Script] Passing output '' to Post Notification
[19:57:00.529] Qiniu[Hotkey] Processing complete
[19:57:00.535] Qiniu[Hotkey] Passing output '' to Run Script
[19:57:01.047] ERROR: Qiniu[Run Script] 2331:2362: execution error: Error: command account receives zero or three args, received 2

Usage:
  qshell account [<AccessKey> <SecretKey> <Name>] [flags]

Flags:
  -h, --help        help for account
  -w, --overwrite   overwrite account or not when account exists in local db, by default not overwrite

Global Flags:
  -C, --config string   config file (default is $HOME/.qshell.json)
  -d, --debug           debug mode
  -L, --local           use current directory as config file path
  -v, --version         show version

command account receives zero or three args, received 2
 (1)
[19:57:01.060] Qiniu[Run Script] Processing complete
[19:57:01.061] Qiniu[Run Script] Passing output '' to Copy to Clipboard
[19:57:01.062] Qiniu[Run Script] Passing output '' to Post Notification

环境

  • Alfred
    • 已安装Qiniu.alfredworkflow,
    • 配置workflow环境变量,创建新的存储空间和使用老的存储空间(bucket&bucketDomain)都会报以上错误,AccessKey & SecretKey是从https://portal.qiniu.com/user/key进行复制粘贴的
  • qshell
    • 已确认版本qshell version v2.4.0

请麻烦作者帮忙看一下,如还需提供信息可说明,谢谢~

复制文件路径包含空格会导致上传失败

[2017-10-24 16:38:40][ERROR: action.script] /Users/tony/Library/Mobile Documents/comappleCloudDocs/Screenshots/[email protected]
/Users/tonyxu/Library/Caches/com.runningwithcrayons.Alfred-3/Workflow Scripts/1E9DFC7E-FDCF-42DC-977A-65C8204AA8E5:2497:2527: execution error: Local file error stat /Users/tony/Library/Mobile: no such file or directory (1)

貌似sh没有,请帮助

/Users/j.applesid/Library/Caches/com.runningwithcrayons.Alfred-3/Workflow Scripts/FAECC616-DE24-42E5-BD30-A73ECDABCFB5:2424:2455: execution error: sh: /usr/local/bin/qshell: No such file or directory (127)

上传报错 404 Bad Request

[ERROR: action.script] /Users/jin2511/Library/Caches/com.runningwithcrayons.Alfred-3/Workflow Scripts/BD68391D-34B3-424E-B27D-95FA133728ED:2500:2530: execution error: Put file error: query region error, <html>
<head><title>400 Bad Request</title></head>
<body bgcolor="white">
<center><h1>400 Bad Request</h1></center>
<hr><center>openresty</center>
</body>
</html> (1)

怎么得到图片地址呢?

您好,是直接截图到键贴版,再按⌥+⌘+V就可以了吗?
为什么我按⌥+⌘+V后出来的不是地址,而是alfred的框,
上面是七牛云的图标和“please type in the file name”

{"error":"Document not found"}

能够通过cmd + alt + v 来粘贴出正确的地址,但是查看地址的时候发现并没有上传到七牛云,然后报错了这个错误,请问是什么原因?

mac下的markdown地址有问题

debug的信息:

[2018-02-15 14:02:44][trigger.hotkey] Processing output of 'action.script' with arg ''
[2018-02-15 14:02:48][action.script] Processing output of 'output.clipboard' with arg '![](http://ouat6a0as.bkt.clouddn.com/
ouat6a0as.bkt.clouddn.com
ouat6a0as.bkt.clouddn.com
http://ouat6a0as.bkt.clouddn.com/7a143992735e591eca588ab79c7eedad.jpg)
'
[2018-02-15 14:02:48][action.script] Processing output of 'output.notification' with arg '![](http://ouat6a0as.bkt.clouddn.com/
ouat6a0as.bkt.clouddn.com
ouat6a0as.bkt.clouddn.com
http://ouat6a0as.bkt.clouddn.com/7a143992735e591eca588ab79c7eedad.jpg)
'

剪贴板有图片的情况下,按下热键报错,请问该怎么解决。

[2019-01-30 10:39:22][ERROR: action.script] *** Error creating a JP2 color space: falling back to sRGB
*** Error creating a JP2 color space: falling back to sRGB
/Users/huangwenjun/Library/Caches/com.runningwithcrayons.Alfred-3/Workflow Scripts/6DE62051-2A67-4E0F-B1DD-DDA7FA44B741:2331:2362: execution error: Error: command account receives zero or three args, received 2

qshell account最新版本参数

qshell account [--overwrite | -w]
增加了一个参数,qimage-mac只有两个参数

set account_commond to "/usr/local/bin/qshell account " & AccessKey & " " & SecretKey

【feature request】剪贴板里的图片上传以时间戳命名

你好,我希望能加个功能,加一个flag来配置剪贴板上传的图片自动以时间戳+.png命名

如果flag开启的话,自动命名类似这样:

20200130195801.png

我本来想自己改,但是我对workflow不熟,这个改起来应该不费事。picgo现在就是自动命名,我觉得好用。

自己命名有点犯难

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.