Giter Club home page Giter Club logo

joshlongo's Introduction

goimg

介绍

一个轻量型的图片服务器

软件架构

上传接口: http://127.0.0.1:8080/upload

参数:Files 类型:文件

返回结果: [{"success":true,"message":"OK","version":"v0.1.1","data":{"size":49160,"mime":"image/jpeg","fileId":"5781339b809d5f18132f5c4fbe9df2fe","fileName":"gss0.baidu.jpg"}}]

使用说明: http://127.0.0.1:8080/5781339b809d5f18132f5c4fbe9df2fe 默认:压缩质量为75%

访问原图: http://127.0.0.1:8080/5781339b809d5f18132f5c4fbe9df2fe?p=1 //p=1 查看原始图片

下载图片 http://127.0.0.1:8080/5781339b809d5f18132f5c4fbe9df2fe?d=1 //d=1 下载图片,浏览器不再展示图片

灰阶图 http://127.0.0.1:8080/5781339b809d5f18132f5c4fbe9df2fe?g=1 //g=1 灰阶图

缩放 http://127.0.0.1:8080/5781339b809d5f18132f5c4fbe9df2fe?w=100&h=100 //w宽度 h高度, 只传递w或h 等比例缩放,同时传递两个值,等宽等高裁切

压缩 http://127.0.0.1:8080/5781339b809d5f18132f5c4fbe9df2fe?q=75 //q 压缩质量

转换格式 http://127.0.0.1:8080/5781339b809d5f18132f5c4fbe9df2fe?f=png //f 转换格式 ,默认jpg

旋转 http://127.0.0.1:8080/5781339b809d5f18132f5c4fbe9df2fe?r=90 //r 旋转图像

裁切 http://127.0.0.1:8080/5781339b809d5f18132f5c4fbe9df2fe?x=10&y=10&w=100&h=100 //四个值同时传递时,x和y起始坐标点,w h 要裁切的宽度和高度

安装教程

  1. xxxx
  2. xxxx
  3. xxxx

使用说明

  1. xxxx
  2. xxxx
  3. xxxx

参与贡献

  1. Fork 本仓库
  2. 新建 Feat_xxx 分支
  3. 提交代码
  4. 新建 Pull Request

码云特技

joshlongo's People

Contributors

alishoffn1t4j avatar

Watchers

 avatar

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.