Popcorn Hack 1
- PNG file
Popcorn Hack 2
- It increases the size of data which can lead to slower performance
Homework Hack
In your notebook, explain the following, along with one application to YOUR work: – What is a hex color code? What are some examples? A hex color code is a 6-digit code starting with # that represents a color using red, green, and blue values in hexadecimal format. – What is Base64 and how is it used with images? Base64 is a way to convert image files into plain text so they can be embedded directly into HTML or CSS using data:image/… format. – Why might you use Base64 instead of a regular image file? It reduces the need for external files and extra requests—good for small images or quick sharing—but makes file size slightly larger.
- When using a regular image (pig.png), Jupyter loads the image from the file system and renders it as part of the output. If using Base64, the image data is already embedded in the notebook and will display without relying on external files.