airbnb / knowledge-repo

A next-generation curated knowledge sharing platform for data scientists and other technical professions.

Repository from Github https://github.comairbnb/knowledge-repoRepository from Github https://github.comairbnb/knowledge-repo

Increase thumbnail resolution when using a SQL db to store thumbnails

bulam opened this issue · comments

When using a SQL db to store post thumbnail images in base64 format, the field is only limited to 65K characters, which limits the thumbnail resolution to 125px X 125px here, which is too low for modern screens.

Similar to this PR, we need to upgrade the field to MediumText here
and then increase the resolution here

Note, after updating to MediumText, a db table for an existing knowledge repo instance will have to be migrated to use MediumText as well

See also #432