You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As a comic_git user, when I add many comics at once to my site, I want to have a quick way to do so.
Especially when users are just getting started with comic_git, they may have a large backlog of work they want added. For example, last night I needed to create an art gallery with ~70 pieces. Creating all the folders and info.ini files would have taken quite a while by hand, so I put together a bash script to do it:
cd Concept_Art
for x in ./*.png; do
filename="$x"
filename_no_extension="${x%.*}"
mkdir "${filename_no_extension}" && mv "${filename}" "${filename_no_extension}"
cd "${filename_no_extension}"
touch info.ini
echo "Title = ${filename_no_extension//.\/}" >> info.ini
echo "Post date = August 29, 2021" >> info.ini
echo "Filename = ${filename//.\/}" >> info.ini
echo "Alt text = " >> info.ini
cd ..
done
Maybe something similar could be provided as one of the Python helpers? I'm not sure if there's a simpler or less technical way to provide functionality like this.
The text was updated successfully, but these errors were encountered:
Thinking out loud here... The bit that I get caught up on for a batch uploader like this is that the user would need to name/organize their comic images ahead of time, so that any script to auto-arrange them could grab the files and know which directory to put them in. And that feels like half the work already done.
Another issue is that comic_git makes no assumption about the directory names the user uses. Numbered directories are the standard just by accident, but the user could name each directory any arbitrary string and comic_git would still order it properly the comics properly by Post Date.
That said, I could see a batch uploader that just partially solves the problem being useful. Maybe it just creates the directories using a 001, 002... format, and the info.ini files with some default values. It could be configurable to change the formatting slightly, but not by much. It could also create empty post.txt files so the user doesn't have to create them themselves. 🤔
You make a good point about this being very useful for an art gallery, at least. Something that doesn't need the full comic functionality, but rather something to upload an "extra" comic to.
As a comic_git user, when I add many comics at once to my site, I want to have a quick way to do so.
Especially when users are just getting started with comic_git, they may have a large backlog of work they want added. For example, last night I needed to create an art gallery with ~70 pieces. Creating all the folders and
info.ini
files would have taken quite a while by hand, so I put together a bash script to do it:Maybe something similar could be provided as one of the Python helpers? I'm not sure if there's a simpler or less technical way to provide functionality like this.
The text was updated successfully, but these errors were encountered: