Bug 398675

Summary: Image Rotation Inflates File Size
Product: [Applications] digikam Reporter: hardy.public
Component: Plugin-Editor-RotationAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED WORKSFORME    
Severity: normal CC: caulier.gilles
Priority: NOR    
Version First Reported In: 5.9.0   
Target Milestone: ---   
Platform: Microsoft Windows   
OS: Microsoft Windows   
Latest Commit: Version Fixed/Implemented In: 6.0.0
Sentry Crash Report:
Attachments: Before and after screenshot

Description hardy.public 2018-09-15 16:17:13 UTC
Created attachment 114978 [details]
Before and after screenshot

If I rotate an image, the file size is increased dramatically.

In the attached example, a 3.0MB file more than doubles in size.

Is this expected behaviour please and if so, is there a way to avoid it?
Comment 1 caulier.gilles 2018-09-15 16:41:19 UTC
In image editor, JPEG is decompressed. All operations are process in decompresse data and this is the expected behavior. And in this case, you use the JPEG compression level set in editor.

Use Batch Queue Manager to process a lossless rotation of jpeg without decompression and re-compression process. You can also rotate or flip directly in Album view using Item Menu option.

Gilles Caulier
Comment 2 hardy.public 2018-09-15 16:47:11 UTC
Understood. Many thanks for the advice.