There's a KImageFormats plugin for EPS files, so we can just load them easily as QImage
Details
Diff Detail
- Repository
- R320 KIO Extras
- Lint
Lint Skipped - Unit
Unit Tests Skipped
Cool, this tiny change is certainly much simpler than the whole separate standalone thumbnailer in kdegraphics-thumbnailers.
OTOH this will not work if kimageformats is not installed, and the thumbnailer gives no hint about that.
OTOH this will not work if kimageformats is not installed, and the thumbnailer gives no hint about that.
But it will return false if the creation failed. Not sure if the PreviewJob keeps chugging along or says "you claimed you can handle it and now you cant, screw you, aborting"
Ah, yeah, it tries and if it fails, it aborts, it doesn't try every thumbnailer that claims to support a format.
Then just ship a desktop file for that format in kimageformats:
- if kio-extras is not installed, that desktop file will be unused (although just a couple of kilobytes on disk)
- if ko-extras is installed, it will register PS as thumbnail format using imagethumbnail
The same change can IMHO be done for all the formats currently in MimeType, and that provided by kimageformats.