Version: unspecified (using Devel) OS: Linux After updating to KDE 4.8.0 preview of images is not working in Ark 2.18. Reproducible: Always Steps to Reproduce: 1. Open archive with images (png, jpg). 2. Click on image. Actual Results: File name and type shown in preview window. Expected Results: Image preview should be shown. Preview of documents (PDF, TXT, DJVU) and videos is working.
confirmed. tested with both .tar and .zip archives containing a handful of .jpg files.
Could you attach a sample file?
BTW, there has been no significant commit to this part of the code in the KDE/4.8 branch, and Ark just looks for a KPart capable of showing the image. Can you check the debug output and see if Ark reports any problem finding a suitable KPart? You could also check which part is associated with these mimetypes in System Settings -> File Associations -> "image/jpeg" and then looking at the priority list in the Embedding tab (if there is more than one entry there, try changing the preferred one and previewing the image with Ark again).
Created attachment 68162 [details] archive with image
Prioruty: gvpart, khtmlimage, okularkimgio Nothing changed after changing priority.
The only message that appears is QCursor: Cannot create bitmap cursor; invalid bitmap(s) When viewing txt other messages.
with kdebug enabled I get similar: $ ark foo.tar ark(9896)/kdecore (KSycoca) KSycocaPrivate::openDatabase: Trying to open ksycoca from "/var/tmp/kdecache-rdieter1/ksycoca4" ark(9896)/kdecore (trader) KMimeTypeTrader::query: query for mimeType "application/x-tar" , "Kerfuffle/Plugin" : returning 1 offers ark(9896)/kdecore (K*TimeZone*) KSystemTimeZonesPrivate::instance: instance(): ... initialised ark(9896)/kdecore (K*TimeZone*) KSystemTimeZonesPrivate::readConfig: readConfig(): local zone= "America/Chicago"
oops, that was truncated, the whole thing: $ ark foo.tar ark(9896)/kdecore (KSycoca) KSycocaPrivate::openDatabase: Trying to open ksycoca from "/var/tmp/kdecache-rdieter1/ksycoca4" ark(9896)/kdecore (trader) KMimeTypeTrader::query: query for mimeType "application/x-tar" , "Kerfuffle/Plugin" : returning 1 offers ark(9896)/kdecore (K*TimeZone*) KSystemTimeZonesPrivate::instance: instance(): ... initialised ark(9896)/kdecore (K*TimeZone*) KSystemTimeZonesPrivate::readConfig: readConfig(): local zone= "America/Chicago" ark(9896)/kdecore (K*TimeZone*) KSystemTimeZonesPrivate::readZoneTab: readZoneTab( "/usr/share/zoneinfo/zone.tab" ) ark(9896)/kdecore (kdelibs) KTempDir::create: KTempDir: Temporary directory created : "/tmp/kde-rdieter1/arksfr6k0/" ark(9896)/kdecore (trader) KMimeTypeTrader::query: query for mimeType "image/jpeg" , "KParts/ReadOnlyPart" : returning 3 offers ark(9896)/kdecore (trader) KMimeTypeTrader::query: query for mimeType "image/jpeg" , "KParts/ReadOnlyPart" : returning 3 offers QCursor: Cannot create bitmap cursor; invalid bitmap(s)
Seems changing to khtmlimage, okularkimgio works for me. only fails for gvpart.
Alright, reassigning to Gwenview.
*** Bug 293249 has been marked as a duplicate of this bug. ***
There is one thing I just don't understand: if ark uses gwenview anyway (via gvpart), why not just open the file in gwenview, like krusader does. Will be more simple, one could browse through the images instead of opening each one in a separated tiny preview window. This is one major feature I like in krusader.
Problem is still in KDE 4.8.1.
Preview in Ark working after installing gwenview-4.7.4 in KDE 4.8.1.
Krusader also uses the GwenviewPart (if you use the F3 viewer feature). But for some reason the part seems to work in Krusader and Konqueror, at least that's what reports say.
Git commit 2945372b9c20a7041858a861aa11385551dd506b by Aurélien Gâteau. Committed on 11/03/2012 at 23:20. Pushed by gateau into branch 'KDE/4.8'. Fix failure to load cursor in KPart FIXED-IN: 2.8.2 M +3 -1 lib/documentview/abstractimageview.cpp http://commits.kde.org/gwenview/2945372b9c20a7041858a861aa11385551dd506b
Git commit 83f424c9feb291e491920357d4ad6949e767e169 by Aurélien Gâteau. Committed on 11/03/2012 at 23:16. Pushed by gateau into branch 'KDE/4.8'. Correctly set DocumentViewContainer parent Fix GVPart usage in Ark FIXED-IN: 2.8.2 M +2 -2 part/gvpart.cpp http://commits.kde.org/gwenview/83f424c9feb291e491920357d4ad6949e767e169