Bug 221245

Summary: Opening a picture with showfoto does not show any of the other pictures in the folder
Product: [Applications] digikam Reporter: Jonny <gehkacken02>
Component: Showfoto-DirectoryAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: caulier.gilles, fabianrichir, languitar, marcel.wiesweg, qxlddwas, tschenser
Priority: NOR    
Version: 1.0.0   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In: 5.1.0
Sentry Crash Report:

Description Jonny 2010-01-04 14:47:21 UTC
Version:            (using KDE 4.3.1)
OS:                Linux
Installed from:    openSUSE RPMs

When I open a picture with digiKam from OS file browser (dolphin, nautilus) digiKam wants to start and then crashes.
When I open a picture with showfoto, it only shows the current foto, but none of the other fotos from the folder I am in are displayed. This makes showfoto useless as an image viewer.

Tested with ubuntu 9.10 and openSuse 11.2, same results on both OSes
Comment 1 caulier.gilles 2010-01-04 14:59:48 UTC
Which digiKam version. Give us a gdb backtrace...

Gilles Caulier
Comment 2 Jonny 2010-01-04 15:06:17 UTC
version is ... 1.0.0 from the repository.
'gdb backtrace'  ahhhm  a what?? i am not a programmer or a power user.
Comment 3 caulier.gilles 2010-01-04 15:21:50 UTC
http://www.digikam.org/drupal/contrib
Comment 4 Jonny 2010-01-04 15:47:59 UTC
tried that gdb thing, and it does NOT crash this way. it only crashes if i rightklick on a picture with nautilus or dolphin and make "open with" and then choose "digikam". then the application bar says starting digikam and nothing happens, after like 20 seconds the entry in the application bar disappears again, and digikam did NOT start. and i have no idea how to use this gdb for that.

Futhermore i dont care much about this crash, because when i choose showfoto from the "open with" menu showfoto starts, but only shows 1 foto (the one i choose) and i cant switch between the other fotos in my folder with the first/previous/next/last buttons. THIS annoys the fuck out of me, and makes showfoto UNUSABLE as an image viewer.

its the first image viewer i found for linux that acctually has all the features i need, and now it DOES'T WANT TO SHOW MY PICTURES.

sorry about the language
if its still unclear i CAN make screenshots
Comment 5 Johannes Wienke 2010-01-04 17:33:34 UTC
I think this are two separate bug reports that need to be split.

For the crash:
1. gdb digikam
2. r download-from /path/to/images/
or
2. r /path/to/a/image.png

does it crash now?

For the second party please open a new bug report requesting the ability to list a whole folder in the thumbbar at the left.
Comment 6 Jonny 2010-01-04 18:19:22 UTC
guest@LENANSHEE:~$ gdb digikam
GNU gdb (GDB) 7.0-ubuntu      
Copyright (C) 2009 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.           
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"   
and "show warranty" for details.                                             
This GDB was configured as "i486-linux-gnu".                                 
For bug reporting instructions, please see:                                  
<http://www.gnu.org/software/gdb/bugs/>...                                   
Reading symbols from /usr/bin/digikam...(no debugging symbols found)...done. 
(gdb) r /home/guest/Pictures/2009-08-11-121/125002                           
1250020270596.jpg  1250021276491.jpg  1250021765530.jpg  1250022274004.jpg  1250022866129.jpg  1250023495088.jpg  1250024082927.jpg  1250024600938.jpg
1250020543364.jpg  1250021324302.jpg  1250021816267.jpg  1250022323776.jpg  1250022917737.jpg  1250023604595.jpg  1250024178664.jpg  1250024648107.jpg
1250020592261.jpg  1250021372618.jpg  1250021867317.jpg  1250022437963.jpg  1250023100171.jpg  1250023651333.jpg  1250024225035.jpg  1250024695176.jpg
1250020663023.jpg  1250021420514.jpg  1250021918516.jpg  1250022511455.jpg  1250023163322.jpg  1250023698991.jpg  1250024271396.jpg  1250024741767.jpg
1250020729296.jpg  1250021468277.jpg  1250021968944.jpg  1250022561547.jpg  1250023210681.jpg  1250023745629.jpg  1250024317716.jpg  1250024789875.jpg
1250020943253.jpg  1250021515802.jpg  1250022019235.jpg  1250022611091.jpg  1250023258496.jpg  1250023793932.jpg  1250024365560.jpg  1250024891042.jpg
1250020986121.jpg  1250021563413.jpg  1250022070888.jpg  1250022661612.jpg  1250023306037.jpg  1250023842796.jpg  1250024413289.jpg  1250024940481.jpg
1250021132295.jpg  1250021612986.jpg  1250022121735.jpg  1250022712425.jpg  1250023353197.jpg  1250023942619.jpg  1250024460377.jpg  1250024990400.jpg
1250021180440.jpg  1250021663820.jpg  1250022173399.jpg  1250022763627.jpg  1250023399820.jpg  1250023989272.jpg  1250024507197.jpg
1250021228868.jpg  1250021714458.jpg  1250022223234.jpg  1250022815164.jpg  1250023447706.jpg  1250024035496.png  1250024554245.jpg
(gdb) r /home/guest/Pictures/2009-08-11-121/12500222
1250022223234.jpg  1250022274004.jpg
(gdb) r /home/guest/Pictures/2009-08-11-121/1250022223234.jpg
Starting program: /usr/bin/digikam /home/guest/Pictures/2009-08-11-121/1250022223234.jpg
[Thread debugging using libthread_db enabled]
digikam: Unexpected argument '/home/guest/Pictures/2009-08-11-121/1250022223234.jpg'.
digikam: Use --help to get a list of available command line options.

