zoukankan      html  css  js  c++  java
  • PNG在WINDOWS下无法显示问题

    有的PNG在MAC下可以显示,但拿到WINDOWS下就不能显示。就是因为这些文件是经过xcode编译优化过的,所以无法直接查看。

    我看网上说是 "/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/pngcrush
    \ -revert-iphone-optimizations -q Local.png Local-standard.png" 这个,但我在自己的MAC(4.4)上没找到。

    -------------------------------------------------------------------------------------------------------------------------

    用下面命令查看 XCode folder 路径信息

    命令: xcode-select -print-path

    显示: /Applications/Xcode.app/Contents/Developer/

     -------------------------------------------------------------------------------------------------------------------------

    最后用下面的命令搞定了

    命令: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/pngcrush -revert-iphone-optimizations /other/bbbbbc/a94@2x.png /other/bbbbbc/test11111.png

     -------------------------------------------------------------------------------------------------------------------------

    批处理还原指定的图片(下面就是把/other/new/*.png 还原到 /other/new1 文件夹中)

    命令: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/pngcrush -dir /other/new1  -revert-iphone-optimizations -q /other/new/*.png

  • 相关阅读:
    CSP2018-09
    CSP2018-03
    CSP2017-12
    CSP2017-09
    CSP2017-03
    CSP2016-12
    [算法设计与分析] 奶酪 (并查集)
    5555
    阿超
    结对作业
  • 原文地址:https://www.cnblogs.com/kupig/p/2778601.html
Copyright © 2011-2022 走看看