當前位置:首頁>ps入門教程>ps基礎(chǔ)教程>新手教程>教程內(nèi)容

PS文件菜單中的另存為和另存為網(wǎng)頁格式的區(qū)別(3)

來源: 作者: 學習:3379人次

===============================================

Comparison of JPEG Markers in Photoshop
Save As Save For Web Description
SOI   SOI    Start of Image marker
APP0  APP0    Identifier, Version, resolution, JFIF extensions
APP1        EXIF data, Makernotes removed in both. (長度 5KB)
APP13        Photoshop IRB (Photoshop-specific data, including quality)
          (長度5KB)
APP1        XML metadata (EXIF, IPTC, etc.) (長度17KB)
APP2*  APP2*   ICC color profile (* optional) (長度3KB)
     APP12   Ducky tag - Save for Web Quality - stores the quality level
           (length 17B)
APP14  APP14   Encoding info: color transform (e.g. YCbCr, YCCK, RGB, CMYK)
           and whether or not the samples were blended (length 14B)
DQT   DQT    Quantization Tables
SOF0   SOF0   Baseline DCT, chroma subsampling
DRI         Restart Intervals - Adds a level of recovery in case of errors
           (length is variable, depends on frequency)
DHT   DHT    Huffman compression tables
SOS   SOS    Start of Scan: Image Data stream
EOI    EOI    End of Image marker
As can be seen in the above table, the additional data stored within a Save As JPEG versus as Save for Web JPEG is typically in the order of ~ 40 KB. In most high-resolution photos, this extra is insignificant, but when trying to compress small images for web use, this overhead could be significant.

Photoshop兩種保存方式輸出文件的jpeg標記對比
另存為 另存為網(wǎng)頁格式 說明
SOI   SOI     圖像開始標記
APP0  APP0     識別標記、版本、分辨率、jfif擴展
APP1         EXIF數(shù)據(jù), 兩種保存方式都移除了制作者注釋(長度5KB)
APP13         Photoshop IRB (Photoshop特有數(shù)據(jù),包括質(zhì)量) (長度5KB)
APP1         XML數(shù)據(jù)(EXIF, IPTC等) (長度17KB)
APP2*  APP2*    ICC顏色配置(*可選) (長度3KB)
     APP12    Ducky標簽-保存為網(wǎng)絡(luò)格式質(zhì)量-儲存質(zhì)量等級(長度17B)
APP14  APP14    編碼信息: 顏色轉(zhuǎn)換 (例如YCbCr, YCCK, RGB, CMYK)
            以及樣本是否混合(長度14B)
DQT   DQT     量化表
SOF0   SOF0    基線DCT, 色度抽樣
DRI          重新開始間隔-加入出錯時的復原標準(長度不定)
DHT   DHT     Huffman壓縮表
SOS   SOS     掃描開始: 圖像數(shù)據(jù)流
EOI   EOI     圖像結(jié)束標記
如上表所示,另存為輸出文件所包含的附加信息使文件比另存為網(wǎng)頁格式多40kb。對于大部分高分辨率的圖像文件來說,這部分數(shù)據(jù)并不明顯,但如果想要壓縮圖像文件大小以供網(wǎng)頁使用,那么這部分就很明顯了。
===============================================

Extraction of Quality Setting in Save As
In files generated using Save As, you can derive the quality setting from the Photoshop IRB resource (0x0406) in the JPEG APP13 (0xFFED) marker. The following hex view is of an image saved with quality setting 2.
(圖見下)
Value       Quality
0xFFFD       Quality 1 (Low)
0xFFFE       Quality 2
0xFFFF       Quality 3
0x0000       Quality 4
0x0001       Quality 5 (Medium)
0x0002       Quality 6
0x0003       Quality 7
0x0004       Quality 8 (High)
0x0005       Quality 9
0x0006       Quality 10 (Maximum)
0x0007       Quality 11
0x0008       Quality 12

另存為的圖像質(zhì)量設(shè)置
在用另存為方式輸出的文件中,你能根據(jù)JPEG APP13 (0xFFED)標記中的photoshop IRB資源(0x0406)數(shù)據(jù)推得圖片質(zhì)量的設(shè)置值。下面是一副保存質(zhì)量為2的圖片文件的16進制視圖。



數(shù)值       質(zhì)量
0xFFFD       質(zhì)量1 (低)
0xFFFE       質(zhì)量2
0xFFFF       質(zhì)量3
0x0000       質(zhì)量4
0x0001       質(zhì)量5 (中)
0x0002       質(zhì)量6
0x0003       質(zhì)量7
0x0004       質(zhì)量8 (高)
0x0005       質(zhì)量9
0x0006       質(zhì)量10 (最佳)
0x0007       質(zhì)量11
0x0008       質(zhì)量12

===============================================

Extraction of Quality Setting in Save For Web
In files generated using Save For Web, you can derive the quality setting (1..100) from the Ducky resource in the JPEG APP12 (0xFFEC) marker (starts with null-terminated ASCII string Ducky). The percent value is stored in hex. The following hex view shows a file saved with quality setting 51 = 0x31:
(圖見下)

