Bug 285311

Summary: gif images lost on save/load cycle
Product: [Applications] calligracommon Reporter: T Zachmann <t.zachmann>
Component: flake-pictureAssignee: Calligra Bugs <calligra-bugs-null>
Status: RESOLVED FIXED    
Severity: major    
Priority: NOR    
Version: 2.4-snapshots   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:

Description T Zachmann 2011-10-30 12:14:57 UTC
Version:           2.4-snapshots (using KDE 4.7.2) 
OS:                Linux

If you load a file with a gif image and save it again then the image will not be loaded the next time

Reproducible: Always

Steps to Reproduce:
Open the attached presentation.
Save the presentation.
Load the saved presentation.


Actual Results:  
Image is lost

Expected Results:  
Image should not be lost.
Comment 1 T Zachmann 2011-10-30 12:18:12 UTC
Git commit 88fdd437483782e229ae581405bb89f28d247f9c by Thorsten Zachmann.
Committed on 30/10/2011 at 13:10.
Pushed by zachmann into branch 'master'.

Fix bug 285311 gif images lost on save/load cycle

If we have a tempfile of the image use that on saving. This fixes the following problems:
- gif images are not saved by Qt as it is not supported.
- don't save image if the fileformat can cause loss of informations. This reduces artefacts
  by resaving jpg files.

BUG: 285311

M  +3    -0    libs/flake/KoImageData.cpp
M  +29   -24   libs/flake/KoImageData_p.cpp

http://commits.kde.org/calligra/88fdd437483782e229ae581405bb89f28d247f9c