Busy
V2EX  ›  问与答

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

  •  
  •   Busy · Oct 22, 2015 · 2134 views
    This topic created in 4018 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
        1
    Busy  
    OP
       Oct 22, 2015
    晓得了

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

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