Skip to content

Is there a way to add image height and width in theme automagically #3547

Answered by Kwpolska
aledeg asked this question in Q&A
Discussion options

You must be logged in to vote

Nikola can’t do that automagically, and that probably wouldn’t be done on the theme level. It could be done by post compilers, I don’t think reST has an option for this. You could try extending your input format of choice with that feature, or perhaps a filter — but note that reading the images to get their sizes might increase build time a lot (especially if you try to do that with remote images.)

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@aledeg
Comment options

@Kwpolska
Comment options

@felixfontein
Comment options

Answer selected by aledeg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants