Bug 570646 - ImageLoader Compression value is ignored when saving an image file on Linux
Summary: ImageLoader Compression value is ignored when saving an image file on Linux
Status: NEW
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 4.18   Edit
Hardware: PC Linux
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: Platform-SWT-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-01-25 17:52 EST by Frederic Bard CLA
Modified: 2021-11-20 22:50 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 ?