I gave it a quick try on Linux, and I could add images without problems, but every time I did "index rebuild", all jpgs in the output directory wound up being 9 bytes in size, even though they were fine before.
I gave it a quick try on Linux, and I could add images without problems, but every time I did "index rebuild", all jpgs in the output directory wound up being 9 bytes in size, even though they were fine before.
Any idea why that could be?
That is strange, because once the images are copied/converted into the target directory, they are not touched ever again, even during rebuilding.
What distribution is this on and did you encounter any errors?
I am the DEADNET ORACLE. I am not related to the company called ORACLE.
$ ./img.ksh 287b00d261e257d410c1c31e7e885b0b.jpg
file: 287b00d261e257d410c1c31e7e885b0b.jpg
ext: jpg
tags: no_context
id: aaicrz
root: /tmp/imgram
no_context
making page for tag all
for posts from 1 to 20
making page for tag no_context
for posts from 1 to 20
date: 1713966160: Datei oder Verzeichnis nicht gefunden
"Datei oder Verzeichnis nicht gefunden" means "File or directory not found".
If I have some time, I will look into it further, for now that was just quickly testing it out a bit...
andreas@powerplant:/tmp/imgram$ ll
insgesamt 196K
-rw-r--r-- 1 andreas andreas 151K 24. Apr 15:42 aaicrz.jpg
-rw-r--r-- 1 andreas andreas 465 24. Apr 15:42 all
-rw-r--r-- 1 andreas andreas 11 24. Apr 15:42 alltags
-rw-r--r-- 1 andreas andreas 99 24. Apr 15:42 db
-rw-r--r-- 1 andreas andreas 0 24. Apr 15:42 djjsej.jpg
-rw-r--r-- 1 andreas andreas 1,5K 24. Apr 15:42 img.xml
-rw-r--r-- 1 andreas andreas 1,7K 24. Apr 15:42 index.html
-rw-r--r-- 1 andreas andreas 465 24. Apr 15:42 no_context
-rw-r--r-- 1 andreas andreas 1,8K 24. Apr 15:42 no_context.html
-rw-r--r-- 1 andreas andreas 0 24. Apr 15:42 nyayip.jpg
-rw-r--r-- 1 andreas andreas 465 24. Apr 15:42 rev
-rw-r--r-- 1 andreas andreas 1,1K 24. Apr 15:42 rss
-rw-r--r-- 1 andreas andreas 1,1K 24. Apr 15:42 tmp
-rw-r--r-- 1 andreas andreas 22 24. Apr 15:42 tmptags
-rw-r--r-- 1 andreas andreas 0 24. Apr 15:42 '*'
andreas@powerplant:/tmp/imgram$ ../img.ksh rebuild
making page for tag no_context
for posts from 1 to 20
making page for tag all
for posts from 1 to 20
andreas@powerplant:/tmp/imgram$ ll
insgesamt 40K
-rw-r--r-- 1 andreas andreas 0 25. Apr 08:02 aaicrz.jpg
-rw-r--r-- 1 andreas andreas 465 25. Apr 08:02 all
-rw-r--r-- 1 andreas andreas 11 25. Apr 08:02 alltags
-rw-r--r-- 1 andreas andreas 99 24. Apr 15:42 db
-rw-r--r-- 1 andreas andreas 0 25. Apr 08:02 djjsej.jpg
-rw-r--r-- 1 andreas andreas 0 25. Apr 08:02 img.xml
-rw-r--r-- 1 andreas andreas 1,7K 25. Apr 08:02 index.html
-rw-r--r-- 1 andreas andreas 465 25. Apr 08:02 no_context
-rw-r--r-- 1 andreas andreas 1,8K 25. Apr 08:02 no_context.html
-rw-r--r-- 1 andreas andreas 0 25. Apr 08:02 nyayip.jpg
-rw-r--r-- 1 andreas andreas 465 25. Apr 08:02 rev
-rw-r--r-- 1 andreas andreas 1,1K 24. Apr 15:42 rss
-rw-r--r-- 1 andreas andreas 488 25. Apr 08:02 tmp
-rw-r--r-- 1 andreas andreas 33 25. Apr 08:02 tmptags
-rw-r--r-- 1 andreas andreas 0 25. Apr 08:02 '*'
you have wroot set to the same directory as db, wroot is a directory on your webserver, db is a local dir where magic happens, do not put anything in there. the date issue is related to rss generation, redownload the program, I fixed it so it will work on linux
I am the DEADNET ORACLE. I am not related to the company called ORACLE.