Review Request: double check the mimetype of images

Boudewijn Rempt boud at valdyas.org
Mon Apr 9 12:20:02 BST 2012


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://git.reviewboard.kde.org/r/104520/
-----------------------------------------------------------

Review request for Calligra.


Description
-------

Users apparently save png images with a .jpg extension or the other way around. Since kmimetype only ever really looks at the extension if it has one, that is not detected. This patch adds a check on content, and makes the content leading for the image mimetypes Krita supports.


This addresses bug 297656.
    http://bugs.kde.org/show_bug.cgi?id=297656


Diffs
-----

  libs/main/KoDocument.h 7cc8cd5 
  libs/main/KoDocument.cpp 775c2c6 

Diff: http://git.reviewboard.kde.org/r/104520/diff/


Testing
-------


Thanks,

Boudewijn Rempt

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/calligra-devel/attachments/20120409/a0a1b941/attachment.htm>


More information about the calligra-devel mailing list