sunnyhd / homeintouch

A home automation project using socket.io
2 stars 0 forks source link

Photos - Thumbs too big #197

Closed sunnyhd closed 11 years ago

sunnyhd commented 11 years ago

Picture Thumbs are too big = very slow navigation!

martinmoscovich commented 11 years ago

Do you have many folders and images? are you able to see all the photos properly?

sunnyhd commented 11 years ago

Ist 449 folders with pictures. With the latest release 1.0.0 I just get the directory names - no pictures. In a previous release the pictures showed up on localhost but very slow.

jalessandro commented 11 years ago

Code added to improve performance 82bfd3dc94c866c114c565268d50564dcc15c526 by @martinmoscovich

matiasalvarez87 commented 11 years ago

This should be improved with the lastest changes. XBMC only generates the thumbs when the user navigates through the picture directories. So we are using these thumbs, but only are displayed when they were generated.

sunnyhd commented 11 years ago

Pictures dont show up. Picture thumbs have been generated by XBMC.

matiasalvarez87 commented 11 years ago

We won't work with this feature anymore. XBMC picture library is under development. We can't waste more time researching workarounds of a product that is not done yet. For XBMC this feature is not so important.

sunnyhd commented 11 years ago

Hash for the folder thumb is created with:

image://picturefolder@ + url encoded folder path + /

Example: image://picturefolder@smb%3a%2f%2f192.168.2.3%2fPictures%2f2001_03PAPAGEBUI%2f/

Result for this example: 9f7c68f8

sunnyhd commented 11 years ago

Hash for a picture thumb is created with:

image:// + url encoded file path + /transform?size=thumb

Example: image://smb%3a%2f%2f192.168.2.3%2fPictures%2f2010_09_15%20marisaGebudi%2fCIMG2125.JPG/transform?size=thumb

Result for this example: 6471b116

jalessandro commented 11 years ago

Now the hashes for folders and pictures are calculated as expected.

sunnyhd commented 11 years ago

The picture folders dont show up. Its allways the standard folder picture. Files are working fine now. Also the url for watching the picture on the client is wrong. You are not testing if its working or you just dont care?

http://localhost:8080/vfs/ + url encoded file path

Example:

http://localhost:8080/vfs/smb%3a%2f%2f192.168.2.3%2fPictures%2f2001_03PAPAGEBUI%2f104-0426.JPG

sunnyhd commented 11 years ago

The path for the slideshow for the pictures on the client is still wrong.