Closed MarkOates closed 7 years ago
Uploaded GameScreenshots are not standard sized. Right now on the GamesController#show page, images are displayed at full resolution.
GameScreenshots
GamesController#show
Enable CarrierWave to create "versions" of the screenshot on upload. The versions are:
VERSION_FEATURE_SIZE = [640, 360] # 1/3 HD VERSION_TILE_SIZE = [320, 180] # 1/6 HD VERSION_THUMB_SIZE = [160, 90] # 1/12 HD
Also, only show the feature version in GameController#show
feature
GameController#show
GameScreenshots that have been uploaded already will need to be re-uploaded so they can be processed.
cc @allefant fixes https://github.com/allegroplanet/allegro-planet/issues/37
Problem
Uploaded
GameScreenshots
are not standard sized. Right now on theGamesController#show
page, images are displayed at full resolution.Solution
Enable CarrierWave to create "versions" of the screenshot on upload. The versions are:
Also, only show the
feature
version inGameController#show
⚠️ Warning
GameScreenshots
that have been uploaded already will need to be re-uploaded so they can be processed.cc @allefant fixes https://github.com/allegroplanet/allegro-planet/issues/37