Bug 285311 - gif images lost on save/load cycle
Summary: gif images lost on save/load cycle
Status: RESOLVED FIXED
Alias: None
Product: calligracommon
Classification: Applications
Component: flake-picture (show other bugs)
Version: 2.4-snapshots
Platform: Compiled Sources Linux
: NOR major
Target Milestone: ---
Assignee: Calligra Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-30 12:14 UTC by T Zachmann
Modified: 2011-10-30 12:18 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

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