[KPhotoAlbum] Patch to accept index.xml file with some default data
Robert Krawitz
rlk at alum.mit.edu
Sat May 12 03:58:28 BST 2018
These two patches:
1) Accept an index.xml file with missing data assigned default values:
- Label defaults to the basename of the file name
- Angle defaults to 0
- End date defaults to start date
2) Writes an index.xml file with that data omitted if the default
values are correct.
This yields about a 22.5% reduction in the size of my compact-format
index.xml file (from 65675111 to 50905302 bytes).
I'm offering these patches more for purpose of discussion than for
actually being integrated. Patch 1 is fully compatible, but patch 2
obviously is only forward compatible.
As for another problem I had, where I needed to change the name of the
database driver from QSQLITE to QSQLITE3, that issue seems to have
gone away. I assume it was a mixup with the Qt packages from my
distro.
--
Robert Krawitz <rlk at alum.mit.edu>
*** MIT Engineers A Proud Tradition http://mitathletics.com ***
Member of the League for Programming Freedom -- http://ProgFree.org
Project lead for Gutenprint -- http://gimp-print.sourceforge.net
"Linux doesn't dictate how I work, I dictate how Linux works."
--Eric Crampton
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Accept-index.xml-with-certain-missing-data-that-can-.patch
Type: application/octet-stream
Size: 1690 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kphotoalbum/attachments/20180511/e139e38d/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-Do-not-write-unnecessary-data-to-index.xml.patch
Type: application/octet-stream
Size: 2368 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kphotoalbum/attachments/20180511/e139e38d/attachment-0001.obj>
More information about the Kphotoalbum
mailing list