mac下sips的用法
来源:互联网 发布:淘宝客如何设置优惠券 编辑:程序博客网 时间:2024/04/30 10:52
sips(1) BSD General Commands Manual sips(1)
NAME
sips -- scriptable image processing system.
SYNOPSIS
sips [image-query-functions] imagefile ...
sips [profile-query-functions] profile ...
sips [image-modification-functions] imagefile ... [--out result-file-or-dir]
sips [profile-modification-functions] profile ... [--out result-file-or-dir]
DESCRIPTION
This tool is used to query or modify raster image files and ColorSync ICC profiles. Its functionality
can also be used through the "Image Events" AppleScript suite.
FUNCTIONS
Profile query functions:
-g key
--getProperty key
Output the property value for key to stdout.
-X tag tagFile
--extractTag tag tagFile
Write a profile tag element to tagFile.
-v
--verify
Verify any profile problems and log output to stdout.
Image query functions:
-g key
--getProperty key
Output the property value for key to stdout.
-x profile
--extractProfile profile
Get the embedded profile from image and write it to profile.
Profile modification functions:
-s key value
--setProperty key value
Set a property value for key to value.
-d key
--deleteProperty key
Remove a property value for key.
--deleteTag tag
Remove the tag element from a profile.
--copyTag srcTag dstTag
Copy the srcTag element of a profile to dstTag.
--loadTag tag tagFile
Set the tag element of a profile to the contents of tagFile.
--repair
Repair any profile problems and log output to stdout.
Image modification functions:
-s key value
--setProperty key value
Set a property value for key to value.
-d key
--deleteProperty key
Remove a property value for key.
-e profile
--embedProfile profile
Embed profile in image.
-E profile
--embedProfileIfNone profile
Embed profile in image only if image doen't have a profile.
-m profile
--matchTo profile
Color match image to profile.
-M profile intent
--matchToWithIntent profile intent
Color match image to profile with rendering intent perceptual | relative | saturation | absolute.
--deleteColorManagementProperties
Delete color management properties in TIFF, PNG, and EXIF dictionaries.
-r degreesCW
--rotate degreesCW
-f horizontal|vertical
--flip horizontal|vertical
-c pixelsH pixelsW
--cropToHeightWidth pixelsH pixelsW
Crop image to fit specified size.
-p pixelsH pixelsW
--padToHeightWidth pixelsH pixelsW
Pad image with pixels to fit specified size.
--padColor hexcolor
Use this color when padding. White=FFFFFF, Red=FF0000, Default=Black=000000
-z pixelsH pixelsW
--resampleHeightWidth pixelsH pixelsW
Resample image at specified size. Image apsect ratio may be altered.
--resampleWidth pixelsW
Resample image to specified width.
--resampleHeight pixelsH
Resample image to specified height.
-Z pixelsWH
--resampleHeightWidthMax pixelsWH
Resample image so height and width aren't greater than specified size.
-i
--addIcon
Add a Finder icon to image file.
OPTIONS
The commands --getProperty, --setProperty, and --deleteProperty can use one of the following keys as a
parameter.
Special property keys:
all binary data
allxml binary data
Image property keys:
dpiHeight float
dpiWidth float
pixelHeight integer (read-only)
pixelWidth integer (read-only)
typeIdentifier string (read-only)
format string jpeg | tiff | png | gif | jp2 | pict | bmp | qtif | psd | sgi | tga
formatOptions string default | [low|normal|high|best|<percent>] | [lzw|packbits]
space string (read-only)
samplesPerPixel integer (read-only)
bitsPerSample integer (read-only)
creation string (read-only)
make string
model string
software string (read-only)
description string
copyright string
artist string
profile binary data
hasAlpha boolean (read-only)
Profile property keys:
description utf8 string
size integer (read-only)
cmm string
version string
class string (read-only)
space string (read-only)
pcs string (read-only)
creation string
platform string
quality string normal | draft | best
deviceManufacturer string
deviceModel integer
deviceAttributes0 integer
deviceAttributes1 integer
renderingIntent string perceptual | relative | saturation | absolute
creator string
copyright string
md5 string (read-only)
NAME
sips -- scriptable image processing system.
SYNOPSIS
sips [image-query-functions] imagefile ...
sips [profile-query-functions] profile ...
sips [image-modification-functions] imagefile ... [--out result-file-or-dir]
sips [profile-modification-functions] profile ... [--out result-file-or-dir]
DESCRIPTION
This tool is used to query or modify raster image files and ColorSync ICC profiles. Its functionality
can also be used through the "Image Events" AppleScript suite.
FUNCTIONS
Profile query functions:
-g key
--getProperty key
Output the property value for key to stdout.
-X tag tagFile
--extractTag tag tagFile
Write a profile tag element to tagFile.
-v
--verify
Verify any profile problems and log output to stdout.
Image query functions:
-g key
--getProperty key
Output the property value for key to stdout.
-x profile
--extractProfile profile
Get the embedded profile from image and write it to profile.
Profile modification functions:
-s key value
--setProperty key value
Set a property value for key to value.
-d key
--deleteProperty key
Remove a property value for key.
--deleteTag tag
Remove the tag element from a profile.
--copyTag srcTag dstTag
Copy the srcTag element of a profile to dstTag.
--loadTag tag tagFile
Set the tag element of a profile to the contents of tagFile.
--repair
Repair any profile problems and log output to stdout.
Image modification functions:
-s key value
--setProperty key value
Set a property value for key to value.
-d key
--deleteProperty key
Remove a property value for key.
-e profile
--embedProfile profile
Embed profile in image.
-E profile
--embedProfileIfNone profile
Embed profile in image only if image doen't have a profile.
-m profile
--matchTo profile
Color match image to profile.
-M profile intent
--matchToWithIntent profile intent
Color match image to profile with rendering intent perceptual | relative | saturation | absolute.
--deleteColorManagementProperties
Delete color management properties in TIFF, PNG, and EXIF dictionaries.
-r degreesCW
--rotate degreesCW
-f horizontal|vertical
--flip horizontal|vertical
-c pixelsH pixelsW
--cropToHeightWidth pixelsH pixelsW
Crop image to fit specified size.
-p pixelsH pixelsW
--padToHeightWidth pixelsH pixelsW
Pad image with pixels to fit specified size.
--padColor hexcolor
Use this color when padding. White=FFFFFF, Red=FF0000, Default=Black=000000
-z pixelsH pixelsW
--resampleHeightWidth pixelsH pixelsW
Resample image at specified size. Image apsect ratio may be altered.
--resampleWidth pixelsW
Resample image to specified width.
--resampleHeight pixelsH
Resample image to specified height.
-Z pixelsWH
--resampleHeightWidthMax pixelsWH
Resample image so height and width aren't greater than specified size.
-i
--addIcon
Add a Finder icon to image file.
OPTIONS
The commands --getProperty, --setProperty, and --deleteProperty can use one of the following keys as a
parameter.
Special property keys:
all binary data
allxml binary data
Image property keys:
dpiHeight float
dpiWidth float
pixelHeight integer (read-only)
pixelWidth integer (read-only)
typeIdentifier string (read-only)
format string jpeg | tiff | png | gif | jp2 | pict | bmp | qtif | psd | sgi | tga
formatOptions string default | [low|normal|high|best|<percent>] | [lzw|packbits]
space string (read-only)
samplesPerPixel integer (read-only)
bitsPerSample integer (read-only)
creation string (read-only)
make string
model string
software string (read-only)
description string
copyright string
artist string
profile binary data
hasAlpha boolean (read-only)
Profile property keys:
description utf8 string
size integer (read-only)
cmm string
version string
class string (read-only)
space string (read-only)
pcs string (read-only)
creation string
platform string
quality string normal | draft | best
deviceManufacturer string
deviceModel integer
deviceAttributes0 integer
deviceAttributes1 integer
renderingIntent string perceptual | relative | saturation | absolute
creator string
copyright string
md5 string (read-only)
举例如下
eg1:
sips -g pixelWidth -g pexelHeigh *.png
eg2:
sips -Z 500 *.png
0 0
- mac下sips的用法
- Mac下 图片批量缩放命令-sips
- sip URI与sips URI的区别
- sip uri 与sips uri 的区别
- 【实用】MAC电脑如何进行截图,mac下QQ截图工具的用法
- sips 图片小工具
- MAC下的component
- mac 下的 homebrew
- Mac下的常用软件
- Mac下的CorelDRAW
- MAC下的Brew
- mac下的使用指南
- mac下的辅助工具
- mac下的常用命令
- Mac下的多线程
- mac下的常用命令
- Mac下的安装
- 【Unity3d】Mac机下Blender的简介、使用办法、快捷键的用法
- Linux 下编译Android-VLC开源播放器详解
- else语句
- android 4.4的耳机插入检测流程
- 设计模式六大原则(1):单一职责原则
- 【UGUI】Interaction Components
- mac下sips的用法
- android Sensor一些手机感应效果
- Win7 Jekyll安装(使用64位)
- ubuntu 安装svn及svn使用指南
- Java监视系统剪贴板
- 思科CCNA第二学期第三章答案
- android sdk manager 代理设置
- sys/queue.h分析
- linux线程编程