If someone is CSS-smart, it would be ace to have some rules that squeeze all images that are inside a fixed size div into a smart and sexy grid. I was too stupid and used some flexbox with precalculated image widths based on the number of images. It would be ace if it could be done client-side in the browser (without JavaScript!).
Until screenshots are included in the API it might be best to make sure there's always one screenshot named <filename>.jpg
For example colony5.jpg in here would make sure API clients (QuakeInjector, QuaddictedTool) can still show a screenshot. What do you think?
Sadly filenames aren't unique per file so it would need to be the hash or something generic. For a generic name, it would need to fit any kind of package. image.jpg? main.jpg?
I don't want to force a file format (JPEG/PNG/WEBP/...) but allow lots of freedom for the users, at least in the https://github.com/Quaddicted/quaddicted-images repo. For quaddicted.com there is an imageproxy between the repo and the frontend, that converts the source files to JPEG at the moment.
I think it would be better to add an optional section to the API responses with the "Quaddicted" data, i.e. aggregate ratings, comments and images. Maybe in a new top-level key like this:
API requests could somehow ask for these to be included with query parameters. I need to check if I can easily plug this into the SOLR wrapper I build or if it would be better to integrate this data directly in the SOLR data itself.
Thoughts? I am not sure his soon I can build this, time is even more rare than usual at the moment.