Lists with JPG Images
Lists with JPG Images
Students format and upload JPG images to the CodeX, then display them from a list.
Overview
This is an optional lesson, but it is highly engaging because it allows for self expression. Students find their own JPG images, format them for the CodeX, and upload them to the CodeX file system. Then they write the Picture_Bot program, which stores the image file names in a list and displays the images on the CodeX screen.
There is no activity guide for this lesson. Students complete a programming project. They can make a slide show, like Mission 7, or display random JPG images, like Mission 8, or do both.
🎯 Mission Goal: Students will display JPG images on the CodeX display screen from a list.
Learning Targets
- I can format a JPG image for use on the CodeX.
- I can upload a JPG file to the CodeX.
- I can define a list of JPG images.
- I can display a JPG image from a list.
Key Concepts
- In order for a JPG image to display on the CodeX display screen, it must be formatted correctly.
- Images uploaded to the CodeX are only available on that CodeX. They are saved on the CodeX file system, not in the cloud.
Assessment Opportunities
- Picture_Bot program, or another program that displays JPG images.
Success Criteria
- Format a JPG image to display on the CodeX
- Define a list of JPG images
- Display a JPG image from a list
Digital Resources
- ▸List with JPG Images slides
- ▸CodeX and JPG Images One Pager
- ▸JPG Images Tutorial (PDF)
- ▸Photopea photo editing website
- ▸YouTube demonstration of putting the CodeX in write mode
Classroom Materials
- ▸CodeX (students need to use the same CodeX each time to access their uploaded images)
- ▸USB-C cable
- ▸JPG images saved on a flash drive or computer, not in the cloud
Real-World Applications
Real-world lists are practical tools used everywhere to organize tasks, track information, and manage data efficiently.
Extensions & Cross-Curricular
🐍
New Python Code
▾
📐
Standards
▾
CSTA Standards - Grades 9-10
CSTA Standards - Grades 11-12
AP CSP Framework
- Decide whether to teach from the slides or hand out the CodeX and JPG Images One Pager or the JPG Images Tutorial (PDF). Both go over the same steps and can be given to students.
- Students need their JPG images saved on a flash drive or computer, not in the cloud. They can find images on the Internet, use pictures they took with a cell phone, or scan photos.
- This is an optional lesson, but it is highly engaging because it allows for self expression.
- There is no activity guide for this lesson. Students complete a programming project.
- It is a good idea to check each image on the CodeX as it is being formatted. If an image does not display on the screen, the number one reason is formatting. You will not get an error message, the JPG just will not show.
- We highly recommend using Photopea and following the directions. It works every time. Make sure you change the DPI (if needed) before you change the width and height.
- The image does not have to be square to display on the screen. However, if you want to ensure the image is square, use the "Canvas Size" setting first.
- You can use other photo editing software, but you may need to experiment to get the correct settings.
Lesson Outline
Go over slides 2-3.
Discuss JPG images. Compare and contrast them to bitmap images.
Slide 4: Students find images to display on the CodeX. They can find images from the Internet, use pictures they took with a cell phone, or scan photos. They should be saved on a flash drive or computer and not in the cloud.
Slide 5: Explain that all images need to be formatted for display on the CodeX.
Slides 6-11: Students format their images for the CodeX.
Slides 12-15: Students upload their images to the CodeX.
Slides 15-21: Students start a new program. They create a list of images and then display them.
✅ The JPG images program is complete and ready to turn in.
Formative assessment:
- Daily reflection journal
- Class discussion on what they learned about lists
- Exit ticket