Giter Club home page Giter Club logo

picture's Introduction

类库地址

https://github.com/jinqiubj/Picture

此类库满足以下需求

  1. 将任意尺寸的图片等比缩放到任意尺寸的透明图片上,如图1是一张200*200的正方形图片.
  2. 在等比缩放的同时,此类库可根据图片的exif信息判断图片是否需要翻转.
  3. 此类库设计的最终用途是实现图片裁剪,但是需要前端插件的配合,前端插件需要把选区的左上端点的坐标、选区的宽和高、原图,上传到服务端并调用类库即可,如图2.

其他说明

  1. 类库文件是Picture_class.php.
  2. 本类库有完整Demo,把github仓库拉取下来,放在web目录下即可测试.
  3. 在类Unix系统测试时,请赋予upload目录可写权限.

示例图片

图片裁剪/裁切图片裁剪/裁切

picture's People

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.