zoukankan      html  css  js  c++  java
  • MacOSX高分屏图片打包工具tiffutil的简单使用

    You can use the man command tiffutil with the option -cathidpicheck. The command lets you manipulate TIFF files using the specified options. The -cathidpdicheck option writes a single output file containing the files supplied as arguments to the option. This option also checks to make sure that the standard- and high-resolution files you supply are sized correctly. That is, the dimensions of the high-resolution image must be twice that of the standard-resolution image. Running tiffutil explicitly changes the dpi. Using tiffutil also compresses the resulting output file, so there is no need for you to perform additional compression.

    Running the following command creates a single file from the two input files:

    tiffutil -cathidpicheck infile1 infile2 -out outfile

    For example, if the input files are:

    • myimage.png with width = 32 pixels, height = 32 pixels

    • myimage@2x.png with width = 64 pixels, height = 64 pixels

    running this command:

    tiffutil -cathidpicheck myimage.png myimage@2x.png -out myimage.tiff

    will produce a single TIFF file that contains the two input images.

    See the tiffutil man pages documentation in Terminal for more information, including options for extracting an image from a multirepresentation TIFF file.

  • 相关阅读:
    基于perl的网络爬虫
    ios cell展示可滑动的图片
    iOS计算字符串的宽度高度
    swift水波效果
    iOS添加另一个控制器的时候要注意啊
    swift隐藏显示导航栏的底线
    swift集成alamofire的简单封装
    tableview详细介绍
    xmpp xml基本语义
    xmpp SASL 定义
  • 原文地址:https://www.cnblogs.com/lovelylife/p/6226314.html
Copyright © 2011-2022 走看看