You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+12-8Lines changed: 12 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ This is a powerful little tool that helps **converting single or batches of imag
4
4
versions given the source scale factor or target width/height in [dp](http://developer.android.com/guide/practices/screens_support.html#density-independence).
5
5
It has a **graphical** and **command line** interface and supports a wide array of image types for reading and conversion
6
6
including PNG, JPEG, SVG, PSD and Android 9-patches. Using sophisticated scaling algorithms, it is designed to make conversion of images easy and
7
-
fast while keeping the image quality high. To further optimize the output post processors like **pngcrush** and **mozJpeg** can be used (see section below).
7
+
fast while keeping the image quality high (comparable to PS). To further optimize the output post processors like **pngcrush** and **mozJpeg** can be used (see section below).
8
8
9
9
Usage:
10
10
@@ -56,8 +56,8 @@ Full list of arguments:
56
56
-androidIncludeLdpiTvdpi Android only: creates mipmap sub-folders instead of drawable.
57
57
-androidMipmapInsteadOfDrawable Android only: If set will include additional densities (ldpi and
58
58
tvdpi)
59
-
-antiAliasing Anti-aliases images creating a little more blurred result; useful
60
-
for very small images
59
+
-antiAliasing Anti-aliases images creating a little more blurred result; a light
60
+
3x3 convolve matrix is used; useful for very small images
61
61
-clean Deletes all file and folders in out dir that would be used in
62
62
current configuration before converting.
63
63
-compressionQuality <0.0-1.0> Only used with compression 'jpg' sets the quality [0-1.0] where 1.0
@@ -192,12 +192,16 @@ If an image will be re-compressed with a file type that does not support alpha,
192
192
193
193
## Quality Comparison
194
194
One of the main features of this converter is downscaling. Unfortunately without using specific algorithms, down scaled
195
-
images may look jagged. Density converter uses the algorithms of [imgscalr](https://github.com/thebuzzmedia/imgscalr) which
196
-
provide fairly good quality, comparable to Photoshop output (although PS comes out ahead a bit). The following
197
-
diagram is to compare the expected quality when using this tool in comparison to Java's native Graphics2D and Photoshop.
195
+
images may look jagged. Density converter uses the algorithms of [Thumbnailator](https://github.com/coobird/thumbnailator) which
196
+
provide fairly good quality, comparable to Photoshop output. Thumbnailator turned out to generater better results than the other popular open source resizer lib [imgscalr](https://github.com/thebuzzmedia/imgscalr) which was used in previous versions. The following diagram is to compare the expected quality when using this tool in comparison to Java's native Graphics2D and Photoshop.
Copy file name to clipboardExpand all lines: src/main/resources/bundles/strings.properties
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -64,7 +64,7 @@ arg.descr.cmd.verbose=If set will log to console more verbose
64
64
arg.descr.dryrun=Will not create any images or folder. Useful as fast preview in log what images in what resolutions would be created.
65
65
arg.descr.halterror=If set will stop the process if an error occurred during conversion
66
66
arg.descr.androidldpi=Android only: If set will include additional densities (ldpi and tvdpi)
67
-
arg.descr.antialiasing=Anti-aliases images creating a little more blurred result; useful for very small images
67
+
arg.descr.antialiasing=Anti-aliases images creating a little more blurred result;a light 3x3 convolve matrix is used; useful for very small images
68
68
arg.descr.androidmipmap=Android only: creates mipmap sub-folders instead of drawable.
69
69
arg.descr.pngcrush=Will post-process all pngs with pngcrush, a lossless compressor. The executable must be set in the system PATH as 'pngcrush' i.e executable from every path. Pngcrush is a tool to compress pngs. Requires v1.7.22+
70
70
arg.descr.webp=Will additionally convert all png/gif to lossless wepb and all jpg to lossy webp with cwebp. Does not delete source files. The executable must be set in the system path as 'cwebp' i.e executable from every path. cwebp is the official converter from Google.
0 commit comments