Skip to content

Conversation

@linusha
Copy link
Collaborator

@linusha linusha commented Oct 29, 2025

Adds the description into the alt text as well and generates share-pictures for all votes. That also means that we generate slightly more pictures than necessary (think of amendments where we dont currently recognize that they are amendments or the agenda motions). However, I think the number is so small in comparison, that it does not matter.

I generated pictures for 22.10 on my local machine and that resulted in close to 200 pictures, totalling 12.5MB.
Rough math yields 1.5GB for pictures for all votes we currently have in the DB.

Closes #1229.

@linusha linusha requested a review from tillprochaska October 29, 2025 20:53
@tillprochaska
Copy link
Collaborator

tillprochaska commented Oct 29, 2025

I generated pictures for 22.10 on my local machine and that resulted in close to 200 pictures, totalling 12.5MB.

Do you remember how long it took (approx.) to generate share pictures for all votes for a single session day. (If you don’t I can also check this myself.)

@linusha
Copy link
Collaborator Author

linusha commented Oct 29, 2025

Do you remember how long it took (approx.) to generate share pictures for all votes for a single session day. (If you don’t I can also check this myself.)

Around 2 min

@linusha
Copy link
Collaborator Author

linusha commented Oct 30, 2025

By the way, I am aware that this requires a huge regeneration after merging and will do that. Will take some time and would prefer to loosely monitor what is happening and whether the server keeps chilling while doing that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Enable OG image previews for non-main votes

3 participants