All Projects → zzzzbw → Gitpic

zzzzbw / Gitpic

Licence: mit
利用github做图床的小工具

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to Gitpic

Azkar-App
Desktop Application 💻 for Calculating Muslim prayer times 🕌 , Morning and Nights Azkar 🤲 with notification for random Azkar that pops-up in specific time.
Stars: ✭ 64 (-40.19%)
Mutual labels:  github-pages, javafx
Snail
基于Java、JavaFX开发的下载工具,支持下载协议:BT(BitTorrent、磁力链接、种子文件)、HLS(M3U8)、FTP、HTTP。人家才不要你的⭐⭐呢,哼
Stars: ✭ 102 (-4.67%)
Mutual labels:  javafx
Jekyll Rtd Theme
Just another documentation theme compatible with GitHub Pages
Stars: ✭ 92 (-14.02%)
Mutual labels:  github-pages
Kmeans pytorch
kmeans using PyTorch
Stars: ✭ 98 (-8.41%)
Mutual labels:  github-pages
Cssfx
Allow runtime modification of JavaFX CSS
Stars: ✭ 95 (-11.21%)
Mutual labels:  javafx
Lipi
A simple static blog generator.
Stars: ✭ 100 (-6.54%)
Mutual labels:  javafx
Develnext
JavaFX and IDE for JPHP (only russian localization, english - in progress)
Stars: ✭ 89 (-16.82%)
Mutual labels:  javafx
Asciidocfx
Asciidoc Editor and Toolchain written with JavaFX 16 (Build PDF, Epub, Mobi and HTML books, documents and slides)
Stars: ✭ 1,533 (+1332.71%)
Mutual labels:  javafx
Lychee
The most complete and powerful data-binding library and persistence infra for Kotlin 1.3, Android & Splitties Views DSL, JavaFX & TornadoFX, JSON, JDBC & SQLite, SharedPreferences.
Stars: ✭ 102 (-4.67%)
Mutual labels:  javafx
Caption ocr tool
视频硬字幕提取工具
Stars: ✭ 98 (-8.41%)
Mutual labels:  javafx
Jglovier.github.io
📓 Source for joelglovier.com. Built with Jekyll and hosted on GitHub Pages.
Stars: ✭ 98 (-8.41%)
Mutual labels:  github-pages
Neumorphism
Neumorphism designed Jekyll theme for personal websites, portfolios and resumes.
Stars: ✭ 96 (-10.28%)
Mutual labels:  github-pages
Swagger Github Pages
How to host Swagger API documentation with GitHub Pages
Stars: ✭ 102 (-4.67%)
Mutual labels:  github-pages
Autolabeler
Add labels to Pull Requests based on matched file patterns
Stars: ✭ 94 (-12.15%)
Mutual labels:  github-pages
Coco
The fastest crypto online
Stars: ✭ 103 (-3.74%)
Mutual labels:  javafx
Brew.sh
🔖 The Homebrew homepage
Stars: ✭ 91 (-14.95%)
Mutual labels:  github-pages
Musicott
JavaFX application that manages and plays music files.
Stars: ✭ 97 (-9.35%)
Mutual labels:  javafx
Hanuman
A responsive, lightning-fast Jekyll theme built using AMP (Accelerated Mobile Pages) to speed up your blogs and websites.
Stars: ✭ 100 (-6.54%)
Mutual labels:  github-pages
Terminus2049.github.io
No more 404
Stars: ✭ 1,546 (+1344.86%)
Mutual labels:  github-pages
Liweimin1996.github.io
Min's blog 欢迎访问我的博客主页!(Welcome to my blog website !)https://liweimin1996.github.io/ 百度云资源持续更新中,欢迎点赞star
Stars: ✭ 106 (-0.93%)
Mutual labels:  github-pages

gitPic

gitPic,利用Github做图床小工具

环境需求

  • Java 11
  • git

依赖

