This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Dolphin preview for .Kra .Ora and .Psd files

Tags: None
(comma "," separated)
rhowlett
Registered Member
Posts
2
Karma
0
I'll take a look.
User avatar
Rog131
Registered Member
Posts
828
Karma
10
Linking to https://bugs.kde.org/show_bug.cgi?id=362287

Microsoft Windows Executables preview plugin

Looking KDE4 kde-runtime preview plugins: https://quickgit.kde.org/?p=kde-runtime.git

The kde-runtime/kde-runtime/kioslave/thumbnail/icoutils_wrestool.cpp has comments:
icoutils_wrestool.cpp - Extract Microsoft Window icons and images using icoutils package

// If we specify number of icon, use only group icons (Windows use only group icons)

// First try use group icons (type 14, default first for windows executables), then icons (type 3), then group cursors (type 12) and finaly cursors (type 1)
// Note: Last icon (type 3) could be in higher resolution


The icoutils: http://www.nongnu.org/icoutils/
and the wrestool:
Code: Select all
$ wrestool --help
Usage: wrestool [OPTION]... [FILE]...
Extract resources from Microsoft Windows(R) binaries.

Commands:
  -x, --extract           extract resources
  -l, --list              output list of resources (default)

Filters:
  -t, --type=[+|-]ID      resource type identifier
  -n, --name=[+|-]ID      resource name identifier
  -L, --language=[+|-]ID  resource language identifier
  -a, --all               perform operation on all resource (default)

Miscellaneous:
  -o, --output=PATH       where to place extracted files
  -R, --raw               do not parse resource contents
  -v, --verbose           explain what is being done
      --help              display this help and exit
      --version           output version information and exit

A leading `+' in --type, name or language options indicates a true string
identifier. Similarly, `-' indicates a true numeric identifier.


With the Keneric KDE (KF5) thumbnailer: http://kde-apps.org/content/show.php/Keneric+KDE+(KF5)+thumbnailer?content=174485

Adding to /usr/local/bin/stripPicture
Code: Select all
      application/x-ms-dos-executable|application/x-msdownload)
      wrestool -t 14 -x "$fullname" > "$exportPicture"
      exit
      ;;


Making: $HOME/.local/share/kservices5/kenericwindowsexethumbnail.desktop
Code: Select all
[Desktop Entry]
Type=Service
Name=Microsoft Windows Executables (Keneric)
Name[x-test]=xxMicrosoft Windows Executables (Keneric)xx

X-KDE-ServiceTypes=ThumbCreator
MimeType=application/x-ms-dos-executable;application/x-msdownload;

X-KDE-Library=keneric
CacheThumbnail=true


Enabling:

Image


Testing- Left: Dolphin 16.04.0 - Right: Dolphinpart4:

Image
Full image: http://i.imgur.com/vv5HnA0.png


Seems to work...
wolfi323
Registered Member
Posts
1129
Karma
11
OS
Rog131 wrote:Linking to https://bugs.kde.org/show_bug.cgi?id=362287

Microsoft Windows Executables preview plugin

Looking KDE4 kde-runtime preview plugins: https://quickgit.kde.org/?p=kde-runtime.git

JFYI, those plugins will be back in kio-extras 16.08:
https://quickgit.kde.org/?p=kio-extras. ... c2553336fd
User avatar
Rog131
Registered Member
Posts
828
Karma
10
wolfi323 wrote:JFYI, those plugins will be back in kio-extras 16.08:
https://quickgit.kde.org/?p=kio-extras. ... c2553336fd


Good to hear !
User avatar
kamathraghavendra
Registered Member
Posts
234
Karma
4
OS
The .psd file thumbnails are broken again in the recent plasma updates.

I am on arch linux and psd files now don't have any thumbnails.


User avatar
Rog131
Registered Member
Posts
828
Karma
10
kamathraghavendra wrote:The .psd file thumbnails are broken again in the recent plasma updates.

I am on arch linux and psd files now don't have any thumbnails.


You do have the kimageformats installed ?
Code: Select all
pacman -Qi kimageformats

A bug report: https://bugs.kde.org/show_bug.cgi?id=354413#c8

At here - downloading a sample file: http://www.freepik.com/free-psd/spring- ... 766469.htm

Seems to work...

Image
Full image: http://imgur.com/J8qiRJM
User avatar
kamathraghavendra
Registered Member
Posts
234
Karma
4
OS
Hi Rog131,

thank you for the reply. missing kimageformats was the problem , I don't know how it got uninstalled. Thank you for pointing it out.

I now have the thumbnails for psd. I closed the bug report too.

thank you once again




Bookmarks



Who is online

Registered users: bancha, Bing [Bot], daret, Evergrowing, Google [Bot], lockheed, mesutakcan, sandyvee, Sogou [Bot]