Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/qingfeng/p
Upload file service for Douban
https://github.com/qingfeng/p
Last synced: about 2 months ago
JSON representation
Upload file service for Douban
- Host: GitHub
- URL: https://github.com/qingfeng/p
- Owner: qingfeng
- License: other
- Created: 2013-10-25T09:45:10.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2015-08-12T11:05:57.000Z (about 9 years ago)
- Last Synced: 2024-07-26T07:33:04.196Z (2 months ago)
- Language: CSS
- Homepage:
- Size: 357 KB
- Stars: 101
- Watchers: 11
- Forks: 32
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[![Code Quality](https://landscape.io/github/qingfeng/p/master/landscape.png)](https://landscape.io/github/qingfeng/p/master)
P
====
Douban Intra Service [http://p.dapps.douban.com/](http://p.dapps.douban.com/)Dev
====
```
git clone PROJECT.git
cd PROJECT
virtualenv venv
source venv/bin/activate
pip install -r requirement.txt
mkdir permdir
python app.py
open http://localhost:5000
```Command Line
====
Example:* Command line: ``curl -F file=@"/tmp/1.png" http://p.dapps.douban.com/``
* Command line: ``curl -F file=@"/tmp/1.png" -F w=100 -F h=100 http://p.dapps.douban.com/``
* Resize image: ``http://p.dapps.douban.com/r/img_hash.jpg?w=300&h=200``
* Affine Transformation:
``http://p.dapps.douban.com/a/img_hash.jpg?w=300&h=300&a=0.86,0.5,-100,-0.5,0.86,50``
(Rotate 30 degree clockwise and then translation 100 right, 50 up.)Mac Desktop
====
Thanks @zhuchongyu [Download](http://d.dapps.douban.com/_upload/DoubanP.zip)