Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No thumbnails at very large collection. #15

Open
tmsd2001 opened this issue Sep 27, 2016 · 11 comments
Open

No thumbnails at very large collection. #15

tmsd2001 opened this issue Sep 27, 2016 · 11 comments

Comments

@tmsd2001
Copy link

Hello

with a large collection 100k+ i see only the last thumbnails. With recreate thumbnails i can see at one point the first thumbnail was remove when a new thumbnail at the end was create.
Version is xubuntu 16.04.01 and picty testing-r800.

regards Thomas

@Poikilos
Copy link

Poikilos commented Dec 6, 2017

I also get this problem with ico and png and most jpg files in updated Ubuntu 16.04 and picty (as of git version cloned today )
If I run picty from terminal and load the library, NOTE: If I run picty in terminal and open the directory, I do not get any errors when jpg file is loaded, output for each jpg is like:

loading metadata for item redacted/01_student_data_files/08_powerpoint/chapter_03/p03G_Catering.jpg
opening preview 1
read took 0.0316870212555
Adding redacted/01_student_data_files/08_powerpoint/chapter_03/p03G_Catering.jpg to collection <picty.collectiontypes.localdir.Device instance at 0x7f2cd3f9a5f0>
  • where redacted is a username, and the existing directory opened is a samba share:
  • I do however get thumbnails for psd files in picty and some random jpg files (maybe they already have a thumbnail??).
  • I did install totem and all other dependencies and optional dependencies noted in INSTALL other than python-osmgpsmap.
  • I do get the thumbnails in nautilus and Thunar.