快速使用

  1. 首先要有一个github账号,然后创建一个respository。

    Step1

  2. 给这个respository起一个名字,我们这里取名为git_resource。然后可以在Desciption中填写一些介绍。接下来勾选Initialize this repository with a README。最后点击Create repository注意respository要为Public,不然生成的链接会404

    Step2

  3. clone项目到本地git clone [email protected]:zzzzbw/git_resource.git --depth=1

    注意选择是https方式还是ssh方式,如果已经配置好ssh方式的话建议用这种方式,因为https需要输入账号密码。

    Step3

  4. 打开gitPic软件,在jar包目录下执行命令java -jar gitPic.jar

  5. 在gitPic中选择你要作为图床的git项目,在本案例中就是刚才创建的git_resource(选择后会读取该项目下的git信息,获取会花一点时间),然后再选择要保存图片的文件夹,比如你的java系列的图片可以放在git_resource项目下的java文件夹下。

    Step4

  6. 拖拽图片或者点击选择图片来选择要上传的图片,gitPic会自动将该图片复制到git_resource/java文件夹下,并且生成对应的图片链接,而且该链接已经复制到你的剪贴版中了,可以直接黏贴到你的博文中了。

    Step5

  7. 只是此时这个链接实际上还没上传到github中,在浏览器中是无法访问的,这时候只要点提交并且上传等到上传成功后(如果之间是https模式clone的还要输入github的账号密码),就可以在浏览器中访问了!

    Step6

下载链接

下载链接

如果有任何觉得需要改进的地方请留言或者在issue中提出,非常感谢!

开发者

由于在Java 11中去除了JavaFX组件,所以开发和之前版本的有所不同。

关于Java 11开发JavaFX可以查看官方文档

添加JavaFX依赖

pom.xml中引入JavaFX组件和exec-maven-plugin插件。

<dependencies>
    ...
    <dependency>
        <groupId>org.openjfx</groupId>
        <artifactId>javafx-controls</artifactId>
        <version>11.0.2</version>
    </dependency>

    <dependency>
        <groupId>org.openjfx</groupId>
        <artifactId>javafx-fxml</artifactId>
        <version>11.0.2</version>
    </dependency>
</dependencies>

<build>
    <plugins>
        <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-compiler-plugin</artifactId>
            <version>3.8.0</version>
            <configuration>
                <release>11</release>
            </configuration>
        </plugin>
        <plugin>
            <groupId>org.codehaus.mojo</groupId>
            <artifactId>exec-maven-plugin</artifactId>
            <version>1.6.0</version>
            <executions>
                <execution>
                    <goals>
                        <goal>java</goal>
                    </goals>
                </execution>
            </executions>
            <configuration>
                <mainClass>com.zbw.gitpic.Bootstrap</mainClass>
            </configuration>
        </plugin>
    </plugins>
</build>

运行程序

mvn compile exec:java

打包程序

pom.xml添加maven-shade-plugin打包插件

<plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-shade-plugin</artifactId>
    <version>3.2.0</version>
    <executions>
        <execution>
            <phase>package</phase>
            <goals>
                <goal>shade</goal>
            </goals>
            <configuration>
                <shadedArtifactAttached>true</shadedArtifactAttached>
                <shadedClassifierName>project-classifier</shadedClassifierName>
                <outputFile>shade\${project.artifactId}.jar</outputFile>

                <filters>
                    <filter>
                        <artifact>*:*</artifact>
                        <excludes>
                            <exclude>META-INF/*.SF</exclude>
                            <exclude>META-INF/*.DSA</exclude>
                            <exclude>META-INF/*.RSA</exclude>
                        </excludes>
                    </filter>
                </filters>
                <transformers>
                    <transformer implementation=
                                 "org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
                        <mainClass>com.zbw.gitpic.Launcher</mainClass>
                    </transformer>
                </transformers>
            </configuration>
        </execution>
    </executions>
</plugin>

运行命令打包

mvn compile package

运行命令启动程序

java -jar shade/gitPic.jar
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].