DevHeads.net

Review Request 125590: Patch for kimageformats that handles xcfgz / xcfbz2 (compressed GIMP) images (read-only).

Review request for kdelibs.

Repository: kimageformats

Description
Add support for GIMP's compressed xcf files (xcfgz / xcfbz2).

Diffs
CMakeLists.txt 518c9b25d9e93286494984ed360ab88f30106346
src/imageformats/CMakeLists.txt 8cf8d54bd0186521a5a71fdacae5ed3196e83b05
src/imageformats/xcf_compressed.cpp PRE-CREATION
src/imageformats/xcf_compressed.desktop PRE-CREATION
src/imageformats/xcf_compressed.json PRE-CREATION
src/imageformats/xcf_compressed_p.h PRE-CREATION

Diff: <a href="https://git.reviewboard.kde.org/r/125590/diff/" title="https://git.reviewboard.kde.org/r/125590/diff/">https://git.reviewboard.kde.org/r/125590/diff/</a>

Testing
Before testing, please make sure that you have image/x-compressed-xcf mime type and the system recognizes .xcfgz / .xcfbz2 files. It seems that various distributions have various problems with that.

I think the easiest (CLI) way to solve this is:

cat > /usr/share/mime/packages/xcfz.xml << EOF
<?xml version="1.0"?>
<mime-info xmlns='http://www.freedesktop.org/standards/shared-mime-info'>
<mime-type type="image/x-compressed-xcf">
<comment>Compressed xcf</comment>
<glob pattern="*.xcfgz"/>
<glob pattern="*.xcfbz2"/>
</mime-type>
</mime-info>
EOF

update-mime-database /usr/share/mime

Thanks,

Tudor PRISTAVU

Comments

Re: Review Request 125590: Patch for kimageformats that handles

By Tudor PRISTAVU at 10/10/2015 - 13:29

(Updated Oct. 10, 2015, 5:29 p.m.)

Review request for kdelibs.

Bugs: 126072
<a href="https://bugs.kde.org/show_bug.cgi?id=126072" title="https://bugs.kde.org/show_bug.cgi?id=126072">https://bugs.kde.org/show_bug.cgi?id=126072</a>

Repository: kimageformats

Description
Add support for GIMP's compressed xcf files (xcfgz / xcfbz2).

Diffs
CMakeLists.txt 518c9b25d9e93286494984ed360ab88f30106346
src/imageformats/CMakeLists.txt 8cf8d54bd0186521a5a71fdacae5ed3196e83b05
src/imageformats/xcf_compressed.cpp PRE-CREATION
src/imageformats/xcf_compressed.desktop PRE-CREATION
src/imageformats/xcf_compressed.json PRE-CREATION
src/imageformats/xcf_compressed_p.h PRE-CREATION

Diff: <a href="https://git.reviewboard.kde.org/r/125590/diff/" title="https://git.reviewboard.kde.org/r/125590/diff/">https://git.reviewboard.kde.org/r/125590/diff/</a>

Testing
Before testing, please make sure that you have image/x-compressed-xcf mime type and the system recognizes .xcfgz / .xcfbz2 files. It seems that various distributions have various problems with that.

I think the easiest (CLI) way to solve this is:

cat > /usr/share/mime/packages/xcfz.xml << EOF
<?xml version="1.0"?>
<mime-info xmlns='http://www.freedesktop.org/standards/shared-mime-info'>
<mime-type type="image/x-compressed-xcf">
<comment>Compressed xcf</comment>
<glob pattern="*.xcfgz"/>
<glob pattern="*.xcfbz2"/>
</mime-type>
</mime-info>
EOF

update-mime-database /usr/share/mime

Thanks,

Tudor PRISTAVU