no jpg thumbnails picty ubuntu 16 04 xenial
example of jpg that works (apparently from http://pcwallart.com/happy-koala-wallpaper-4.html which I found by images.google.com upload feature):
koala - copy
example of image that does not work (this one doesn't have a thumbnail in Thunar either so may have no builtin thumnail) -- source is Thaumcraft:
exanimis
example of image that does not work (this one doesn't have a thumbnail in Thunar but DOES in nautilus AFTER I open it in GNOME image viewer) -- source is Thaumcraft:
corpus

@Poikilos
Copy link

Poikilos commented Dec 6, 2017

Right-click, "Select All " Right-click, "Recreate Thumnails," works. Maybe you should add an option (on by default) to "Recreate missing thumbnails automatically"

@Poikilos
Copy link

Poikilos commented Dec 6, 2017

However just so you know sometimes its PIL's fault (can't parse):

Opened with GDK
Creating thumbnail for redacted/monster-slide A.psd /run/user/66586672/gvfs/smb-share:server=fcafiles,share=student/redacted/monster-slide A.psd
/run/user/66586672/gvfs/smb-share:server=fcafiles,share=student/redacted/monster-slide A.psd has no thumbnail.
Cannot decode file /run/user/66586672/gvfs/smb-share:server=fcafiles,share=student/redacted/monster-slide A.psd
Error creating thumbnail for redacted/monster-slide A.psd
Traceback (most recent call last):
  File "/usr/share/picty/picty/imagemanip.py", line 963, in make_thumb
    image = p.close()
  File "/usr/lib/python2.7/dist-packages/PIL/ImageFile.py", line 423, in close
    raise IOError("cannot parse this image")
IOError: cannot parse this image

Creating thumbnail for redacted/bed empty.jpg /run/user/66586672/gvfs/smb-share:server=fcafiles,share=student/redacted/bed empty.jpg

where redacted is a username

this only happened in rare cases --the rest of the thumbnails were generated

@spillz
Copy link
Owner

spillz commented Dec 6, 2017 via email

@Poikilos
Copy link

Poikilos commented Dec 7, 2017

I am not using a collection, I am opening a folder from the welcome screen of picty
I would assume that would use the default options (below were seen as default when creating a new collection):
Include sub-directories: yes
Rescan for changes after opening: yes
Monitor image folders for changes: yes
Load image metadata: yes
Use metadata sidecars for unsupported formats: no
Use embedded thumbnails if available: no
Store thumbnails in cache: yes
Thumbnail storage: Gnome Desktop Thumbnail Cache (User's Home)
Trash Location: User's Trash Folder

However, I doubt those settings are being used by the open folder option, since only certain things have thumbnails before clicking "Recreate thumbnails" but I don't know the code so I'm not sure.

@Poikilos
Copy link

Poikilos commented Dec 7, 2017

x264-encoded mp4 too:

loading metadata for item redacted/3D Animation/3Da13 Walk Cycles/3Da13Walk Cycles0001-0048_x264.mp4
Error reading metadata for /run/user/66586672/gvfs/smb-share:server=fcafiles,share=student/redacted/3D Animation/3Da13 Walk Cycles/3Da13Walk Cycles0001-0048_x264.mp4
Traceback (most recent call last):
  File "/usr/share/picty/picty/metadata/metadata2.py", line 117, in load_metadata
    rawmeta.read()
  File "/usr/lib/python2.7/dist-packages/pyexiv2/metadata.py", line 107, in read
    self.__image = self._instantiate_image(self.filename)
  File "/usr/lib/python2.7/dist-packages/pyexiv2/metadata.py", line 79, in _instantiate_image
    return libexiv2python._Image(filename)
IOError: /run/user/66586672/gvfs/smb-share:server=fcafiles,share=student/redacted/3D Animation/3Da13 Walk Cycles/3Da13Walk Cycles0001-0048_x264.mp4: The file contains data of an unknown image type

Adding redacted/3D Animation/3Da13 Walk Cycles/3Da13Walk Cycles0001-0048_x264.mp4 to collection <picty.collectiontypes.localdir.Device instance at 0x7fdd4cbab710>

@spillz
Copy link
Owner

spillz commented Dec 7, 2017 via email

@Poikilos
Copy link

Poikilos commented Dec 7, 2017

another one that didn't work, since you asked (not all psd files but some--see attached zipped psd file--opens in GIMP).
I tried to add that whole folder as a collection, and thought it was done because the window was finally non-blank after blocking io when adding a collection was finished, but after I clicked x to close the program I got:

Creating thumbnail for redacted/monster-slide 4.psd /run/user/66586672/gvfs/smb-share:server=fcafiles,share=student/redacted/monster-slide 4.psd
Opened with PIL
cached at /home/local/FBM/jgustafson/.thumbnails/normal/0fb5fc793b861cdbafa7aa5045ddb74d.png
Creating thumbnail for redacted/monster-slide 4A.psd /run/user/66586672/gvfs/smb-share:server=fcafiles,share=student/redacted/monster-slide 4A.psd
/usr/share/picty/picty/uitools/floats.py:128: GtkWarning: gtk_toolbar_remove: assertion 'content_to_remove != NULL' failed
  self.mainframe.toolbar1.remove(p.toggle)
/run/user/66586672/gvfs/smb-share:server=fcafiles,share=student/redacted/monster-slide 4A.psd has no thumbnail.
Cannot decode file /run/user/66586672/gvfs/smb-share:server=fcafiles,share=student/redacted/monster-slide 4A.psd
Error creating thumbnail for redacted/monster-slide 4A.psd
Traceback (most recent call last):
  File "/usr/share/picty/picty/imagemanip.py", line 963, in make_thumb
    image = p.close()
  File "/usr/lib/python2.7/dist-packages/PIL/ImageFile.py", line 423, in close
    raise IOError("cannot parse this image")
IOError: cannot parse this image

Error removing watch
Traceback (most recent call last):
  File "/usr/share/picty/picty/fstools/monitor2.py", line 29, in stop
    self.wm.rm_watch(wd.values(),rec=self.recursive)
  File "/usr/lib/python2.7/dist-packages/pyinotify.py", line 2158, in rm_watch
    del self._wmd[awd]
KeyError: 16577

SAVED VIEW <picty.collectiontypes.simpleview.SimpleView instance at 0x7fdd4cae5320>
no map source

monster-slide 4A.psd.zip

@Poikilos
Copy link

Poikilos commented Dec 8, 2017

also there's dds, which can be decoded by ImageMajick which I don't have installed but it could be used if present: https://superuser.com/questions/159379/convert-dds-to-png-using-linux-command-line

@spillz
Copy link
Owner

spillz commented Dec 8, 2017 via email

@spillz
Copy link
Owner

spillz commented Dec 8, 2017 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants