KSP-SpaceDock / SpaceDock

Current Codebase (Python /Flask)
https://spacedock.info
Other
73 stars 33 forks source link

Thumbnail Generation #1

Closed ghost closed 8 years ago

ghost commented 8 years ago

Because the frontpage is way too heavy as it is, and the easiest way is to generate thumbnails for display, either when an image is uploaded, or when it is first accessed.

For a CDN, though, generating the thumb when uploaded would be best.

StollD commented 8 years ago

Closing this as the thumbnails are not generated, but the headers get placed with CSS

ghost commented 8 years ago

Well, then we need thumbnail generation, instead of using ginormous images on the frontpage.

Placing this on Roadmap, though, instead of for a SpaceDock release.

sharksharkco commented 8 years ago

This may be related, https://github.com/KSP-SpaceDock/SpaceDock/issues/57#issuecomment-185403879

StollD commented 8 years ago

I was already thinking about implementing a crop window for the thumbnails

sharksharkco commented 8 years ago

I gotta say I think eliminating the banner has more pros than the one con of no banner.

godarklight commented 8 years ago

This is probably where most of our traffic is going, the main page images are probably bigger than most mods.

@sharksharkco Upload size restrictions are lame, let's go with libgd or whatever and just resize them a bit smaller.

I'd keep mod banners, they serve as the thumbnail image too. If anything maybe we can resize them down if they are overly big, but don't go too terrible on the quality - they are banners after all.

godarklight commented 8 years ago

I'm taking this one, I'll get it out of the way tomorrow.

GenPage commented 8 years ago

@godarklight :+1: on upload size restrictions being lame and going with a lib to resize.

I vote to keep the banners as well, but only display on mod view page.

godarklight commented 8 years ago

I did a thing!

Implemented via 8f7fa597c1247945a27664645fd76f3423222548 and fe64501900d6811b4ec346fcece59bee7a85ee7e.