https://github.com/twtrubiks/croppic-combine-carousel-example
Croppic 搭配 Carousel 簡單範例 ,使用 Python Flask
https://github.com/twtrubiks/croppic-combine-carousel-example
bootstrap-carousel croppic dropzone flask pillow python tutorial
Last synced: 3 months ago
JSON representation
Croppic 搭配 Carousel 簡單範例 ,使用 Python Flask
- Host: GitHub
- URL: https://github.com/twtrubiks/croppic-combine-carousel-example
- Owner: twtrubiks
- Created: 2016-12-25T07:47:21.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-12-25T08:15:01.000Z (over 8 years ago)
- Last Synced: 2025-01-17T05:09:10.682Z (4 months ago)
- Topics: bootstrap-carousel, croppic, dropzone, flask, pillow, python, tutorial
- Language: JavaScript
- Size: 724 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Croppic combine Carousel Example - Python Flask
Croppic 搭配 Carousel 簡單範例 ,使用 Python Flask* [Youtube Demo](https://youtu.be/fbZ0S659S_g)
常看到別人的網站有上傳圖片(並且有截圖功能),教你使用 Python [Flask](http://flask.pocoo.org/) 快速建立一個。
Croppic 搭配 Bootstrap Carousel 簡單範例 📝
## 特色
* 使用 [croppic](http://www.croppic.net/) 實現截圖功能。
* 搭配 Bootstrap Carousel 。
* 搭配 SQLite。## 安裝套件 Pillow
請先確定電腦有安裝 [Python](https://www.python.org/)接著請安裝[ Pillow ]( http://pillow.readthedocs.org/en/3.1.x/index.html )
```
pip install Pillow
```
更多資料可參考 [ http://pillow.readthedocs.org/en/3.1.x/index.html ]( http://pillow.readthedocs.org/en/3.1.x/index.html )之前我也有稍微介紹過[ Pillow ]( http://pillow.readthedocs.org/en/3.1.x/index.html ) ,可參考 [pillow-examples ]( https://github.com/twtrubiks/pillow-examples )
### 使用 Croppic
更多 croppic 資料 ,可參考 [croppic](http://www.croppic.net/)
## 執行畫面
首頁
按 上傳圖片 的按鈕

上傳自己想要裁切的圖片

輸入圖片的描述

接著你就會看到 Bootstrap Carousel 裡面有圖片了
當你上傳更多的圖片
裁切過的圖片放在 croppic-flask/static/uploads

SQLite

## 後記
因為要截圖,所以必須用到[ Pillow ]( http://pillow.readthedocs.org/en/3.1.x/index.html ) 這個套件,稍微麻煩一點點,如果你單純只是要傳檔案,可以使用之前介紹過的 [ Dropzone.js ](http://www.dropzonejs.com/),這個就是直接傳給你檔案,會比較方便,可參考我之
前寫的範例[ flask-dropzone-wavesurfer ](https://github.com/twtrubiks/flask-dropzone-wavesurfer )。
## 執行環境
* Python 3.4.3## Reference
* [croppic](http://www.croppic.net/)
* [ Pillow ]( http://pillow.readthedocs.org/en/3.1.x/index.html )## License
MIT license