You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Blog Post content type should have handling for Featured Images. What do these featured images look like?
How can we achieve Preview Photos? Removing the jpeg headers is probably not an option for us initially. HTML pages will need to render the blurred version of the photo and the "real" version likely won't load until the javascript does.
We also need to do this for images inside markdown, which means the solution we use for the featured image is going to have to be included in a markdown-it plugin as well. This points to building a re-usable library to achieve this affect.
Update Jan 21, 2015
There are, roughly speaking, 3 TODOs here
Implement imagemagick-loader
Implement a React Element (<Magick />) which provides a declarative interface to imagemagick-loader
Implement a Markdown-It plugin which adds the equivalent of <Magick /> to the markdown syntax
Implement React Element (<MagickReader />) that provides an easy way to consume imagemagick-loader output (which should be json, since it'll come back from the API)
ImageMagick Loader
A Webpack loader that processes images in all sorts of ways. Allowing require('what.png?max-width=960') type statements, which will be generated by the markdown and react interfaces.
This element would accept an image src and attributes that map to the loader options.
We have img-loader, but we want more.
The Blog Post content type should have handling for Featured Images. What do these featured images look like?
How can we achieve Preview Photos? Removing the jpeg headers is probably not an option for us initially. HTML pages will need to render the blurred version of the photo and the "real" version likely won't load until the javascript does.
We also need to do this for images inside markdown, which means the solution we use for the featured image is going to have to be included in a markdown-it plugin as well. This points to building a re-usable library to achieve this affect.
Update Jan 21, 2015
There are, roughly speaking, 3 TODOs here
imagemagick-loader
<Magick />
) which provides a declarative interface toimagemagick-loader
<Magick />
to the markdown syntax<MagickReader />
) that provides an easy way to consumeimagemagick-loader
output (which should be json, since it'll come back from the API)ImageMagick Loader
A Webpack loader that processes images in all sorts of ways. Allowing
require('what.png?max-width=960')
type statements, which will be generated by the markdown and react interfaces.This element would accept an image src and attributes that map to the loader options.
which compiles to an
img
tag withsrcset
declarations.Markdown-It Plugin
Roughly same as above.
Includes a React element that accepts a spread json object (supplied from a graphql query)
The text was updated successfully, but these errors were encountered: