




版權說明:本文檔由用戶提供并上傳,收益歸屬內容提供方,若內容存在侵權,請進行舉報或認領
文檔簡介
7.3ImageCompressionWords
banner n. 旗幟,標語discernable adj. 可辨別的,可認識的evolving adj. 進化的,展開的feature n. 特色gradation n. 分等級,層次means n. 手段,方法pallet n. 盤remarkable adj. 顯著的suit v. 合適stack n. 堆,堆棧
v. 堆疊tone n. 色調transparency n. 透明,透明度,幻燈片, 有圖案的玻璃universal adj. 普遍的,通用的variance n. 不一致,變化GIF(GraphicsInterchangeFormat) 可交換的圖像文件格式JPEG(JointPhotographicExpertsGroup) 聯(lián)合圖像專家組PNG(PortableNetworkGraphics) 便攜式網絡圖像TCP/IP(TransferControlProtocol/InternetProtocol)
傳輸控制協(xié)議/網際協(xié)議AbbreviationsPhrases animatedimage 動態(tài)圖像
run-lengthencoding 游程長度編碼7.3ImageCompressionWhyisimagecompressionsoimportant?Imagefiles,inanpressedform,areverylarge.AndtheInternet,especiallyforpeopleusinga56kdialupmodem,canbeprettyslow.[1]ThiscombinationcouldseriouslylimitoneoftheWeb'smostappreciatedaspects—itsabilitytopresentimageseasily.分析:簡單句。句中itsabilitytopresentimageseasily為oneoftheweb’smostappreciatedaspects的同位語。7.3圖像壓縮為什么圖像壓縮如此重要?非壓縮格式的圖像文件非常大。而Internet,尤其對使用56k調制解調器撥號上網的用戶來說,是相當慢的。巨大的圖像和慢速上網的結合很大程度上限制了網絡最令人欣賞的方面,即易于顯示圖像的能力。
JPEG(聯(lián)合圖像專家組)壓縮是當前Web
壓縮圖像的最好方法,其他圖像壓縮格式,包括GIF
和PNG,更多地用于Web
的其他目的。
JPEG(JointPhotographicExpertsGroup)compressioniscurrentlythebestwaytocompressPHOTOGRAPHICIMAGESfortheweb.Otherformsofimagecompression,includingGIFandPNG,arebestusedforotherpurposesontheweb.
GIF(可交換的圖像文件格式)最適合于色彩較少并且有大面積的均勻色調的圖像,如卡通或旗幟。盡管它有幾個明顯的特點,譬如透明以及顯示動態(tài)圖像的能力,但是由于256色的限制,它不適于顯示照片之類色調連續(xù)的圖像。
GIF(GraphicsInterchangeFormat)isbestusedforgraphicsthathavealimitedcolorpalletandlargeareasofflattone,likecartoonsorbanners.Althoughithasseveralremarkablefeatures,suchastransparencyandtheabilitytopresentanimatedimages,itisnotwellsuitedforthepresentationofcontinuoustoneimages,suchasphotographs,duetoitslimitof256colors.JPEG,orJPG,isanevolvingformatthatisuniversalinitsuseasameansofcompressingcontinuoustonephotographsforspeedytransmissionovertheInternet.PhotographscompressedusingtheJPEGformatlookgoodbecauseJPEGsupportsmillionsofcolors,soyoucanseethegradationoftones.
PNG(便攜式網絡圖像)是一種相對較新的有很大潛力的格式。但是,在所有瀏覽器可以瀏覽PNG格式的圖像之前,使用該格式并不是個好主意。
JPEG或JPG格式是一個發(fā)展中的通用格式,用于壓縮連續(xù)色調圖像以提高網絡傳輸速度。采用JPEG格式壓縮的照片看起來很好,因為JPEG支持數百萬種色彩,所以你可以看到色調的分級。PNG(PortableNetworkGraphics)isarelativelynewformatwithalotofpotentialbut,untilallbrowserscanseeimagescompressedinPNGform,itisnotagoodideatouseit.ABitmapisasimpleseriesofpixelsallstackedup.ButthesameimagesavedinGIForJPEGformatuseslessbytestomakeupthefile.How?Compression."Compression"isacomputertermthatrepresentsavarietyofmathematicalformatsusedtocompressanimage'sbytesize.Let'ssayyouhaveanimagewheretheupperright-handcornerhasfourpixelsallthesamecolor.Whynotfindawaytomakethosefourpixelsintoone?[2]Thatwouldcutdownthenumberofbytesbythree-fourths,atleastintheonecorner.That'sacompressionfactor.
分析:簡單句。句中by意為“到……程度”,例如:Thecarpetistooshortbythreefeet.地毯短了3英尺。
位圖文件是一系列的像素堆積起來的。但是同一幅圖片用GIF或JPEG格式保存可以用較少的字節(jié)形成文件。怎樣實現?就是用壓縮的方法。壓縮是一個計算機術語,表示用于壓縮圖像字節(jié)數的數學格式。假設有一幅圖像的右上角有四個同色的像素,為什么不找一個方法將四個像素放在一起?那樣將會至少在該區(qū)域將字節(jié)的數目減少3/4。這就是一個壓縮因子。Bitmapscanbecompressedtoapoint.Theprocessiscalled"run-lengthencoding."Runsofpixelsthatareallthesamecolorareallcombinedintoonepixel.[3]Thelongertherunofpixels,themorecompression.Bitmapswithlittledetailorcolorvariancewillreallycompress.Thosewithagreatdealofdetaildon'toffermuchinthewayofcompression.Bitmapsthatusetherun-lengthencodingcancarryeitherthecommon".bmp"extensionor".rle".AnotherdifferencebetweenthetwofilesisthatthecommonBitmapcanaccept16milliondifferentcolorsperpixel.Savingthesameimageinrun-lengthencodingknocksthebits-per-pixeldownto8.Thatlocksthelevelofcolorinatnomorethan256.分析:本句是“the+比較級,the+比較級”以省略形式出現的主從復合句,前面部分是從句,后面部分是主句,意為“越……,越……”。
位圖可以壓縮成一個點,這個過程叫做“游程長度編碼”。連續(xù)同色的像素作為一個游程被結合成一個點。游程越長,壓縮幅度越大。細節(jié)和色彩變化較少的位圖的確可以壓縮,那些有很多細節(jié)的位圖用這種方法沒有太大的壓縮空間。使用游程長度編碼的位圖文件擴展名可以為“.bmp”或“.rle”。這兩種文件的另一區(qū)別是普通位圖文件可以接收每像素1,600萬種不同的顏色,采用游程長度編碼保存同一個圖像將每像素字節(jié)數減少到8,這限制顏色分級不超過256。
那么,當所有顏色相近的時候為什么不創(chuàng)建一個單一的像素呢?你甚至可以降低可用顏色的數量以使得像素有更好的機會得到相近的顏色。這是個好辦法,CompuServe
公司的人也是這樣想的。So,whynotcreateasinglepixelwhenallofthecolorsareclose?Youcouldevenlowerthenumberofcolorsavailablesothatyouwouldhaveabetterchanceofthepixelsbeingcloseincolor.Goodidea.ThepeopleatCompuServefeltthesameway.
GIF(即GraphicInterchangeFormat,可交換的圖像文件格式)于1987年由CompuServe
公司給出標準,而用來產生GIF壓縮的算法(數學公式)的專利屬于Unisys。用于Web的第一個GIF格式叫做GIF87a,表示年份和版本。這種格式以每像素8個二進制位存儲圖像,顏色分級的上限為256。這種8位分級允許圖像工作于多種服務器風格,包括CompuServe、TCP/IP。GIF,whichstandsfor"GraphicInterchangeFormat,"wasfirststandardizedin1987byCompuServe,althoughthepatentforthealgorithm(mathematicalformula)usedtocreateGIFcompressionactuallybelongstoUnisys.ThefirstformatofGIFusedontheWebwascalledGIF87a,representingitsyearandversion.Itsavedimagesat8bits-per-pixel,cappingthecolorlevelat256.That8-bitlevelallowedtheimagetoworkacrossmultipleserverstyles,includingCompuServe,TCP/IP.
1989年,CompuServe公司更新了GIF格式,使其可以包含動畫、透明和交織。你可以猜測到:他們稱其新格式為GIF89a。
87和89格式的基本(即無交織的)GIF無明顯不同。CompuServeupdatedtheGIFformatin1989toincludeanimation,transparency,andinterlacing.Theycalledthenewformat,youguessedit:GIF89a.
There'snodiscernabledifferencebetweenabasic(knownasnon-interlaced)GIFin87and89formats.習題7.3Ⅰ.Put“true”or“false”inthebracketsforthefollowingstatementsaccordingtothepassage.1.()ImagecompressionisimportantbecausepressedimagefilesthatareverylargecouldlimitoneoftheWeb’smostappreciatedaspects.2.()GIF(GraphicsInterchangeFormat)isnotusedforgraphicsthathavealimitedcolorpalletandlargeareasofflattone,likecartoonsorbanners.3.()Photographscompressedusingthejpegformatlookgoodbecausejpegsupportsmillionsofcolors.4.()ABitmapisasimpleseriesofpixelsallstackedup.5.()GIFstandsfor“GraphicInternetFormat”.6.()GIF87asavedimagesat8pits-per-pixel,cappingthecolorlevelat256.7.()JPEG,orJPGstandsfor(JointPhotographicExpertsGroup).8.()“Compression”isacomputertermthatrepresentsavarietyofmathematicalformatsusedtopressanimage’sbytesize.習題7.3Ⅱ.Fillintheblanksaccordingtothepassage.1.Imagecompressionis_________________.2.Imagefiles,inan_________________form,areverylarge.3.JPEGcompressioniscurrentlythebestwayto_________________PHOTOGRAPHICIMAGES
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網頁內容里面會有圖紙預覽,若沒有圖紙預覽就沒有圖紙。
- 4. 未經權益所有人同意不得將文件中的內容挪作商業(yè)或盈利用途。
- 5. 人人文庫網僅提供信息存儲空間,僅對用戶上傳內容的表現方式做保護處理,對用戶上傳分享的文檔內容本身不做任何修改或編輯,并不能對任何下載內容負責。
- 6. 下載文件中如有侵權或不適當內容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 勞務合同范本首
- 借用賬戶走賬合同范本
- 廠房分開幾樓出租合同范本
- 大學籃球教學中人文素質教育的滲透分析
- 公司出資買房合同范本
- 在古詩文教學中舒展學生生命靈性
- 印刷加工銷售合同范本
- 2025年黑龍江省安全員B證(項目經理)考試題庫
- 出口窗簾訂單合同范本
- 樂隊授課服務合同范本
- H3C-CAS虛擬化平臺詳細介紹
- 小學生韻母in、ing常見漢字與區(qū)分練習
- 藥房品種類別及數量清單
- 機關檔案管理工作培訓PPT課件
- 初中物理人教版八年級下冊 第1節(jié)牛頓第一定律 課件
- 網站培訓內容trswcm65表單選件用戶手冊
- 連續(xù)平壓熱壓機 三篇 俞敏等
- 空調系統(tǒng)維保記錄表格模板
- 打印版-圓與二次函數綜合題精練(帶答案)
- 各種閥門CAD圖
- 工程結算書標準
評論
0/150
提交評論