The games grid would look much better if every cover was the same size and evenly spaced. Scaling the images would look extremely bad so we need a way to fake the size.
I propose this solution:
For awkwardly shaped game covers, we can put the image onto a CD LIKE THIS. This would allow the game card to be a fixed size like the other rectangular covers.
In the database, I can make separate fields for cd-cover and box-cover.
There are two possibilities for implementing this:
Use JIMP to scale and turn the image into a CD on the fly
Or we could use ImageMagick to create the covers and store them in the database a BLOBs. This is feasible because I expect the site's metadata not to exceed 1 GB, which leaves 29 GB for images. I could probably have this done in a day or two.
A final solution would be to simply drop all games without the right size covers, but that's no fun.
This was completed by writing an ImageMagick script that converts the Steam headers to attractive CDs. The images are hosted on a CDN for much higher speed.
The games grid would look much better if every cover was the same size and evenly spaced. Scaling the images would look extremely bad so we need a way to fake the size.
I propose this solution: For awkwardly shaped game covers, we can put the image onto a CD LIKE THIS. This would allow the game card to be a fixed size like the other rectangular covers.
In the database, I can make separate fields for
cd-cover
andbox-cover
.There are two possibilities for implementing this:
A final solution would be to simply drop all games without the right size covers, but that's no fun.