Mac全螢幕、區域截圖教學 順便把預設PNG改為更小的JPG 檔案大小差6倍

2019.07.05 01:18PM
Computer keyboard, MacBook Air, Apple MacBook Pro (13", Mid 2012), Keyboard Protectors, Laptop, Keyboard shortcut, IdeaPad, Retina display, PS/2 port, 13 in, macbook pro mid 2012 keyboard, Computer keyboard, Red, Space bar, Technology, Input device, Electronic device, Finger, Nail, Computer component, Peripheral

Mac的截圖方式和Windows不一樣,Mac用戶只要按住Command+Shift+數字3就能夠全螢幕截圖,Command+Shift+數字4可以選擇區塊截圖,不過利用這樣的方式截圖產生的圖檔都是PNG檔,PNG為非破壞性的壓縮圖檔,所以檔案都比JPG大很多。不過如果我們只是想要截取圖案作非專業使用的話,JPG檔就足夠使用了。

利用終端機指令改成JPG一分鐘內完成

首先利用右上角Spotlight搜尋功能搜尋「終端機」,開啟後輸入「defaults write com.apple.screencapture type jpg」按下Enter就完成了。如果想改回PNG只要再重新輸入「defaults write com.apple.screencapture type png」就可以更改回Mac預設的截圖檔案格式。

Number, Desktop Wallpaper, Line, Graphics, Point, Computer, Organism, Brand, RED.M, orange, Font, Text, Orange, Line, Logo, Brand, Graphics, Graphic design
▲利用右上方的搜尋功能更方便。

macOS, Macintosh, macOS Mojave, Apple MacBook Pro, Screenshot, Macintosh operating systems, Hackintosh, Computer program, Preference Pane, Retina display, screenshot, Text, Screenshot, Font, Technology, Electronic device, Software, Games
▲找到後按下Enter就會開啟終端機。

Computer program, Web application, , Plain text, Computer, Microsoft Azure, OneDrive, , jQuery, V-Ray, light, Text, Screenshot, Font, Technology, Electronic device, Multimedia, Computer terminal, Software
▲輸入「defaults write com.apple.screencapture type jpg」按下Enter就完成。

為什麼要將PNG改成JPG

PNG(Portable Network Graphics)其實是網路圖像格式,最大的優點就是非破壞性的壓縮檔案,還可以保留背景透明的特性,讓PNG檔用在任何有背景的網頁上都可以融合,但是缺點就是檔案偏大。JPG(Joint Photographic Experts Group)雖不支援動畫或透明背景,但是因為透過演算法圖檔被壓縮後檔案容量較小,除非專業工作使用,不然JPG是很多軟體都可以開啟的圖檔,修圖、上傳圖檔也比較方便。

Maine Coon, 日本猫, Breed, Pet, , Slipping, Picdump, Morning Cup, Morning Cup, Photography, 巨漢 ねこ, Cat, Felidae, Small to medium-sized cats, Tabby cat, Pixie-bob, European shorthair, Domestic short-haired cat, Dragon li, American shorthair, Carnivore
▲乍看之下這兩張沒什麼差別,但是照片大小差很多。

Cat, Felidae, Social networking service, Lion, , Wildcat, Eurasian lynx, Big cat, Animal, VK, screenshot, Font, Screenshot, Advertising
▲PNG的圖片大小約1.3M,但是同一個尺寸的圖JPEG卻僅有209K,差了將約6.3倍。

9 則回應

  • 但PNG的無損壓縮法簡單說是數格子,
    例如︰100格黑3格綠...
    適合一般連續色非常多的電腦畫面
    而JPG簡單說把圖分成多個方塊,每格只真正記錄一個像素,再用記錄相似的模版用於粗略還原,
    例如︰方塊1黑色配菱形外面淺3級,方塊2灰蝴蝶形外面淺2級...
    適合照片或複雜3D渲染一類多漸變色及有訊噪的圖片

    除非螢幕截圖以照片或影片為主,不然檔案大小不減反增,畫質還變低
    2019-07-06
    • 簡單說,截電腦計算出來的簡單線條用png,影片遊戲那些就jpg
      2019-07-06
  • 雖然是公開的技巧,但還是母湯盜文啦,連比較方式和發文時間都那麼相近..
    macuknow.com/2019/07/03/2184/調教你的-mac-螢幕擷圖-,尋找最適合你的檔案大小平/
    2019-07-05
  • PNG比較好耶
    2019-07-05
  • 存成jpg這個長姿勢惹
    2019-07-05
  • JPEG在自然風景人像還好,在程式界面文字等用反而邊緣會糊糊的,看狀況用吧。
    2019-07-05