¡¡¡¡ÊýÂëÏà»úÊÇÄ¿Ç°Ôö³¤×î¿ìµÄÍâÉèÖ®Ò»£¬ÔÚLinuxÏÂËüµÄÅäÖ÷dz£¼òµ¥¡£Ö÷Ҫͨ¹ýgphoto2Èí¼þ°üÖ§³ÖÊýÂëÏà»ú¡£Í¨³£Ö»Òª°²×°ÅäÖÃgphoto2Èí¼þ°ü¾Í¿ÉÒÔÔÚLinuxÏÂʹÓÃÊýÂëÏà»ú¡£×îÐÂ2.1.6 °æ±¾ µÄgphoto2Ö§³Ö27¸ö³§É̵Ä616¶àÖÖÐͺŵÄÊýÂëÏà»ú£¬¿ÉÒԲ鿴Á´½Ó£ºhttp://www.gphoto.org/proj/libgphoto2/support.PHP¡£Èç¹ûÄãµÄÊýÂëÏà»úÔÚÇý¶¯Ö®ÁС£ÄÇô¿ÉÒÔÕý³£Ê¹Óá£ËµÃ÷£º³ýÁËÏÂÔØ°²×°gphoto2ÍâÁíÍ⼸¸öº¯Êý¿â£ºlibgphoto2¡¢libkexif¡¢libkipiÒ²Òª°²×°£¬ÔÚgphoto2¹Ù·½ÍøÖ·¶¼¿ÉÒÔÕÒµ½£¬ÏÂÔØ·½·¨£º
#wget http://ovh.dl.sourceforge.net/sourceforge/gphoto/gphoto2-2.1.6.tar.gz
#wget http://keihanna.dl.sourceforge.net/sourceforge/gphoto/libgphoto2-2.1.6.tar.gz
#wget http://umn.dl.sourceforge.net/sourceforge/digikam/libkipi-0.1.2.tar.bz2
#wget http://umn.dl.sourceforge.net/sourceforge/digikam/libkexif-0.2.2.tar.bz2
¡¡¡¡°²×°¹ý³Ì±È½Ï¼òµ¥£¬ÕâÀï¾Í²»×¸ÊöÁË¡£ÏÂÃæ½éÉÜÈçºÎÔÚLinuxÏÂÍæתÊýÂëÏà»ú£¬²Ù×÷ϵͳRed Hat Enterprise Linux 4.0¡£
¡¡¡¡Ò»¡¢Linux»·¾³ÏÂUSBÊýÂëÏà»úµÄÇý¶¯£º¡¡¡¡ÊýÂëÏà»úºÍPCÖ®¼äÒ»°ã²ÉÓÃUSB½Ó¿Ú½øÐÐͨÐÅ£¬×îÀíÏëµÄÇé¿öÊÇ¿ÉÒÔ¼´²å¼´Óõġ£ÔÚÕâÖÖÇé¿öÏ£¬Ö»ÐèҪʹÓüòµ¥µÄmountÃüÁ¾Í¿ÉÒÔÏñ´æÈ¡ÉÁÅÌÒ»Ñù´æÈ¡ÊýÂëÏà»úÉϵÄ×ÊÁÏ¡£USBµÄ¼¼ÊõÌØÉ«´Ë´¦²»ÔÙ׸Êö£¬¿´Ò»¿´Linux¶ÔUSBµÄÖ§³Ö¡£USB²ÉÓô®Ðз½Ê½´«ÊäÊý¾Ý£¬USB 1.1×î´óÊý¾Ý´«ÊäÂÊΪ12Mbps£¬LinuxÄÚºËΪ2.4ÒÔÉÏ°æ±¾¶¼¿ÉÒÔÖ§³Ö¡£USB 2.0¹æ·¶ÊÇÓÉUSB 1.1¹æ·¶Ñݱä¶øÀ´µÄ£¬LinuxÄÚºË2.4.19°æ±¾¿ªÊ¼¶ÔUSB 2.0½øÐÐÖ§³Ö¡£³ýÁËÄں˵İ汾Ҫ¶ÔUSB½Ó¿Ú½øÐÐÖ§³ÖÖ®Í⣬»¹ÒªÈ·¶¨Ä¿Ç°µÄϵͳÊÇ·ñ±àÒëÁËUSBµÄÇý¶¯Ä£¿é¡£Èç¹ûÈÃLinuxϵͳ֧³ÖUSBÉ豸£¬»¹ÐèҪһЩÇý¶¯Ä£¿é¡£ÎÒÃǶ¼ÖªµÀÄÚÖõÄÇý¶¯³ÌÐòÒ»°ã¶¼ÔÚ /lib/modules/2.xxxx/kernel/driversĿ¼ÖС£Õâ¸öĿ¼ÖлáÓÐusb¼°¼¸¸ö×ÓĿ¼£¬¿ÉÒÔ´ÓÖÐÕÒµ½ÒÔϵļ¸¸öUSB¹Ø¼ü»ù´¡Ä£¿é£ºusbcore.o ÊÇËùÓÐUSBÉ豸¶¼ÐèÒªµÄ»ù±¾Çý¶¯Ä£¿é£»¡¡¡¡host/ehci-hcd.o ÊÇUSB 2.0É豸֧³Ö£»host/usb-uhci.o ÊÇIntel VIAµÈоƬ×éUSB²¿·ÖµÄÇý¶¯£»¡¡¡¡host/usb-ohci.o ÊÇ iMac¡¢SiS¡¢AliµÈ·ÇIntelоƬ×éUSB²¿·ÖµÄÇý¶¯£»storage/usb-storage.o ÊÇUSB½Ó¿ÚµÄ´æ´¢É豸£¬ÈçÒƶ¯Ó²ÅÌ¡¢USBÉÁÅ̵ȶ¼»áÓõ½£»hid.o ÊÇUSB½Ó¿ÚµÄ¼üÅÌ¡¢Êó±êµÈÈË»ú½»»¥É豸µÄ»ù´¡Ö§³Ö¡£ÔÚ¸ÃĿ¼Ï»¹ÓÐһЩ¾ßÌåÉ豸µÄÇý¶¯³ÌÐò£¬·Ö±ðÇý¶¯²»Í¬É豸£ºusb-storage.o USBÊÇÕë¶ÔÓë´æ´¢²¿·ÖµÄÇý¶¯Ä£¿é£»scsi_mod.o ÊÇÕë¶ÔSCSIÉ豸µÄÖ§³Ö£» sd_mod.o ÊÇÕë¶ÔSCSIÓ²ÅÌÖ§³ÖÄ£¿é£»sr_mod.o ÊÇÕë¶ÔSCSI¹âÇýÖ§³ÖÄ£¿é£»ide-scsi.o ¸ÃÄ£¿é¿ÉÒÔ°ÑIDEÉ豸ģÄâ³ÉSCSI½Ó¿Ú¡£
¡¡¡¡ÊýÂëÏà»ú½Ó¿ÚÀàÐÍ·±¶à£¬µ«ÊÇÎÒÃÇÖªµÀUSB½Ó¿ÚÊÇÊýÂëÏà»úµÄÖ÷Òª½Ó¿Ú£¬ÔÚLinuxÖзÃÎÊÊýÂëÏà»ú£¬Í¨³£¿ÉÒÔͨ¹ýÏÂÃæÁ½ÖÖ·½·¨¡£
¡¡¡¡1. ÃüÁîÐÐϲÙ×÷ÊýÂëÏà»ú
¡¡¡¡°²×°gphoto2Èí¼þ°üºó¾Í¿ÉÒÔÇý¶¯ÊýÂëÏà»úÁË£¬Í¨³£ÓÐÁ½¸öÃüÁî¿ÉÒÔ²éѯÊýÂëÏà»úµÄÇé¿ö£¬gphoto2 --auto-detectºÍgphoto2 -a¡£Ê¹ÓÃgphoto2 --auto-detectÃüÁî½øÐÐÐͺżì²â£¬¶øgphoto2 ¨CaÓÃÓÚ²ÎÊý¼ì²â£º
# gphoto2 --auto-detect
ÐͺŠ¶Ë¿Ú
HP PhotoSmart R507 (PTP mode)usb
----------------------------------------------------------
gphoto2 -a
Ïà»ú¹¦ÄÜ £ºHP PhotoSmart R507 (PTP mode)
´®¿ÚÖ§³Ö £º·ñ
USB Ö§³Ö £ºÊÇ
Ö§³ÖµÄ´«ÊäËÙ¶È £º9600
£º19200
£º38400
£º576000
:1152000
²¶×½Ñ¡Ïî £ºÍ¼Ïñ
£ºÔ¤ÀÀ
Ö§³ÖÅäÖà £ºÊÇ
Ö§³Öɾ³ýÏà»úÄÚÎļþ £ºÊÇ
Ö§³ÖÎļþÔ¤ÀÀ (ËõÂÔͼ)£ºÊÇ
ÎļþÉÏÔØÖ§³Ö £ºÊÇ
¡¡¡¡gphoto2ÖØÒª²Ù×÷ÃüÁ
--list-cameras £ºÁоÙÖ§³ÖµÄÊýÂëÏà»ú
--list-ports £ºÁоÙÖ§³ÖµÄ¶Ë¿ÚÉ豸
--auto-detect £º×Ô¶¯¼ì²âÊýÂëÏà»ú¹¦ÄÜ
--list-files £ºÁгöÊýÂëÏà»ú´æ´¢µÄÎļþ
--num-files £ºÏÔʾ ÊýÂëÏà»ú´æ´¢µÄÎļþÊýÁ¿
£get-all-thumbnails £º»ñÈ¡ËùÓÐÎļþ
£delete-all-files £ºÉ¾³ýËùÓÐÎļþ
£upload-file £ºÉÏ´«Îļþµ½ÊýÂëÏà»ú
£summary £º ÊýÂëÏà»úÄ¿Ç°¹¤×÷״̬
£capture-movie £º²¶×½ÊýÂëÏà»úµÄÊÓƵÎļþ
¨Dcapture-sound £º²¶×½ÊýÂëÏà»úµÄÒôƵÎļþ
¨Dmanual £º´ò¿ªÏà»úÆô¶¯ÊÖ²áÒ³
¡¡¡¡2.ʹÓÃרÃÅÈí¼þ¡¡¡¡Í¨³£ÎÒÃǸü¼Óϲ»¶Ê¹ÓûùÓÚͼÐλ¯Ó¦ÓóÌÐò¶ÔÏà»ú½øÐвÙ×÷£¬Ð¿îµÄÊýÂëÏà»úÒ»°ã¶¼Ö§³ÖͼƬ´«ÊäÐÒé¡£ PTPÊÇÓ¢ÓͼƬ´«ÊäÐÒé(picture transfer protocol)¡±µÄËõд¡£ptpÊÇ×îÔçÓɿ´﹫˾Óë΢ÈíÐÉÌÖƶ¨µÄÒ»ÖÖ±ê×¼£¬·ûºÏÕâÖÖ±ê×¼µÄͼÏñÉ豸ÔÚ½ÓÈëϵͳ֮ºó¿ÉÒÔ¸üºÃµØ±»ÏµÍ³ºÍÓ¦ÓóÌÐòËù¹²Ïí£¬ÓÈÆäÔÚÍøÂç´«Êä·½Ã棬ϵͳ¿ÉÒÔÖ±½Ó·ÃÎÊÕâЩÉ豸ÓÃÓÚ½¨Á¢ÍøÂçÏà²áʱͼƬµÄÉÏ´«¡¢ÍøÉÏÁÄÌìʱͼƬµÄ´«Ë͵ȡ£µ±È»£¬ÕâÖ÷ÒªÊÇΪ·½±ã¼ÆËã»ú֪ʶ²»¶àµÄÆÕͨÓû§µÄ£¬Ê¹Ïà»ú¡¢Ó¦ÓÃÈí¼þ¡¢ÍøÕ¾½áºÏÔÚÒ»Æð¸üÈÝÒ×µØÍê³ÉһЩɵ¹Ïʽ¹¦ÄÜ¡£Ò»Ð©Linux·¢Ðа汾ÏÂÒ²Óжà¿îÖ§³ÖPTPÐÒéµÄÈí¼þ£¬±È½ÏÖøÃûµÄÊÇgtkam¡£Ò»Ð©Linux·¢Ðа汾£¨Red Hat Linux 9.0£©ÖÐÒѾ×Ô´øÁ˸óÌÐò¡£Èç¹ûÊÇÓоÑéµÄÍæ¼Ò£¬Ò²¿ÉÒÔÏÂÔØÔ´´úÂë×Ô¼º±àÒ룬ÏÂÔØÁ´½Ó£ºhttp://ovh.dl.sourceforge.net/sourceforge/gphoto/gtkam-0.1.12.tar.gz¡£ÊÐÃæÉϵľø´ó¶àÊýпîÊýÂëÏà»ú¶¼Ö§³ÖPTPÐÒ飬µ«ÍùÍù²»ÊÇȱʡÉèÖã¬ÐèÒª×Ô¼º½«¼ÇÒäÌåģʽÉ趨ΪPTPģʽ¡£ÔËÐÐgtkamÈí¼þ£¬Ñ¡ÔñCameraÑ¡µ¥ÖеÄAdd Camera£¬µ¥»÷gtkamµÄ¡°camera¡±¡ú¡°Add Camera¡±¿ÉÒÔÌí¼ÓÊýÂëÏà»ú£¬È»ºóÔÚµ¯³öµÄ´°ÌåÖе¥»÷¡°Detect¡±£¬²âÊÔÊýÂëÏà»úµÄÁ¬½ÓÀàÐÍ¡£×îºóµ¥»÷¡°OK¡±£¬¾Í¿ÉÒÔ¿´µ½ÊýÂëÏà»úÖеÄÕÕƬÁË¡£
ͼ1 gtkam¶ÁÈ¡ÊýÂëÏà»úʱµÄ½çÃæ
¡¡¡¡Í¼1ËùʾʹÓÃgtkamÁ¬½ÓHP 507Ïà»ú£¬¿´µ½´æ´¢¿¨ÖеÄÕÕƬ¡£Ñ¡ÔñÕÕƬ£¬µ¥»÷±£´æ¾Í¿ÉÒÔ°ÑÕÕƬ±£´æµ½Ó²ÅÌÉÏ¡£ÆäËûÓÅÐãµÄÊýÂëÕÕÏà»úͼÐλ¯½çÃæµÄ³ÌÐò°üÀ¨£ºdigikam£¨http://keihanna.dl.sourceforge.net/sourceforge/digikam/ £©£¬gThumb£¨http://gthumb.sourceforge.net/ £©¡¡¡¡gtkamÈí¼þÊÇÒ»¸öÌṩÁËÊýÂëÕÕÏà»úͼÐλ¯½çÃæµÄ³ÌÐò£¬gtkam¿ÉÒÔÖ±½ÓÓëÊýÂëÕÕÏà»úÏàÁ¬£¬ÔÊÐíÖ±½Ó´ò¿ª¡¢²é¿´¡¢²¢É¾³ýͼÏñ¡£gtkam»ùÓÚgphoto2£¬ÓÐʱÎÞ·¨Ê¹ÓÃgtkamµÄÔÒòÊÇÒòΪgphoto2ûÓа²×°»òÄ£¿é±»¸²¸Ç£¬ËùÒÔÐèÒªÖØа²×°gphoto2¡£²»ÂÛ²ÉÓÃÄÇÖÖÇ°¶Ë³ÌÐò£¬°²×°gphoto2³ÌÐòÊǹؼü¡£
¡¡¡¡3.°ÑÊýÂëÏà»ú×÷Ϊ´æ´¢É豸
¡¡¡¡¿ÉÒÔ°ÑÊýÂëÏà»úµ±×öÊÇ´æ´¢É豸 £¬ÕâÑù¾Í¿ÉÒÔÏñ·ÃÎÊÓÅÅÌÄÇÑùÀ´·ÃÎÊÊýÂëÏà»ú£º
# mkdir /mnt/camera
#mount -t vfat /dev/sda1 /mnt/camera
¡¡¡¡Èç¹ûÏ£ÍûÊýÂëÏà»ú¿ÉÒÔ×Ô¶¯¹ÒÔØ£¬¿ÉÒÔÔÚ/etc/fstab¼ÓÈëÒ»ÐУº
/dev/sda1 /mnt/camera auto defaults, user,noauto 0 0
¡¡¡¡µ«ÊÇÖ»ÓÐÒÔÏÂÐͺÅÖ§³Ö£¬¼û±í1:
³§ÉÌÃû³Æ
¾ßÌåÐͺÅ
Casio£¨¿¨Î÷Å·£©
QV-2400UX, QV-2x00, QV-3x00, QV-4000 £¬ QV-8000
Fuji£¨¸»Ê¿£©
FinePix 1300, 1400Zoom, 2300Zoom, 2400Zoom, 2800Zoom, 4200Z,
4500, 4700 Zoom, 4900 Zoom, 6800 Zoom, A101, A201, £¬S1 Pro
HP£¨»ÝÆÕ£©
PhotoSmart 315, 318xi, 618, C912
Konica£¨¿ÂÄῨ£©
KD200Z, KD400Z, and Revio KD300Z
Leica£¨À³¿¨£©
Digilux 4.3
Olympus£¨°ÂÁÖ°Í˹£©
Zoom D-15, C-100, C-200Z, C-2040, C-220Z, C-2Z, C-3020Z, C-3040Z,C-4040Zoom, C-700, C-700UZ, C-860L, D-510, D-520Z, E-10, E-20
Nikon£¨Ä῵£©
CoolPix 2500, 885, 5000, 775, 995
Pentax£¨±öµÃ£©
EI2000, Optio 330, Optio 430
Sony£¨Ë÷Äᣩ
DSC-F505,DSC-F505V,DSC-F707,DSC-P1,DSC-P20,DSC-P5, DSC-P71,DSC-S30,DSC-S70,DSC-S75,DSC-S85,MVC-CD300,MVC-FD92
Minolta£¨ÃÀÄܴ
Dimage 5, Dimage 7, Dimage X
Kyocera£¨¾©´É£©
Finecam S3
Vivitar£¨Íþ´ï £©
Vivicam 3550
¡¡¡¡·Ç³£Òź¶µÄÊÇKodakϵÁÐÊýÂëÏà»ú²»Äܵ±×÷´æ´¢É豸ʹÓᣡ¡¡¡¶þ¡¢Ê¹ÓÃGIMP¼Ó¹¤ÊýÂëÏàƬ
¡¡¡¡ÓÐЩÕÕƬ¿ÉÄÜÓÉÓÚÖÖÖÖÔÒò£¬Èç¹âÏß¡¢½Ç¶È²»¼Ñ£¬»òÕßÊÇÓÉÓÚÉãÓ°¡¢É¨Ãè¼¼ÊõÎÊÌ⣬Ôì³ÉÊýÂëͼƬЧ¹û²»¾¡ÈçÈËÒâ¡£¶ÔÕâЩÊýÂëÕÕƬ½øÐкóÆÚ´¦ÀíÊÇÊ®·Ö±ØÒªµÄ£¬ÔÚLinuxÖÐÍƼöʹÓÃGIMP(GNU Image Manipulation Program£¬GNUͼÏó´¦Àí³ÌÐò)רҵ¼¶µÄͼÏñ´¦ÀíÈí¼þ¡£ GIMP¹Ù·½ÍøÖ·£ºhttp://www.gimp.org/¡£GIMP×îа汾ÊǶþ©–©–ÎåÄêÊ®ÔÂËÄÈÕ ·¢²¼µÄ2.3.5£¬ÄÜÔÚWindows¡¢Mac¡¢UnixºÍLinuxƽ̨ÉÏʹÓá£
¡¡¡¡1.ÐÞÕýÊýÂëÕÕƬ ¡¡¡¡ÓÉÓÚÅÄÉã»òɨÃèµÄʧÎó¿ÉÄÜÔì³ÉÊýÂëÕÕƬÍáб£¬ÕâÊÇÊ®·Ö³£¼ûµÄÏÖÏó¡£³öÏÖÁËÕâÖÖÇé¿ö£¬GIMP¿ÉÒÔÇá¶øÒ×¾Ù¡£Ê¹ÓÃGIMP´ò¿ªÕÕƬ£¬Ê¹Ó᰸ֱʡ±¹¤¾ßÑØ×ÅÍáбÕÕƬ±ßÔµ½¨Á¢Æ𷾶£¬´ò¿ª¡°Í¼²ãͨµÀºÍ·¾¶¡±¶Ô»°¿ò£¬Ñ¡Ôñ·¾¶±äÑ¡Çø°´Å¥¡£È»ºóµ¥»÷¹¤¾ßÏäÖеġ°×ÔÓɱäÐΡ±¹¤¾ß£¬Õâʱ£¬Ñ¡Çø¾Í»á±»Íø¸ñ¸²¸Ç£¬½«Êó±êÖ¸ÏòÍø¸ñµÄÒ»½Ç£¬Í϶¯µ½ºÏÊʵĽǶȺ󣬵¥»÷µ¯³öµÄ±äÐζԻ°¿òÖеġ°Ratation¡±°´Å¥£¬¼´¿É½«ÍáбͼƬ°ÚÕý¡£ÅÄÉãÕÕƬʱ£¬ÓÉÓÚ½¹¾àÉ趨²»µ±»òÅÄÕÕʱÊÖ¶¶¶¯£¬¶øÔì³ÉÕÕƬģºý£¬´Ëʱ¿ÉÒÔʹÓÃGIMPµÄÈñ»¯Â˾µÀ´ÃÖ²¹´ò¿ªÓÉÓÚ½¹¾à²»×¼¶øÔì³ÉͼÏñÄ£ºýµÄÕÕƬ£¬µ¥»÷¸ÃͼƬ´°¿Ú×óÉϽǵĴ°ÌåÑ¡µ¥°´Å¥£¬´ÓͼÏñÑ¡µ¥ÖÐÑ¡Ôñ¡°Â˾µ/ÔöÇ¿/Èñ»¯¡±£¬ÔÚµ¯³öµÄÂ˾µ²ÎÊýÉ趨Èñ»¯Öµ¡£Èç¹ûÒ»ÏÂÄò»×¼Èñ»¯ÖµµÄ»°£¬¿ÉÒÔ²ÎÕÕÔ¤ÀÀ½á¹ûÑ¡ÔñÒ»¸ö±È½ÏºÏÊʵÄÈñ»¯Öµ£¬È»ºóµ¥»÷¡°OK¡±°´Å¥¼´¿É¡£ÁíÍâÔÚʵ¼ÊÅÄÉãÖУ¬ÓÉÓÚ»·¾³¡¢Ê±¼äµÄ²»Í¬£¬ÊýÂëÕÕƬ³£³£³öÏÖÆ«É«£¬ÀýÈçÔÚÊÒÄÚÅÄÉãµÄÕÕƬ£¬×îÈÝÒ׳öÏÖÆ«ºìÉ«»òÆ«»ÆÉ«¡£Ê¹ÓÃGIMPµÄÉ«Ïà/±¥ºÍ¶ÈÀ´µ÷ÕûÕÕƬµÄÆ«É«£¬¿ÉÒÔʹɫ²ÊÇ÷ÓÚÕý³£¡¢ºÍг¡£
¡¡¡¡2.¸ñʽת»» ¡¡¡¡Ê¹ÓÃÊýÂëÏà»úÅÄÉãµÄÕÕƬͨ³£±£´æΪJPEG¸ñʽ£¬µ«ÓÉÓÚ´ó¼ÒÐèÇó²»¾¡Ïàͬ£¬Òò´Ë¾Í²úÉúÁËͼƬ¸ñʽת»»µÄÎÊÌ⣬ÀýÈçÒª½«Í¼Æ¬ÓÃÓÚ³ö°æºÍÓ¡Ë¢£¬×ª»»ÎªTIFF¸ñʽ¾ÍÒª±ÈJPEG·½±ãµÃ¶à¡£GIMPÊýÂëÕÕƬ֧³ÖµÄͼƬ¸ñʽÖڶ࣬ÓжþÊ®Æß°ËÖÖ¡£Ëü²»µ«Ö§³Ö³£¼ûµÄBMP¡¢JPEG¡¢GIF¡¢PNG£¬»¹Ö§³ÖһЩ±È½ÏרҵµÄͼÏñ¸ñʽ£¬ÊÇÒ»¸ö¡°ÌìÉú¡±µÄͼƬ¸ñʽת»»ºÃÊÖ¡£Ö»ÐèʹÓÃGIMP´ò¿ªÒª×ª»»µÄͼƬ£¬ÔÚ´°¿ÚÑ¡µ¥ÖÐÑ¡Ôñ¡°Îļþ/Save As...¡±£¬ÔÙ¼òµ¥µØÐÞ¸ÄÒ»ÏÂͼƬÎļþµÄÀ©Õ¹Ãû£¬½«jpg¸ÄΪbmp¡¢tiff»òÆäËüµÄÀ©Õ¹Ãû£¬ÖØб£´æ£¬¼´¿ÉÒÔÍê³ÉͼƬ¸ñʽµÄ´«»»¡£
¡¡¡¡3.ΪÊýÂëͼƬÌí¼Óˮӡ ¡¡¡¡ÏÖÔÚÐí¶àÅóÓѶ¼ÔÚ»¥ÁªÍøÉϽ¨Á¢×Ô¼ºµÄÍøÕ¾£¬²¢ÇÒÔÚÉè¼ÆÍøվʱ¶¼Ï²»¶Ê¹ÓÃһЩ¾ßÓиöÐÔµÄͼƬÀ´µã׺ÍøÒ³£¬ÄãÒ»¶¨²»Ï£Íû×Ô¼º¾«ÐÄÖÆ×÷µÄͼƬ±»±ðÈËØâÇÔʹÓá£Èç¹ûÄܹ»ÔÚͼƬÖмÓÉÏ×Ô¼ºµÄˮӡͼƬ»òÕßÎÄ×ֵĻ°£¬Ò»¶¨»áʹÏëØâÇÔÄãµÄ×÷Æ·µÄÈËÍ˱ÜÈýÉá¡£ÁíÍâΪ×Ô¼ºµÄ½Ü×÷¼ÓÉÏˮӡ£¬¾ÍÏñ»¼ÒҪΪ×Ô¼ºµÄ×÷Æ·¼ÓÉÏÇ©ÃûÒ»Ñù¡£Ê¹ÓÃGIMP´ò¿ªÓûÌí¼ÓˮӡµÄͼƬ£¬Ñ¡ºÃÌí¼ÓˮӡµÄλÖá£Èç¹ûÌí¼ÓˮӡÊÇΪ·ÀֹͼƬ±»µÁÓã¬ÄÇôˮӡ×îºÃÓëͼƬÖ÷ÒªÄÚÈݲ¿·ÖÏà»ìºÏ£¬ÕâÑù¿ÉÒÔÔö´ó·ÀµÁÓõÄÄѶȡ£Èç¹ûÖ»ÊÇ×÷Ϊ×Ô¼ºµÄÇ©Ãû£¬ÄÇôͨ³£·ÅÔÚͼƬµÄ±ßÔµ£¬Ö»ÒªÇ©ÃûÇåÎú¼´¿É¡£Ñ¡ÔñGIMP¹¤¾ßÏäÖеÄÎÄ×Ö¹¤¾ß£¬Õâʱ¹â±ê¾Í»á±äΪÎÄ×Ö±à¼Ñùʽ¡£µ¥»÷ÓûÌí¼ÓˮӡµÄλÖþͻá³öÏÖÎÄ×Ö¶Ô»°¿ò£¬¸Ã¶Ô»°¿òÉϲ¿¿ÉÒÔÉèÖÃÌí¼ÓÎı¾µÄ×ÖÌå¡¢ÑùʽºÍ´óС£¬×îºóÔÚÔ¤ÀÀÎı¾¿òÖмÓÈëˮӡÎÄ×Ö£¬ÕâʱͼƬÉϾͻá³öÏÖÔ¤ÀÀÖмüÈëµÄÎÄ×Ö£¬²¢ÇÒΪѡÇøÎÄ×Ö£¬´Ëʱ¿ÉÒÔ×ÔÓÉÒƶ¯¸ÃÎÄ×ÖµÄλÖã¬ÎÄ×ÖλÖÃÈ·¶¨ºó¾Í²»¿ÉÒÔÒƶ¯ÁË¡£½ÓÏÂÀ´´ò¿ªGIMPͼÏñ´°¿ÚÑ¡µ¥£¬Ñ¡Ôñ¡°¶Ô»°¿ò/ͼ²ã¡¢Í¨µÀºÍ·¾¶¡±Ñ¡ÏÔÚ´ò¿ªµÄͼ²ã¡¢Í¨µÀºÍ·¾¶¶Ô»°¿òÖÐÑ¡ÖÐÎı¾Í¼²ã£¬µ¥»÷н¨Í¼²ã°´Å¥½«Îı¾×÷Ϊһ¸öµ¥¶ÀµÄͼ²ã¡£Ñ¡ÖÐÎı¾Í¼²ã£¬²¢µ÷½Ú¸Ã²ãµÄAlpha£¨²»Í¸Ã÷£©ÖµÎª6¡«50Ö®¼ä£¬Õâʱ¸ÃͼƬµÄˮӡЧ¹û¾Í³öÀ´ÁË£¬¼ûͼ2Ëùʾ¡£
ͼ2 ΪͼÏñÌí¼Óˮӡ
¡¡¡¡4.ΪÊýÂëÕÕƬÖÆ×÷Ïà¿ò
¡¡¡¡Í¨³£´ó¶àÊýµÄÊýÂëÕÕƬ¶¼ÊÇÒÔԸ屣´æ£¬²»¼ÓÈκÎÐÞÊΡ£¸øÊýÂëÕÕƬ¼ÓÉÏÒ»¸öƯÁÁµÄ±ß¿ò£¬ÊýÂëÕÕƬ¾Í»á¸ü¼ÓƯÁÁ£¬¸ü¾ßÓÐÌØÉ«¡£Æô¶¯GIMP£¬²¢´ò¿ªÓû¼Ó±ß¿òµÄÊýÂëÕÕƬ¡£Ñ¡ÔñGIMPµÄ¾ØÐÎÑ¡Ôñ¹¤¾ß£¬ÔÚÊýÂëÕÕƬÉÏ¿ò³ö±ß¿òµÄ±ßÔµ£¬ÓëÉèÏëµÄ±ß¿ò´óСÏà·ûºóµ¥»÷GIMPͼƬ´°¿ÚÑ¡µ¥£¬´ò¿ª¡°Ñ¡Ôñ/Óð»¯...¡±Ñ¡ÏÔÚËæºóµ¯³öµÄÓ𻯶Ի°¿òÖмüÈëÓð»¯Öµ£¬ÔÚÕâÀï±ÊÕß½«ÆäÖµÓÉĬÈϵÄ5¸ÄΪ50¡£È»ºóµ¥»÷¡°È·¶¨¡±£¬Õâʱ¸Õ¸Õ½¨Á¢µÄ¾ØÐÎÑ¡ÇøµÄËĽǾͻá±äΪԲ½Ç£¬ËµÃ÷Ó𻯳ɹ¦¡£Óð»¯Ñ¡Çøºó,ÔÙÑ¡ÔñGIMPͼƬ´°¿ÚÑ¡µ¥µÄ¡°Ñ¡Ôñ/·´Ñ¡¡±£¬±ã¿É½¨Á¢ÆðÊýÂëÕÕƬµÄ±ß¿ò¡£ÕâʱÈç¹û±ß¿ò´óС²»ºÏÊÊ£¬¾ÍÐèÒªÖظ´ÉÏÒ»²½Ö裬µ÷ÕûÑ¡Çø´óС,²¢ÖØÐÂÉèÖÃÓð»¯Öµ¡£×îºóÑ¡ÔñGIMPͼƬ´°¿ÚÑ¡µ¥µÄ¡°±à¼/Çå³ý¡±£¬¼´¿É½¨Á¢Ò»¸ö±³¾°É«µÄ±ß¿ò£¬¼ûͼ3¡£
ͼ3ΪÊýÂëÕÕƬÖÆ×÷Ïà¿ò
¡¡¡¡Èý¡¢ÓÃigal½¨Á¢ÔÚÏßWebÏà²á
¡¡¡¡Ëæ×Å»¥ÁªÍøºÍÊýÂë²úÆ·µÄÆÕ¼°£¬Ðí¶àÓû§Ï£Íû×Ô¼ºÖÆ×÷µÄÊýÂëÏàƬÒÔ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
¡¡¡¡È»ºó°ÑÊýÂëÏà»úºÍ´æ´¢¿¨µÄÏàƬ±£´æµ½Apache Web·þÎñÆ÷µÄÒ»¸öĿ¼ÖУ¨var/www/html£©È»ºóÔËÐÐigal¼´¿É×Ô¶¯Éú³ÉWebÏà²á¡£
#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¡£Ëü°²×°ºÜ¼òµ¥£¬ÓÐÍêÉƵݲװÏòµ¼£¬²¢ÇÒÌṩ¸øʹÓÃÕ߷dz£Ö±¹Û·½±ãµÄ´´½¨ºÍ¹ÜÀí¹¤¾ß¡£¹Ù·½ÍøÖ·£ºhttp://gallery.sourceforge.net/
¡¡¡¡ÒÔÉϱÊÕß½éÉÜÁ˼¸¸ö¹¤¾ß£¬£º´ÓÊýÂëÏà»úÇý¶¯³ÌÐòµ½ÊýÂëÏàƬµÄ¼Ó¹¤¡¢ÖÆ×÷³ÉWebÏà²á¡£ÏàÐŽèÖúËüÃÇÄã¿ÉÒÔÇáËÉÍæתÊýÂëÏàƬ¡£Widnows²Ù×÷ϵͳ¿ÉÒÔÍê³ÉµÄ¹¤×÷ÔÚLinuxÏÂÒ²»á×öµÃºÜºÃ¡£
£¨³ö´¦£ºhttp://www.sheup.com£©