Commons:Media for cleanup/zh
维基共享资源的图片质量良莠不齐。诚然,诸如拍摄角度不佳、失焦模糊等等的问题我们没法修复,但许多图片可以在事後透過數位編輯修復。本页面描述几种常见图片问题、修复手法、与经典案例。
需要清理的图片都应该划归到Category:Images for cleanup和其子分类中。如果见到一张需要改进的图片但又不清楚怎么分类,请把{{Cleanup image|理由}}加到图片的描述页,将其标记为需要清理。
可移除多余内容的图片
不必要的边框
有的图片不必要的边框,这些边框可以被移除。比如:
- 有的图片边框带有图片标题或其他文字描述。这些文字应放在文件的描述页上,以便其他编辑翻译。(不过要注意这条规则「不」一定永远成立,有些印刷艺术作品中的文字是該類型艺术作品外觀和感覺的固有部份)
- 影像側邊多餘的「補白」,尤其是從印刷作品掃描的影像。不過,請注意,在某些情況下,當圖像不完全是長方形、但幾乎是長方形時,留下較厚的邊框可以提供較佳的視覺效果,因為裁剪得較近時,會將不規則的部份放在裁剪的完美長方形邊框附近,因此通常會強調這種不規則。
- 其不屬於圖片一部份或出於其他原因的邊框,在正常情況下會影響圖片的使用。若帶有邊框的版本具有特定意義或實用價值(請參見:Category:Images with intentional borders),可上傳不含邊框的版本作為另一個獨立的檔案。
不应移除边框的情形:
- 移除原屬藝術創作初衷的邊框。例如,裁切某個版畫以移除其手繪邊緣,將導致該圖像無論以何種方式印刷,都無法呈現與原始印刷品相似的外觀。一般而言,對於歷史藝術作品,若邊框自創作之初便已存在,我們通常不應將其移除。這項準則的制定旨在處理使用者在照片中添加邊框的情況,而非鼓勵對歷史作品進行修改,使其偏離其歷史原貌。
- 如上所述,如果艺术作品的边框不是长方形,这时加入粗边框可以让作品的视觉效果更好。
- 某些圖片若移除邊框,會產生錯誤的印象。例如,照相凹版印刷圖像通常比包圍的紙張略深,這使得照相凹版印刷品一眼就能辨識出來。若將紙張裁切掉,反而會讓人覺得上傳者沒有進行適當的白平衡調整。同樣地,File:Alfons Mucha - 1896 - La Dame aux Camélias - Sarah Bernhardt.jpg是一張印在白色紙張上的泛黃圖片,而非印在泛黃紙張上的正常圖片,但若裁切掉邊框,後者反而會被誤認為是真實情況。
- 維基共享資源或任何(作為一般準則的)維基百科上的特色圖片。圖片獲選為特色圖片後,通常不建議對其進行大幅修改;若當初有此需求,邊框本可在特色圖片提名過程中進行裁切。
在這種情況下,邊框是「必要的」,至少在主圖中是如此。當然,若對特定用途而言更為合適,隨時都可以利用{{Extract image}}來請求上傳一張沒有邊框的圖片「副本」,但這類萃取出的圖片通常不應作為預設圖片。
若您發現到圖片有不必要的邊框,請在該圖片上加入模板{{Remove border}}以申請裁切,此操作會將該圖片加入Category:Images with borders分類中。若您發現某張圖片雖有具意義的邊框,但希望請求提供無邊框版本,請在該圖片上添加模板{{Extract image}}以請求進行圖片擷取,此操作會將該圖片加入Category:Images requiring extraction分類。
如何處理某個裁切申請:請將圖片裁切至僅保留相關區域。若要裁切JPEG檔案,建議使用無損裁切工具,例如jpegtran。您也可以使用Cropbot或CropTool。若裁切後的區域包含文字,請務必在圖片說明中註明。
如何處理某個萃取請求:將裁切後的圖片上傳,並重新命名。
非自由版权的边框
同樣地,某些圖片包含非必要的裝飾元素(例如3D邊框),這在法律上可能有問題,因此需要移除。特別是,{{PD-Art}}圖片不得包含3D邊框。若您發現此類圖片,請在圖片上添加{{Non-free frame}},這會將該圖片歸類至Category:Images with non-free frames。
該怎麼做:若圖框為矩形,請將圖片裁切至僅包含自由圖片的區域。若裁切的是JPEG檔案,建議使用無損裁切工具,例如jpegtran。您也可以使用Cropbot。若裁切後的區域包含文字,請務必在圖片說明中一併列出。若邊框為圓形、橢圓形或其他特殊形狀,請使用影像編輯工具選取包含自由圖片的區域,接著反選並將其餘部分填為白色或(針對PNG/TIFF檔案)透明。若您是管理員,建議刪除包含邊框的舊版本。
特定语言和/或特定書寫體的文本
一些图像包含特定書寫體或语言的描述或说明。在某些情况下,文本会是历史作品的固有部分,应该单独保留。但是,任何描述性文本(说明、注释、图例)都应尽可能在文件描述页面中、而非在图像本身中。
該怎麼做:請重新設計圖片,使用顏色代碼和/或數字來標示各元素,以達到語言中性的形式。如此一來,該圖片便能應用於所有維基媒體專案,更重要的是,也能適用於所有維基媒體語言。若您看到此類圖片,請在圖片上加入{{Convert to international}},系統會將其歸類至Category:Images requiring internationalisation。
請注意,若同時提供語言中立版本,則可接受包含特定語言的檔案,特別是對於複雜的圖表而言。此類檔案應相互建立連結。此外,對於SVG檔案而言,是否具備語言中立版本的重要性較低,因為這些檔案很容易透過編輯來變更語言。
有較好格式选项的图像
应被改为PNG或SVG的JPEG图像
特定的某些圖像(幾乎所有非照片類的圖像)若採用無損格式或向量圖形格式,外觀與功能表現會更佳(且可能佔用較少空間);我們分別使用PNG和SVG檔案來實現。這類圖像通常包括國旗、圖形、圖示、示意圖、以及特定的某些螢幕截圖(例如來自舊式電視遊樂器或街機遊戲的截圖,但「不包括」具有高色深的新版遊戲截圖)。若您發現此類圖片,請在該圖片上添加{{BadJPEG}},這會將其歸類至 Category:Images with inappropriate JPEG compression。若適用,也請考慮添加{{Convert to SVG}}。(若圖片的JPEG壓縮程度過「高」,則應改為標記{{Overcompressed JPEG}}。)
該怎麼做:請使用影像編輯軟體重新製作或修飾該圖片(使其更清晰),具體方法請參閱 w:Wikipedia:How to reduce colors for saving a JPEG as PNG。請勿在未經修改的情況下直接將JPEG檔案轉換為PNG檔案,因為這樣並不會提升畫質,反而會導致檔案大小增加。關於SVG的建議,請參閱下方。請注意,新檔案將有不同的名稱。完成後,請在舊圖片上標記{{Superseded}}標籤。
範例:之前、之後(請參閱category: Posterized to reduce file size)
警告:遺憾的是,由於軟體的限制,系統對PNG檔案的處理稍顯不足:在大尺寸下無法正常顯示,且在建立縮圖時未進行額外的銳化處理,導致縮圖略顯模糊(請參見phab:T20014及範例)。因此,對於需要無損副本的圖片,通常最好同時提供JPEG和PNG兩種版本。
- 註: 目前維基媒體軟體僅會對全彩PNG與高彩PNG檔案的縮圖進行銳化處理,因此索引顏色的圖片的縮圖會顯得較不銳利(參見phab:T31659及範例)。
应当變成SVG的PNG图像或JPEG图像
由簡單形狀、線條、字母所組成的圖片,通常更適合使用向量圖形來呈現。此類圖形具有多項優勢,例如便於後續編輯者進行修改、可進行高畫質的任意縮放,以及能為印刷版本提供清晰的高解析度渲染效果。若您看到此類圖片,請在該圖片上加入{{Convert to SVG}},系統會將其歸類至Category:Images that should use vector graphics。某些JPEG和PNG檔案不適合轉換為SVG格式。這類檔案包括陰影處理過度或具藝術風格的圖片、以及來自其他專案的非自由圖片(例如logo),因為將此類圖片轉換為可縮放格式可能構成版權侵權。已以高解析度及良好品質上傳的圖片,在轉換為SVG格式時的優先級較低。應將精力集中於轉換品質較低、尺寸較小的圖片,因為這些圖片若重新繪製為SVG格式,品質將獲得顯著提升。那些轉換後外觀相同、但僅能略微節省檔案空間的圖片,則優先級較低。
由自由軟體(libre)程式所生成的柵格圖像,其原始檔案雖已依據自由軟體授權條款公開提供,但此類圖像的優先級同樣較低。事實上,此類圖像若已提供原始檔案,在程式未提供SVG輸出功能的情況下,最好保持原樣;否則,後續編輯者修改該圖像可能會變得 *更加困難*(這與上述目標背道而馳)。向此類程式的開發者提出功能請求以支援SVG輸出,確實有所幫助。
該怎麼做:使用向量圖形製作軟體(參見向量圖形編輯器列表),重新製作該圖像。通常可將原始圖像作為模板使用。幾點注意事項:
- 一張已知尺寸和已知顏色的非常簡單的圖像(例如是一張素色的國旗),從頭開始製作可能比較容易。
- 柵格圖像可以向量化,但請注意:向量化後的結果幾乎肯定會與原始圖像有所不同,且需要進行一些手動調整。在儲存圖像以供上傳時,請勿在SVG檔案中保留柵格圖像。請檢查是否有不影響渲染的冗餘程式碼(但請勿忽略可縮放性)。
- 諸如gnuplot或R语言等繪圖工具,能夠以可重複的方式產出高品質的SVG輸出圖表。若能在圖片的說明頁中附上用於建立圖表的gnuplot指令原始碼,將有助於其他使用者在必要時重新產生該圖表。
- 關於化學結構,此頁面有相關的資訊。
若圖片來自第三方來源, 請先確認該來源是否提供向量版本。將PDF轉換為SVG,總是比重新製作整個檔案來得簡單。
2D文件表现以3D更佳
維基共享資源現已支援上傳STL檔案。過去,貢獻者若想展示三維圖像,通常會上傳該物體旋轉的影片、或是該物體不同視角的靜態圖片。這些作為輔助檔案雖可接受,但在某些情況下,原始的3D形狀才是傳達所需資訊的最佳方式。因此,現已提供一個模板,可列出應上傳原始或衍生3D版本的檔案:{{Convert to STL}}。
缩略图的问题
需要JPEG版本的PNG照片
雖然PNG作為無損儲存照片的方式並不差,但條目中出現的任何PNG縮圖都會以PNG格式呈現。結果是這些縮圖的檔案大小過大,導致許多使用者下載速度緩慢(通常比JPEG縮圖大約10倍)。雖然在理想上軟體應能為PNG圖像生成JPEG縮圖,但實際上尚無法做到。此外,系統會對JPEG縮圖套用銳化效果,但不會套用到PNG縮圖;而對於照片縮圖而言,通常需要進行銳化處理。關於不對PNG縮圖進行銳化的設計決策詳情,請參閱phab:T192744。
該怎麼做:建立該檔案的JPEG版本並上傳;當採用這種方式時,只要是看起來還不錯,畫質便不重要。在原始PNG檔案的頁面中放入 {{PNG with JPEG version}}標籤、且在JPEG檔案的頁面中放入{{JPEG version of PNG}}標籤。此舉可提醒使用者在條目中參照JPEG版本,但進行編輯時應以PNG版本為依據,並同時修改兩個版本。
大型PNG、TIFF和GIF文件
當檔案大小超過一定限度時,共享資源的MediaWiki軟體目前不會為PNG、TIFF、GIF檔案提供縮圖(此時會顯示錯誤訊息)。為了預覽並使用於維基媒體網站,應上傳那些以{{Compressed version}}連結至原始檔案的JPEG版本(儘管該版本未必是壓縮版本)。請參閱 COM:MAXTHUMB。
质量问题
图像分辨率相比原始分辨率缩小
Partly because MediaWiki image pages scale down images by default, it's a common mistake to upload a scaled-down, lower-resolution image to Commons than the original image. This is unnecessary and undesirable; large images are necessary for use in print and other situations. If you see an image like this, add {{Thumbnail}} to it, which adds it to Category:Images uploaded at reduced resolution.
該怎麼做:上傳或尋找同一檔案類型的較高解析度圖片。若圖片內容完全相同,請為其加上{{duplicate|Image:example.jpg}}標籤,並將較大圖片的網址填入參數中。您或是負責刪除該圖片的人員應使用「檢查使用情況」功能,以確保該低解析度圖片不再被使用。更多資訊請參閱 COM:Dupe。若高解析度圖片與原圖存在差異,請改為在舊版本上加上{{Superseded}}標籤。
EXCEPTION: For exceedingly large images, such as this 690 megapixel image, Commons' file viewers such as {{LargeImage}} can break, and the maximum thumbnail size Wikipedia will create is still far, far below the size of the image itself. In these cases, uploading a courtesy copy that can be viewed with the file viewers may be appropriate.
Example 1 (identical): Smaller version, larger version
Example 2 (differences): Smaller version, larger version
Wikimedia projects other than Commons, particularly those accepting non-free content, may prefer uploading of thumbnails for some purposes.
侧向图片或相机明显倾斜的图片
These images need to be rotated so they're upright.
For slightly tilted images this may involve cropping and/or cloning to remove or fill in new areas.
If you see an image like this, add {{Rotate}} to it, which adds it to Category:Images requiring rotation.
If you want to rotate images by 90, 180, or 270 degrees add the parameter |degree=90/180/270 to let it rotate automatically by Rotatebot (e.g. {{Rotate|degree=90}} or simply {{Rotate|90}} to rotate 90° clockwise).
Such rotation is done with the best available method to keep loss of image quality to a minimum (it is called "lossless", though this is usually not quite true) [1] .
包含常规噪声、纹理或干扰的图像
A variety of sources can introduce unwanted overlaid patterns into an image, such as halftone patterns and text from the opposite page side bleeding through in scanned images and the presence of electromagnetic interference during image creation or processing. All of these (and also naturally occurring patterns, which should not be removed, such as fences and parts of other man-made objects) can cause moiré patterns to occur when resampling images without extra care taken to avoid them – something that is prone to happen in automatically generated image thumbnails for articles in particular.
What to do: Add {{CleanFFT}} to the image to include it in Category:Images containing regular noise. After that, ideally, find a better version of the picture that does not contain the noise. If this is not possible, in many cases you can clean up this type by editing the image in the frequency domain by doing either a Fourier or wavelet transform on the image. Such transformations can be done in both GIMP and Adobe Photoshop with the aid of suitable plugins. For more information on how to do this, see Commons:Cleaning up interference with Fourier analysis. If the size of the patterned noise is significantly smaller than the image details' then simply slightly blurring the image or using other general denoising methods can be very effective in eliminating them without any degradation to image quality, too.
例如:
低质量图像
Some images are not sufficient to clearly demonstrate the subject of the image; whether by being too blurry to digitally fix, being of small resolution and/or compression, not properly demonstrating the subject of the image, or being visually unappealing in another way. New versions with higher quality should be found and used instead. Low-quality images can be tagged with {{Low quality}} (or if applicable {{Blurry}}) to add them to Category:Images of low quality.
What to do: get a camera and take a better image, or try to find one under a free license. See, for example, 共享资源:自由媒体资源.
版本控制
For cleaned up media, a rule of thumb is to:
- first upload the original, dirty media;
- upload the cleaned up version over the dirty version.
This allows the dirty version to be recovered if desired, but not included or linked to directly.
Alternatively, one can upload the cleaned up version under a different name; this is particularly useful if several different clean-ups are done. See discussion on cropping.
技术说明
- ↑ It is called a "lossless" method because it does not involve recompressing the entire image using the JPEG lossy compression algorithm, which involves a loss of image detail (though the JPEG algorithm attempts to lose image detail the human eye does not notice much, recompressing an image that has already been compressed with a good compromise between file size and image quality may noticeably worsen image quality). Although Rotatebot uses jpegtran to losslessly rotate JPEG images, the rotation is not completely lossless as images of sizes which are not a multiple of the JPEG block size (16×16 pixels for color images, 8×8 pixels for grayscale images) have to be cropped to a block boundary. For images of a reasonably large size this cropping is usually not noticeable. Truly lossless rotation can be done by changing only the EXIF Orientation tag (e.g. using the exiftran or Geeqie programs), as this implements rotation for display purposes only (assuming the image viewing software respects the Orientation tag), without modifying the original image.
参见
- Category:Videos for cleanup
- Commons:Graphic Lab – the place to request image improvements
- Commons:Templates#Digital editing required
- Category:Image cleanup templates
- English
- w:Wikipedia:Graphics tutorials
- w:Wikipedia:How to improve image quality
- w:Wikipedia:Preparing images for upload
- w:Wikipedia:Image use policy
- w:Wikipedia:Picture tutorial
- w:Wikipedia:Graphic Lab (cleanup is its job)
- German
- w:de:Wikipedia:Fotowerkstatt (cleanup images is its job)
- w:de:Wikipedia:Grafikwerkstatt (cleanup graphics is its job)