|
Post by dbridges on Jan 14, 2007 7:51:15 GMT 7
Hi, There is no argument that the gallery on the N2100 is somewhat limited. As someone who stores a lot of pictures on the n2100 i've found that perhaps the biggest limitation is the speed at which the gallery operates. This is manly due to the fact that it relies on the existence of 100x100 and 300x300 thumbnail images which the gallery tries to create "on the fly". That's why i've created the THUMBGEN module to generate the thumbnails automatically overnight. members.iinet.net.au/~david_bridges/files/THUMBGEN_N2100_1.0.zipmembers.iinet.net.au/~david_bridges/files/THUMBGEN_N2100_1.0.tgzIt's not up on the wiki yet. I'll try and get it up there by next weekend.
|
|
|
Post by spiken on Jan 14, 2007 16:58:16 GMT 7
Good idea and excellent job dbridges !
|
|
|
Post by jasok2 on Jan 15, 2007 13:30:31 GMT 7
Am I missing something. Iv tried to get it to run by clicking full scan and start scan now, but after 1/2 a day it hasnt done anything. there are no small jpeg's infact it wont even make them on the fly now. when i go to view the gallery. does it only generate the images overnight according to a predetermined schedule
|
|
|
Post by dbridges on Jan 15, 2007 15:27:37 GMT 7
When you execute a scan (run scan now) you should get the following N2100:~# ps -ef|grep thumbgen.sh 15733 root 552 S /bin/sh /raid/module/THUMBGEN/shell/thumbgen.sh /raid 17389 root 464 S grep thumbgen.sh N2100:~#
Also
N2100:~# crontab -l|grep thumbgen 0 0 * * * /raid/module/THUMBGEN/shell/thumbgen.sh /raid/album N2100:~#
The fact that you get the buttons shows that the web component has installed properly.
I'm interested to know why you gallery isn't still generating them on the fly as i don't touch any of that code.
There should be a couple of temporary files created in the process. N2100:/raid/module/THUMBGEN/shell# ls -ltr /raid/module/THUMBGEN/shell -rwxrwxr-- 1 root root 553 Jan 14 18:12 uninstall.sh* -rwxrwxr-- 1 root root 1473 Jan 14 18:12 thumbgensetup.sh* -rwxrwxr-- 1 root root 1467 Jan 14 18:12 thumbgen.sh* -rwxrwxr-- 1 root root 71 Jan 14 18:12 run_now.sh* -rwxrwxr-x 1 root root 1563 Jan 14 18:12 process_file_force.sh* -rwxrwxr-x 1 root root 1911 Jan 14 18:12 process_file.sh* -rwxrwxr-- 1 root root 637 Jan 14 18:12 module.rc* -rwxrwxr-- 1 root root 986 Jan 14 18:12 install.sh* -rwxrwxr-- 1 root root 444 Jan 14 18:12 enable.sh* -rwxrwxr-x 1 root root 449026 Jan 15 19:12 temp_thumb.sh* -rwxrw-r-- 1 root root 1513 Jan 15 19:13 create_thumbs.sh* N2100:/raid/module/THUMBGEN/shell# ls /raid/module/THUMBGEN/shell
temp_thumb.sh and create_thumbs.sh are the ones that are created during processing.
temp_thumb.sh gets created during the search and create_thumbs.sh is the actual calls to the convert command.
I would be interested in seeing a sample of what's turning up in the temporary files (if anything).
|
|
|
Post by dbridges on Jan 15, 2007 15:53:27 GMT 7
Do you have any strange characters in your filenames?
I managed to get it to handle filenames with spaces but that is about the extent of my shell scripting ability.
|
|
|
Post by jasok2 on Jan 17, 2007 4:34:14 GMT 7
Im not sure if its another problem with my box im investigating, but even with the module turned off the gallery is not working for me ill let you know how i go.
|
|