Program exited with code 0376.
(gdb) r download-from /home/guest/Pictures/2009-08-11-121/1250022223234.jpg
Starting program: /usr/bin/digikam download-from /home/guest/Pictures/2009-08-11-121/1250022223234.jpg
[Thread debugging using libthread_db enabled]
digikam: Unexpected argument 'download-from'.
digikam: Use --help to get a list of available command line options.

Program exited with code 0376.
(gdb) quit
Comment 7 Jonny 2010-01-04 18:24:16 UTC
so you are telling me that NOT showing the other pictures from a folder is NORMAL. srsly??? Even the default windows photo viewer (!) is able to move between pictures with 2 buttons next and previous, and this application does not?

i am sorry but this IS a bug in my opinion, and if you want to, just ignore the entiry crash thing and fix THIS instead. i would really like a working image viewer on linux.
Comment 8 Marcel Wiesweg 2010-01-04 18:31:48 UTC
It's the other action, "Open folder"
Comment 9 Andi Clemens 2010-01-04 19:18:44 UTC
Sure Marcel,

but what is it good for anyway?
I never understood this separation either...
Comment 10 Jonny 2010-01-04 20:14:57 UTC
Ever heard of 'useability'?
"open folder" is useless. Nobody want to go through that hoop once they started the program.
The program needs to open the entire folder once you open a picture (and of course display that picture).

and now less talking and more fixing ... ahh implementing.
Comment 11 caulier.gilles 2010-01-05 08:04:14 UTC
You gdb backtrace said : no debug symbol found.

install digikam debug package and try again.

Without a suitable backtrace, we cannot help you...

Gilles Caulier
Comment 12 Jonny 2010-01-05 14:50:44 UTC
oh just ignore the crash, the crash is irrelevant, its just an 'optical illusion' and fix the OTHER thing. actually showing pictures is waaayyy more important for an image viewer.
(besides i cant even find a 'digikam debug package' in my ubuntu repositories)

So please fix showing images.
Comment 13 Marcel Wiesweg 2010-01-05 17:53:42 UTC
> but what is it good for anyway?
> I never understood this separation either...

I haven't implemented that either. I assume, the idea was to have an image editor working on single pictures. Like gimp, which only opens an image at a time. That collides with having a thumbbar. I think IrfanView on Windows is also single-picture based. Apps like Gwenview implement a different paradigm.
Having to admit, I rarely use showfoto.
Comment 14 Jonny 2010-01-05 18:45:20 UTC
well i would LIKE to use showfoto, but this really breaks it for me. on windows i was glad and happy with xnview, it's part editor part viewer. the PERFECT combination.

but, on linux ... well ... all programs i found for this were ... SHIT ... all of them, gwenview, gthumb, mirage, and the lot of them. and xnview doesnt work shit on linux.

now i find something useful and its just missing one feature and that just sticks in your face, showing a thumbbar with no thumbnails in it is just plain cruel.

