随着互联网和数码产品的普及,许多用户希望自己制作的数码相片以Web方式和朋友分享。使用igal(http://www.stanford.edu/~epop/igal/ )可以轻松实现。首先配置一个基于Apache的Web服务器和ImageMagicK软件,后者主要用于对图像进行转换、编辑、组合、特殊处理等,是一款非常好用的图像处理工具。它支持对多种格式的图像进行处理,最多支持的图像格式有157种格式,包括目前流行的TIFF、JPEG、PNG、PDF、PhotoCD及GIF等。Image MagicK还支持动态图像创建,这一点非常适合在Web页面上使用。Igal能够从映象文件中生成符合W3C标准的带缩略图和幻灯的静态XHTML 映射图库,支持的图像格式:PNG、GIF、JPEG。下载安装igal相关软件包:
|
#wget http://www.stanford.edu/~epop/igal/igal-1.4-1.noarch.rpm #rpm -ivh ImageMagick-6.7.3-6.rpm #rpm -ivh igal-1.4-1.noarch.rpm |
|
#cd var/www/html # igal Found 9 image files in directory . Creating thumbnails: .thumb_1.jpg .thumb_2.jpg .thumb_20051104_181755_1.jpg .thumb_lusan0927_01.jpg .thumb_lusan0927_02.jpg .thumb_lusan0927_03.jpg .thumb_lusan0927_04.jpg .thumb_lusan0927_05.jpg .thumb_lusan0927_07.jpg ... done! Determining image sizes ......... done! No CSS template file ... getting /usr/local/lib/igal/igal.css Found .slidetemplate.html file ... using it. Creating individual slides: 1.html 2.html 3.html 4.html 5.html 6.html 7.html 8.html 9.html ... done! Found .tile.png file ... using it. Found .indextemplate.html ... using it. Creating the index.html file ......... done! |
最后启动Linux网页浏览器firefox即可在线欣赏Web相册。

图4 Web相册的索引
如果想单独查看某一张相片,只要用鼠标点击索引页面的图像即可。Igal是一个命令行工具软件,详细使用情况可以查看手册页(http://www.stanford.edu/~epop/igal/igalman.html )。
另外一个基于Web的电子相册软件:Gallery。它安装很简单,有完善的安装向导,并且提供给使用者非常直观方便的创建和管理工具。官方网址:http://gallery.sourceforge.net/
以上笔者介绍了几个工具,:从数码相机驱动程序到数码相片的加工、制作成Web相册。相信借助它们你可以轻松玩转数码相片。Widnows操作系统可以完成的工作在Linux下也会做得很好。
关注此文的读者还看过: