Busy
V2EX  ›  问与答

默认 retina 下截图,通过 base64 | base64 -D 后

  •  
  •   Busy · Oct 22, 2015 · 2162 views
    This topic created in 4050 days ago, the information mentioned may be changed or developed.
    直接在 retina mbp 下截图,空格预览是“正常”的,跟截图区域没区别

    譬如截图到桌面,该名 123.png

    随后

    cat ~/Desktop/123.png | base64 | base64 -D > ~/Desktop/234.png

    空格预览 234.png ,大了两倍,尽管图片的长宽都没变

    想知道, retina 下,怎么控制预览的视窗大小?
    3 replies  •  2015-10-22 20:40:15 +08:00
    Busy
    Busy
    OP
    Oct 22, 2015
    1
    晓得了

    xattr -x ~/Desktop/123.png
    com.apple.metadata:kMDItemIsScreenCapture
    com.apple.metadata:kMDItemScreenCaptureGlobalRect
    com.apple.metadata:kMDItemScreenCaptureType

    是由文件扩展属性引起的
    lifanxi
    lifanxi
    Oct 22, 2015
    2
    看了楼主的自问自答,涨姿势了~
    SoloCompany
    SoloCompany
    Oct 22, 2015
    3
    png 文件的 metainfo 居然不能保存 dpi 信息的吗
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   3680 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 35ms · UTC 04:05 · PVG 12:05 · LAX 20:05 · JFK 23:05
    ♥ Do have faith in what you're doing.