please for the love of zark, go implement this, and make showfoto a worthy image viewer/editor!
Comment 15 Jens Mueller 2010-01-07 21:23:02 UTC
The question is: what is showfoto? image-browser, image-editor, both? The intention of the author was to select one or more images in for example dolphin and only these images are shown in sidebar with navigation forward/backwards between these. Beside, my first experience with showfoto was the same like jonny. 
There are 2 possible solutions:
a) keep the current behaviour (act like gimp - a pure image editor) -> but the thumbbar should be hidden if only one image is loaded.
b) act like xnview, gwenview, irfanview - a image-browser -> open current directory in thumbbar and drop the 'open folder' entry - but then we get the next usability questions: what about folder in/folder out, pure overview - the workplace of gwenview.
Comment 16 Jonny 2010-01-07 22:18:38 UTC
if you put it like this then definetivly b,
that way you do not loose any of your current functionality as an editor and you give people the option to use it as a viewer. there are quite enough "pure" foto editors out there like the gimp.
but at the current stage all of the image viewers are crap. i cant work effectively with any of them on linux and digiKam or showfoto have the potential to fit into that spot nicely. folder navigation isnt even that important and if you want to add it, i think it already exists in the digikam sidebar (why did you actually split up the application into 2 part?).

what i would consider important for a viewer besides the ability to switch between pictures would be to PRELOAD the next/previous pictures for fast switching (somehow gThumb fucked that one up too) otherwise you have seconds of idleness for the user between pictures.

so all in all:
- show folder
- preload next/previous
(- folder navigation)

BAM, awesome image viewer and its still an editor

otherwise its little more than an average editor
and on that area of applications i would prefer the gimp.

and why doesn't digikam allow to start WITH a picture as an argument, that seems stupid for an image application. you could also just put those features into digikam, it would lead to the same result, then again where is the difference between them.

if you are very very very uncertain about this, you could alsa make the automatically load folder optional with a little checkbox in the settings menu, and users who dont want a viewer can let it be turned off.

at least i'd shut up about it then

so get drunk and start coding, i am sick and tired of writing this shit!
Comment 17 caulier.gilles 2010-01-08 10:39:12 UTC
>so get drunk and start coding, i am sick and tired of writing this shit!

Warning, as a developer, i don't like this words !

Gilles Caulier
Comment 18 caulier.gilles 2011-12-13 09:22:03 UTC
This file still valid ?

Gilles Caulier
Comment 19 Christoph Feck 2012-12-06 12:23:50 UTC
If you can provide the information requested in comment #18, please add it.
Comment 20 Martin 2015-02-10 09:47:51 UTC
On FreeBSD, digikam was recently updated from 3.5.0 to 4.2.0. Now, when opening an image using showFoto, only that single image and none of the others in the same folder are shown. Specifically, none of the other images in the same folder are shown in the sidebar, and the "next" and "previous" buttons do not work any more.

I understand (and tried successfully) that showFoto can be used to open a whole directory by specifying just the directory name, but I believe the distinction between "open this image" and "open this directory full of images" is useless, especially because no functionality is lost if "open this image" also allows browsing the associated directory.

May I ask you to re-enable the behavior again where showFoto, when asked to open a specific file, will also load the other files in the same directory and allow transitioning between them (using the "next" and "previous" buttons)?

Sincerely,

Martin
Comment 21 caulier.gilles 2015-06-29 17:46:55 UTC
New digiKam 4.11.0 is available with official PKG installer for OSX.

https://www.digikam.org/node/740

Can you reproduce the problem with this release ?

Gilles Caulier
Comment 22 caulier.gilles 2016-07-15 12:55:19 UTC
With digiKam 5.0.0, this problem is not reproducible.
I close this file now. Don't hesitate to re-open if necessary.
Gilles Caulier
Comment 23 FabRic 2016-09-26 10:35:20 UTC
Hello,

First time here, so I don't know if I am supposed to create a new entry or not but I just installed digiKam-5.2.0-02-Win64.exe on Windows 10 (version 1607 - Anniversary Update) and the described problem in the title here is (still) happening.

It was already there with digiKam 5.1.0 (and Windows 10 version 1511).

Opening a picture with showfoto does not show any of the other pictures in the folder, only the picture I double clicked to open it in showphoto (configured as default image viewer).

Also, the "Color", "Enhance", "Decorate" and "Effects" menus are not available / opening / scrolling.

Please tell me if I have to create a new bug report or if you need more information.

FabRic