Project: SWT
Bug 96320 ImageLoader.save cannot set JPEG compression ratio
Reported: 2005-05-23 12:45:18 | Status: resolved fixed

When saving an image to JPEG, there is no way to set the compression ratio. And at the same time the default compression seems to be quite high (~20%), and images are really not looking good at the default compression rate. Could we either: - set the compression rate when saving? - or at least haev a default compression rate much lower? A modest increase in size wuold result in a usable file format for image saving. Thanks!

Files changed in fix:
bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/graphics/ImageLoader.java bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/internal/image/JPEGFileFormat.java bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/internal/image/PngEncoder.java bundles/org.eclipse.swt/Eclipse SWT/common_j2me/org/eclipse/swt/internal/Compatibility.java bundles/org.eclipse.swt/Eclipse SWT/common_j2se/org/eclipse/swt/internal/Compatibility.java examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/imageanalyzer/ImageAnalyzer.java