另存為網(wǎng)頁格式的質(zhì)量設(shè)置
在另存為網(wǎng)頁格式的圖片文件中,你能根據(jù)JPEG APP12 (0xFFEC)標記(以空數(shù)據(jù)開頭、ASCII編碼Ducky結(jié)束)中的Ducky資源推得圖像質(zhì)量設(shè)置(1-100%)數(shù)據(jù)是以16進制保存的。圖中在0x31處,16進制數(shù)值33表示圖片質(zhì)量為51。
  


===============================================

Comparison of Save As vs Save For Web Quality
Many people are confused about why there is a difference in the definition of quality settings within Photoshop and furthermore, how they compare. The following table shows the two methods and the relative ordering of quality between the settings, from best to worst quality. See description below for the limitations of such an ordered comparison.
For more information: read about JPEG chroma subsampling.
Method   JPEG Quality Preset  Chroma Subsampling
Save For Web 100     Maximum 1x1
Save As    12     Maximum  1x1
Save For Web 90           1x1
Save As    11           1x1
Save For Web 80     Very High 1x1
Save As    10           1x1
Save For Web 70           1x1
Save As    9            1x1
Save For Web 60      High   1x1
Save As    8      High   1x1
Save For Web 51           1x1
Save For Web 50           2x2
Save As    6            2x2
Save As    7            1x1
Save As    5      Medium  2x2
Save For Web 40           2x2
Save As    4            2x2
Save As    3      Low    2x2
Save For Web 30     Medium  2x2
Save As    2            2x2
Save For Web 20           2x2
Save As    1           2x2
Save For Web 10     Low    2x2

In graphical form, here is a chart that shows a comparison of the JPEG luminance and chrominance across the default presets, each with the equivalent JPEG standard "quality factor". Of course, it is important to note that the quality factor shown is not an accurate measure of image quality since they are only truly comparable quantities if both Save for Web and Save As were based on linear scalings of the quantization tables included in the JPEG Standard Annex. Since neither is based on the sample tables, the quality factor should only be taken as a very rough comparison measure. The graph is ordered by decreasing luminance quality factors.
(圖見下)
Ordered Graph
(圖見下)
Comparison Graph

另存為和另存為網(wǎng)頁格式的比較
很多人對為何photoshop中的兩種保存方式質(zhì)量設(shè)定的定義有區(qū)別而不解,還有怎么比較他們。下面的表格是兩種保存方法設(shè)置質(zhì)量后的圖像質(zhì)量排序,從最佳質(zhì)量到最低質(zhì)量。這種排序比較的局限性請看后面的說明。
更多信息請查閱jpeg色度抽樣。
保存方法    JPEG質(zhì)量  預設(shè)   色度抽樣
另存為網(wǎng)頁格式 100    最佳    1x1
另存為     12     最佳         1x1
另存為網(wǎng)頁格式 90           1x1
另存為     11           1x1
另存為網(wǎng)頁格式 80     較高    1x1
另存為     10           1x1
另存為網(wǎng)頁格式 70           1x1
另存為     9            1x1
另存為網(wǎng)頁格式 60     高     1x1
另存為     8      高     1x1
另存為網(wǎng)頁格式 51           1x1
另存為網(wǎng)頁格式 50           2x2
另存為     6            2x2
另存為     7            1x1
另存為     5      中     2x2
另存為網(wǎng)頁格式 40           2x2
另存為     4            2x2
另存為     3      低     2x2
另存為網(wǎng)頁格式 30      中    2x2
另存為     2            2x2
另存為網(wǎng)頁格式 20           2x2
另存為    1             2x2
另存為網(wǎng)頁格式 10      低     2x2

下面是默認設(shè)置下的jpeg亮度和色度的對比圖表,每個都有對應(yīng)的jpeg標準質(zhì)量系數(shù)。當然,有必要指出,質(zhì)量系數(shù)不是測量圖片質(zhì)量的精確標準,只是如果另存為網(wǎng)頁格式和另存為都是基于jpeg標準附錄中的量化表的線性測量,那么質(zhì)量系數(shù)是唯一能用來比較圖片質(zhì)量的參數(shù)。質(zhì)量系數(shù)只能作為一個粗糙的標準來比較圖片。圖表按亮度質(zhì)量系數(shù)降序排列。
  

排序圖表
  

對比圖表

學習 · 提示

  • 一定要打開PS,跟著教程做一遍,做完的圖到這交作業(yè):提交作業(yè)
  • 建議練習時,大家自己找素材,盡量不要用教程提供的素材。
  • 教程有看不懂的地方,可以到論壇發(fā)帖提問:新手求助
  • 加官方微信,隨時隨地,想學就能學:ps_bbs,或掃右側(cè)二維碼!
  • 關(guān)注我們學更多,每天都有新教程:新浪微博 抖音視頻 微信小程序
- 發(fā)評論 | 交作業(yè) -
最新評論
南橋北巷2018-10-08 03:56
加油
新手2018-03-27 09:49
推薦教程~_~!
布拉德皮蛋2017-05-28 04:07
謝謝樓主的分享
布拉德皮蛋2017-05-28 04:07
謝謝樓主的分享

關(guān)注大神微博加入>>

網(wǎng)友求助,請回答!