Skip to content

Commit

Permalink
Plugins (#4)
Browse files Browse the repository at this point in the history
* Initial checkin of eps kdelib plugin

- just for testing
- https://api.kde.org/frameworks/kimageformats/html/index.html

* The initial import of KImageFormats from the KDE project

Imported from https://github.com/KDE/kimageformats
- v5.39.0-rc1
- a65b504

* CMake definitions for building plugins

* Adding missing license for KDE KImageFormats plugins

* Supported formats extended

* MacOS plugin support
  • Loading branch information
vookimedlo committed Oct 14, 2017
1 parent 935471a commit 9a13ca6
Show file tree
Hide file tree
Showing 48 changed files with 9,246 additions and 21 deletions.
510 changes: 510 additions & 0 deletions LICENSE-PLUGINS-KIMAGEFORMATS

Large diffs are not rendered by default.

39 changes: 39 additions & 0 deletions build/cmake/CMakeLists.txt
Expand Up @@ -106,3 +106,42 @@ qt5_use_modules(VookiImageViewer
Widgets)

TARGET_LINK_LIBRARIES(VookiImageViewer ${OS_LIBS})


#### Plugins ####
#

# Photoshop documents (psd)
#
add_library(vooki_kimg_psd MODULE ../../src/plugins/kimageformats/psd.cpp)
TARGET_LINK_LIBRARIES(vooki_kimg_psd Qt5::Gui)

# Gimp (xcf)
#
add_library(vooki_kimg_xcf MODULE ../../src/plugins/kimageformats/xcf.cpp)
TARGET_LINK_LIBRARIES(vooki_kimg_xcf Qt5::Gui)

# Personal Computer Exchange (pcx)
#
add_library(vooki_kimg_pcx MODULE ../../src/plugins/kimageformats/pcx.cpp)
TARGET_LINK_LIBRARIES(vooki_kimg_pcx Qt5::Gui)

# Targa (tga): supports more formats than Qt's version
#
add_library(vooki_kimg_tga MODULE ../../src/plugins/kimageformats/tga.cpp)
TARGET_LINK_LIBRARIES(vooki_kimg_tga Qt5::Gui)

# Sun Raster (ras)
#
add_library(vooki_kimg_ras MODULE ../../src/plugins/kimageformats/ras.cpp)
TARGET_LINK_LIBRARIES(vooki_kimg_ras Qt5::Gui)

# Softimage PIC (pic)
#
add_library(vooki_kimg_pic MODULE ../../src/plugins/kimageformats/pic.cpp)
TARGET_LINK_LIBRARIES(vooki_kimg_pic Qt5::Gui)

# SGI images (rgb, rgba, sgi, bw)
#
add_library(vooki_kimg_rgb MODULE ../../src/plugins/kimageformats/rgb.cpp)
TARGET_LINK_LIBRARIES(vooki_kimg_rgb Qt5::Gui)
6 changes: 6 additions & 0 deletions build/cmake/mac/deploy.sh
@@ -1,3 +1,9 @@
#!/bin/sh

target=VookiImageViewer.app/Contents/PlugIns/imageformats/

~/Qt/5.9.1/clang_64/bin/macdeployqt build/VookiImageViewer.app -always-overwrite

cd build
cp -f libvooki_kimg_pcx.so libvooki_kimg_pic.so libvooki_kimg_psd.so libvooki_kimg_ras.so libvooki_kimg_rgb.so libvooki_kimg_tga.so libvooki_kimg_xcf.so $target
cp -f ../../../../src/plugins/kimageformats/psd.json ../../../../src/plugins/kimageformats/tga.json ../../../../src/plugins/kimageformats/pcx.json ../../../../src/plugins/kimageformats/ras.json ../../../../src/plugins/kimageformats/xcf.json ../../../../src/plugins/kimageformats/pic.json ../../../../src/plugins/kimageformats/rgb.json $target
9 changes: 9 additions & 0 deletions build/cmake/mac/support/MacOSXBundleInfo.plist.in
Expand Up @@ -50,6 +50,15 @@
<string>webp</string>
<string>tga</string>
<string>wbmp</string>
<string>pcx</string>
<string>pic</string>
<string>psd</string>
<string>ras</string>
<string>rgb</string>
<string>rgba</string>
<string>bw</string>
<string>sgi</string>
<string>xcf</string>
</array>
<key>CFBundleTypeRole</key>
<string>Viewer</string>
Expand Down
15 changes: 15 additions & 0 deletions src/plugins/kimageformats/AUTHORS
@@ -0,0 +1,15 @@
Sirtaj Singh Kang <taj@kde.org> -- kimgio and jpeg, tiff, png, krl readers
Dirk Schoenberger <> -- eps, netpbm readers
Torben Weis <weis@kde.org> -- XV format reader/writer
Thomas Tanghus <tanghus@kde.org> -- PNG writer
Antonio Larossa <larossa@kde.org> -- initial version of KRL reader
Sven Wiegand <SWiegand@tfh-berlin.de> -- eps output filter (from KSnapshot)
Dominik Seichter <domseichter@web.de> -- TGA format read/write support
Nadeem Hasan <nhasan@kde.org> -- PCX format read/write support
Melchior Franz <mfranz@kde.org> -- SGI format read/write support, port of XCF qimgio
Allen Barnett <allen@lignumcomputing.com> -- XCF format read support (qimgio)
Ignacio Castaño <castano@ludicon.com> -- DDS and PDS format reader.
Christoph Hormann <chris_hormann@gmx.de> -- HDR format read support.
Michael Ritzert <kde@ritzert.de> -- JPEG 2000 format read/write support
Troy Unrau <troy@kde.org> -- Sun RASter read support
œ
510 changes: 510 additions & 0 deletions src/plugins/kimageformats/COPYING.LIB

Large diffs are not rendered by default.

0 comments on commit 9a13ca6

Please sign in to comment.