2024-09-27 21:20:18 +02:00
|
|
|
|
```text
|
|
|
|
|
[[[ SYNOPSIS ]]]
|
|
|
|
|
|
2024-09-28 21:02:49 +02:00
|
|
|
|
pfaltgall [options] <configuration file path> <output file path>
|
2024-09-27 21:20:18 +02:00
|
|
|
|
|
|
|
|
|
[[[ DESCRIPTION ]]]
|
|
|
|
|
|
2024-10-31 23:08:06 +01:00
|
|
|
|
This is pfaltgall v0.3.1, a CLI PHP script that can generate an html file
|
2024-09-28 22:28:31 +02:00
|
|
|
|
with a gallery from your Pixelfed profile. The html gallery file will load
|
2024-10-31 23:08:06 +01:00
|
|
|
|
images dynamically from your Pixelfed instance or its CDN, display each one
|
|
|
|
|
using almost all the available screen space and let you jump right from the
|
|
|
|
|
start to any point in the timeline.
|
|
|
|
|
It will also show each post’s text content, its date, and provide each image
|
|
|
|
|
with its description (alt-text), if it’s present on Pixelfed.
|
|
|
|
|
Here is example gallery: https://rame.altervista.org/foto-pixelfed
|
2024-09-28 21:02:49 +02:00
|
|
|
|
In order to create the html gallery file, you just need to login to your
|
2024-10-31 23:08:06 +01:00
|
|
|
|
Pixelfed account from the official web frontend and get an app token
|
|
|
|
|
(Settings -> Applications -> Create new token), then create a configuration
|
|
|
|
|
file for pfaltgall like this (don’t write the «---» lines):
|
2024-09-27 21:20:18 +02:00
|
|
|
|
|
|
|
|
|
---
|
|
|
|
|
host=your_instance_host
|
|
|
|
|
token=your_token
|
2024-10-31 23:08:06 +01:00
|
|
|
|
lang=your_html_page_language_code
|
2024-09-27 21:20:18 +02:00
|
|
|
|
---
|
|
|
|
|
|
|
|
|
|
For example:
|
|
|
|
|
|
|
|
|
|
---
|
|
|
|
|
host=pixelfed.social
|
|
|
|
|
token=as7f8a7s0d89f7as97df09a8s7d90f81jkl2h34lkj12h3jkl4
|
2024-10-31 23:08:06 +01:00
|
|
|
|
lang=it
|
2024-09-27 21:20:18 +02:00
|
|
|
|
---
|
|
|
|
|
|
2024-09-28 21:02:49 +02:00
|
|
|
|
Then run pfaltgall with the path of the configuration file you have created
|
|
|
|
|
and the path of an output file as arguments (if the output file exists, it
|
2024-10-31 23:08:06 +01:00
|
|
|
|
will be overwritten), e.g.: «pfaltgall pixelfed.social.conf index.html».
|
|
|
|
|
This will create an «index.html» file that will be ready to be put where you
|
|
|
|
|
want (you’ll also be able to see it locally, obviously). There is a sample
|
|
|
|
|
bash script that you can adapt to run pfaltgall and automatically upload
|
|
|
|
|
it where you want.
|
2024-09-27 21:20:18 +02:00
|
|
|
|
|
|
|
|
|
[[[ OPTIONS ]]]
|
|
|
|
|
|
|
|
|
|
-h, --help
|
|
|
|
|
Show this help text and exit.
|
|
|
|
|
|
|
|
|
|
[[[ DISCLAIMER AND LICENSE ]]]
|
|
|
|
|
|
|
|
|
|
This program comes with ABSOLUTELY NO WARRANTY; for details see the source.
|
|
|
|
|
This is free software, and you are welcome to redistribute it under certain
|
|
|
|
|
conditions; see <http://www.gnu.org/licenses/> for details.
|
|
|
|
|
|
|
|
|
|
```
|