if (!filter.accept(source)) return null;\r
uncompressedSize += source.getWidth() * source.getHeight();\r
WritableRaster alphaRaster = source.getAlphaRaster();\r
- if (alphaRaster == null) return new Image(name, source, 0, 0, source.getWidth(), source.getHeight());\r
+ if (alphaRaster == null || !settings.stripWhitespace) return new Image(name, source, 0, 0, source.getWidth(), source.getHeight());\r
final byte[] a = new byte[1];\r
int top = 0;\r
int bottom = source.getHeight();\r
public TextureFilter defaultFilterMag = TextureFilter.Nearest;\r
public int alphaThreshold = 0;\r
public boolean pot = true;\r
- public int padding = 1;\r
- public boolean duplicatePadding;\r
+ public int padding = 2;\r
+ public boolean duplicatePadding = true;\r
public boolean debug = false;\r
public boolean rotate = false;\r
public int minWidth = 16;\r
public int minHeight = 16;\r
- public int maxWidth = 1024;\r
- public int maxHeight = 1024;\r
+ public int maxWidth = 512;\r
+ public int maxHeight = 512;\r
+ public boolean stripWhitespace = true;\r
public boolean incremental;\r
\r
HashMap<String, Long> crcs = new HashMap();\r