mirror of
https://github.com/Universal-Omega/PortableInfobox.git
synced 2024-11-15 11:59:56 +00:00
add todo comment about generating thumbnail
This commit is contained in:
parent
f9c31ad797
commit
8cb897bb00
|
@ -4,8 +4,11 @@ class PortableInfoboxRenderService extends WikiaService {
|
|||
const LOGGER_LABEL = 'portable-infobox-render-not-supported-type';
|
||||
const DESKTOP_THUMBNAIL_WIDTH = 270;
|
||||
const MOBILE_THUMBNAIL_WIDTH = 360;
|
||||
// we need this value cause it it impossible to get vignette thumbnail only specifying width and the height need
|
||||
// to be big enough so each image width will reach our thumbnail width based on its aspect ratio
|
||||
// TODO: https://wikia-inc.atlassian.net/browse/MAIN-4601 - request for the missing vignette feature which will
|
||||
// allow us to remove THUMBNAIL_HEIGHT from the code. Currently we need this value cause it it impossible to get
|
||||
// vignette thumbnail without upsampling only specifying width. The height need to be big enough so each image width
|
||||
// will reach our thumbnail width based on its aspect ratio
|
||||
|
||||
const THUMBNAIL_HEIGHT = 1000;
|
||||
const MOBILE_TEMPLATE_POSTFIX = '-mobile';
|
||||
|
||||
|
|
Loading…
Reference in a new issue