Open curran opened 6 years ago
interesting. I had not considered this case yet 🤔
thanks for making the issue!
I think I want to find a new name for this third category of block thumbnail images.
in the strict sense, I think of
preview
as 960x500
thumbnail
as 230x120
ie, these are two labels for fixed dimensions, large and small in the same 48:25 aspect ratio
and perhaps we could also a native
or author-intent
image size, which could be 960x block.config.height
again 🤔
I could also image a fourth conventional thumbnail size, which would be fullPage
, optionally resized to some target width.
(this is different from my immediate use-case of showing nice 230x120 thumbnails for a search results page. that said, it sounds like it is something that would be useful to support for other use cases 😄 )
I notice the viewport height is set to 500, but some bl.ocks have a custom height set in the
.block
file. Ideally the thumbnails would have the same aspect ratio as the original bl.ock with custom height.I wrote some code that may be useful for you here:
I'd be happy to release this as a separate package if that would be useful.