有时候会需要查看图片的信息,专门打开一个图片软件来做这件事,真是会比较麻烦。其实在终端里就可以做这件事了。

file命令

0   Pictures $ file couple.png
couple.png: PNG image data, 1440 x 900, 8-bit/color RGB, non-interlaced

但是并非所有的图片都可以显示尺寸,JPEG格式的就不可以

0   Pictures $ file couple.jpg
couple.jpg: JPEG image data, JFIF standard 1.01, comment: "\377\376"

rdjpgcom 命令

相比file命令不能显示JPEG格式图片的尺寸,rdjpgcom命令则只能处理JPEG格式的文件

0   Pictures $ rdjpgcom ...
查看全文

工作了好久,一些感想

六 15 三月 2014 by greatcl

Life is still, but it's different from the one before.


<script>
    alert("hello github");
</script>
查看全文

转战GitHub

六 15 三月 2014 by greatcl

第一次来到GitHub,学习使用Pelican搭建博客。

Click Here!

查看全文