From 9cbdabd94b52b4ad13690cae8a2a251eab9956b3 Mon Sep 17 00:00:00 2001 From: Rob Fatland Date: Tue, 14 May 2024 15:12:33 -0700 Subject: [PATCH] Update README.md --- README.md | 23 +++++++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index a5251b3..50c04a1 100644 --- a/README.md +++ b/README.md @@ -94,8 +94,23 @@ has been modified and we have the subfolder **`/books/chapters`** where the note - How much Python functionality is present in the Book? - LaTeX? - How much data can be bundled with the Book? -- Where does static content -- mp4 animations, images -- go? How to reference in a chapter notebook? - - I placed an imagine in **`~/book/img`** - - I created a sub-folder section **`~/book/img/rca`** with organized content - - Referencing an image in both the above places: Works locally, gives a broken picture icon in the Book render + +### Inline images + + +The following Python code will convert a `jpg` to `png` format: + + +``` +from PIL import Image +Image.open('revelle.jpg').save('revelle.png') +``` + +Per the JupyterBook documentation: HTML is not recommended so I will revert to markdown inlining of +images. This does not seem to work for jpegs so the above Python is a means of converting jpg to png. + +The template has a folder **`~/book/img`** so I added subfolders **`/rca/images/category`** and +**`/rca/animations/category`**. + +