A Bulletin Board from the backside of the internet http://bb.deadnet.se/ Print view |
|
imgram - html gallery in ksh http://bb.deadnet.se/viewtopic.php?t=24 |
Page 1 of 2 |
Author: | oracle [ Wed Apr 24, 2024 11:12 am ] |
Post subject: | imgram - html gallery in ksh |
![]() https://automa.triapul.cz/imgram/ Download: https://automa.triapul.cz/imgram/imgram.tgz tl;dr: you need ksh, perl, sed, etc optionally imagemagick. place img.conf in ~/.config of the user who will run it and edit it appropriately user running img needs rw permissions to both $db and $wroot usage: $ img <image_file> [tag1] [tag2] [...] $ img rebuild - rebuilds entire gallery $ img rss - rebuilds rss feed |
Author: | 82mhz [ Wed Apr 24, 2024 7:54 pm ] |
Post subject: | Re: imgram - html gallery in ksh |
Thanks for sharing! 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? |
Author: | zero cool [ Wed Apr 24, 2024 7:57 pm ] |
Post subject: | Re: imgram - html gallery in ksh |
You didn't put the images and everything in the same directory as the db file and all? |
Author: | oracle [ Wed Apr 24, 2024 11:41 pm ] |
Post subject: | Re: imgram - html gallery in ksh |
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? |
Author: | 82mhz [ Thu Apr 25, 2024 6:01 am ] |
Post subject: | Re: imgram - html gallery in ksh |
I'm on Arch Linux. When I run the rebuild, there are no errors: Code: Select all
Code: Select all
If I have some time, I will look into it further, for now that was just quickly testing it out a bit... |
Author: | 82mhz [ Thu Apr 25, 2024 6:04 am ] |
Post subject: | Re: imgram - html gallery in ksh |
Here's a before and after rebuild, you can see that the first file changes size: Code: Select all
|
Author: | oracle [ Thu Apr 25, 2024 11:35 am ] |
Post subject: | Re: imgram - html gallery in ksh |
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 |
Author: | 82mhz [ Thu Apr 25, 2024 2:10 pm ] |
Post subject: | Re: imgram - html gallery in ksh |
Well that was my mistake then - thanks for pointing it out! And for adapting the script for us unworthy Linux users ![]() It works great now! |
Author: | oracle [ Thu Apr 25, 2024 3:41 pm ] |
Post subject: | Re: imgram - html gallery in ksh |
Superb, I'm glad. If you go public with your gallery, I'd love to add it to an (not just) imgram feed of various users https://img.triapul.cz/sect.html |
Author: | 82mhz [ Fri Apr 26, 2024 8:49 am ] |
Post subject: | Re: imgram - html gallery in ksh |
I think first I have to take up photography again... ![]() But if I put up an image gallery, I'll let you know! |
All times are UTC | Page 1 of 2 |
Powered by phpBB® Forum Software © phpBB Limited |