関連するかも情報 |
【話題急上昇中ワード】 1. 東京ドームホテル 2. 滑走順 3. 県議 4. 左眼窩底骨折 5. 逆転Winner 6. 江崎グリコ 7. スケートボーイ 8. ゾナー 9. 前日物販 http://searchranking.yahoo.co.jp/realtime_buzz/ #buzzbot
[t] 2016-03-30 09:10:04
|
RT @TSIJPBO: 新しいブログ記事を公開しました。/#TeamPage の企画書「チームの問題を解決するソフトウェア」を公開 http://www.tractionsoftware.jp/traction/permalink/Blog1270 #e20 #socbiz #pmot #社内ソーシャル #社内SNS http://twitter.com/TSIJPBO/status/662546704596537344/photo/1
[t] 2016-03-30 09:14:19
|
あれ?
from PIL import Image ImportError: No module named PIL
[t] 2016-03-30 09:20:34
|
昨日の歩数計ログ。 My fitbit steps activity #fitstats for 2016-03-29: 2943 steps, 2.11 km traveled, 1933 calories burned.
[t] 2016-03-30 09:30:07
|
昨日の階段・階数・高度・累積標高ログ。 My fitbit floors activity #fitstats for 2016-03-29: 12 floors climbed (36.58 meters).
[t] 2016-03-30 09:30:10
|
昨日の活動割合ログ。 My fitbit time activity #fitstats for 2016-03-29: Very Active: 0min, Sedentary: 20hrs 53min.
[t] 2016-03-30 09:30:14
|
Homebrew で Python をインストールしたけど何かうまくいっていない感。
$ brew install python --framework $ brew linkapps python $ pip install --upgrade pip setuptools
[t] 2016-03-30 09:34:30
|
シンボリックリンクあり
$ which python /usr/local/bin/python
$ ls -l /usr/local/bin/python /usr/local/bin/python -> ../Cellar/python/2.7.11/bin/python
[t] 2016-03-30 09:35:30
|
あれ? シンボリックリンクされてるはず。。。
$ python --version Python 2.7.10
$ /usr/local/Cellar/python/2.7.11/bin/python --version Python 2.7.11
[t] 2016-03-30 09:35:46
|
あれっ?
$ which python /usr/local/bin/python
$ python --version Python 2.7.10
$ /usr/local/bin/python --version Python 2.7.11
[t] 2016-03-30 09:37:08
|
シェル起動しなおしたら
$ python --version Python 2.7.11
ちゃんと 2.7.11 になってた。 which コマンドは自分の環境のパスとはちがうんだろうか。。。
[t] 2016-03-30 09:37:46
|
$ pip --version pip 8.1.1 from /usr/local/lib/python2.7/site-packages (python 2.7)
[t] 2016-03-30 09:39:38
|
$ pip install Pillow Requirement already satisfied (use --upgrade to upgrade): Pillow in ./site-packages
[t] 2016-03-30 09:40:50
|
$ pip install Pillow --upgrade Requirement already up-to-date: Pillow in ./site-packages
[t] 2016-03-30 09:40:52
|
Python で画像フォーマット変換してみる。
[t] 2016-03-30 09:45:11
|
# encoding: UTF-8
from PIL import Image
img = Image.open("input.png", "r") img.save("output.jpg", "JPEG", quality=80, optimize=True)
[t] 2016-03-30 09:45:24
|
img = Image.open("input.jpg", "r") img.save("output.png", "PNG", quality=80, optimize=True)
[t] 2016-03-30 09:45:30
|
出力されたPNGファイルをチェック。
$ file output.png output.png: PNG image data, 480 x 390, 8-bit/color RGB, non-interlaced
[t] 2016-03-30 09:46:21
|
出力されたJpegファイルをチェック。
$ file output.jpg output.jpg: JPEG image data, JFIF standard 1.01
[t] 2016-03-30 09:46:25
|
Python で画像フォーマット変換できた(*´ω`*)
[t] 2016-03-30 09:46:38
|