iOS: The iOS converter will either create a folder for each image with the.9.png extension and only size correctly if out-compression is PNG. 9-Patches are specifically supported for Android - must have. folders and saves images with the original name and respective scale factor in there. Android: The Android converter will create drawable-ldpi, drawable-mdpi, etc.This tool can convert to formats used in Android, iOS and Windows: The tool will generate the following images in the following resolutions: To better understand, here is a practical example for Android: Source file is ic_my_icon.png in density xxxhdpi with resolution 144x144 (this will be 36dp x 36dp). He then proceeds to generate every other density with it. This mode is based on the idea that a developer gets the 'master' images in the highest needed resolution for his platform, e.g. There are 2 modes available for the user: Scale Factor Mode Launch4J will automatically download the required JRE. The former is for command line, the later as a simple GUI starter. Two types are available: dconvert.exe and dconvert-gui.exe. Launch4J is used to create Windows executables. verbose If set will log to console more verbose threads Sets the count of max parallel threads (more is faster but uses more In this mode all output images will have the same width YouĬould also pass a value in dp (density independent pixels) whichĭenotes the output pixel width (or height if the flag is set) in if you have the src file in density xxxhdpi you pass '4'. Used if the images already have the correct resolution for one scaleįactor and up- and downscaling for all other densities are needed. skipUpscaling If set will only scale down, but not up to prevent image quality skipExisting If set will not overwrite a already existing file scaleIsHeightDp If set and scale is in dp it will be interpreted as fixed height not Can be an image file or a folder containing image files Options are 'round' (rounds up of >= 0.5), 'floor' (rounds down) and roundingMode Defines the rounding mode when scaling the dimensions. cwebp is the official converter from Google. TheĮxecutable must be set in the system path as 'cwebp' i.e executableįrom every path. postProcessorWebp Will additionally convert all png/gif to lossless wepb and all jpg TheĮxecutable must be set in the system PATH as 'pngcrush' i.eĮxecutable from every path. ![]() postProcessorPngCrush Will post-process all pngs with pngcrush, a lossless compressor. Mozjpeg (specifically 'jpegtran') must be set in PATH, postProcessorMozJpeg Will post-process all jpegs with mozJpegs lossless compressor You only want to convert to android format. The converted images will be generated for. platform Can be 'all', 'android', 'ios', 'win' or 'web'. 'gif', 'bmp', 'png+jpg' or 'strict' which tries to use sameĬompression as source. outCompression Sets the compression of the converted images. Original will be kept (renamed _orig), otherwise only the optimized keepOriginalPostProcessedFiles If a post processor is run on a file, this flag will ensure that the imageset folders and Content.json for every iosCreateImagesetFolders iOS only: Will create. haltOnError If set will stop the process if an error occurred during conversion The source folder if this argument is omitted. dst The directory in which the converted files will be written. What images in what resolutions would be created. ![]() dryRun Will not create any images or folder. compressionQuality Only used with compression 'jpg' sets the quality where 1.0 ![]() clean Deletes all file and folders in out dir that would be used in antiAliasing Anti-aliases images creating a little more blurred result a lightģx3 convolve matrix is used useful for very small images androidMipmapInsteadOfDrawable Android only: If set will include additional densities (ldpi and androidIncludeLdpiTvdpi Android only: creates mipmap sub-folders instead of drawable.
0 Comments
Leave a Reply. |