Bug 570646

Summary: ImageLoader Compression value is ignored when saving an image file on Linux
Product: [Eclipse Project] Platform Reporter: Frederic Bard <bardfrederic>
Component: SWTAssignee: Platform-SWT-Inbox <platform-swt-inbox>
Status: NEW --- QA Contact:
Severity: major    
Priority: P3 CC: bardfrederic
Version: 4.18   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Frederic Bard CLA 2021-01-25 17:52:33 EST
I apologize in advance if my bug is a duplicate of this one : https://bugs.eclipse.org/bugs/show_bug.cgi?id=569551

When I use the ImageLoader class to save a JPEG image to a file on disk and set the compression ratio (https://javadoc.scijava.org/Eclipse/org/eclipse/swt/graphics/ImageLoader.html#compression) to any value other than 75, it seems that this value is ignored as all the files created look the same and have the same size.
However, on Windows 10, it seems to work fine.

I have created a snippet to reproduce this issue on LINUX that you can clone from here : https://gitlab.com/fjbdev/SWTIssue
It will allow you to load a JPEG file and compress this image with a chosen compression value in the scaler


My Linux Specs :
Debian 10.7, Cinnamon Desktop
Comment 1 Frederic Bard CLA 2021-11-20 22:30:31 EST
is anyone here ?