| assetutil(1) | General Commands Manual | assetutil(1) |
assetutil process asset
catalog .car files
assetutil |
[-VIiotsuphgkMcrTLUnZ]
inputfile |
assetutil processes a .car file generated
from a image catalog. It can thin a .car file removing unrequested scale
factors, device idioms, subtypes, performance and memory classes. It can
also produce a JSON description of the contents of a .car file
(-I), compare thinning attributes to determine if
two sets of thinning parameters would produce the same result
(-T), or validate the structural integrity of a .car
file (-Z).
When thinning scale, idiom, subtype, performance, memory, and graphicsclassfallbacks can be given multiple times, the resulting file will contain all of the assets that match all of the parameters given. If scale, idiom, subtype and graphics class are given in one set, the same parameters must all be present in the subsequent set of parmeters. (IE the count must match)
assetutil always thins in application
mode, that is, to a single scale/idiom/performance/memory class. It has no
framework mode. Use carutil(1) if framework mode thinning,
image or layer stack extraction, or the lower level storage inspection
options are needed.
Generate a resulting car file based on these parameters.
-i,
--idiom idiom-t,
--subtype integer-u,
--subtypefallbacks
subtypes-s,
--scale integer-p,
--display-gamut gamut-h,
--hostedidioms idiomlist-g,
--graphicsclass class-k,
--graphicsclassfallbacks
classes-M,
--memory integer-r,
--deployment-target
targetNo thinning is performed when these parameters are given. The thinning parameters can be passed here to narrow down the output.
The name argument of
-I is optional, and so must be attached to the
option rather than separated from it by a space:
assetutil -IAppIcon
Assets.carassetutil --info=AppIcon
Assets.carassetutil -I AppIcon Assets.car’
does not work: the name is taken as a second file operand and
assetutil prints its usage and exits 1.
-I,
--info [name]assetutil exits 2.-c,
--main-contents path-I (--info), -T,
-L and -n.-T,
--compare-thinning
parameterstoo many parameters given to
compare’.-L,
--compare-thinning-batch
path-o,
--output path-V,
--versionassetutil. This is written
to stderr.-U,
--update-bitmap-n,
--preserve-assets-named
namesApp Icon’ preserves
‘App Icon/Back/Content’ and the rest
of that layer stack. Uses the -o --output file to save the resulting .car
file, or rewrites the input file in place if no output file is given.-Z,
--validate-fileOnly one operation is performed per invocation. If more than one
of the options above is given, assetutil silently
runs the first one it recognises and ignores the rest, so combinations such
as -I together with -Z do
not do both.
assetutil
describes the failure on stderr, and prints its usage for the malformed
command line cases.assetutil itself.
-Z reports a bad file this way, and
-I reports that the requested name is not in the
file.| August 6, 2026 | Darwin |