πŸ¦€ Exploring Rust crates zip & image (Twitch live stream)

Subscribers:
950
Published on ● Video Link: https://www.youtube.com/watch?v=YkTIGz_QAZM



Duration: 1:06:49
112 views
3


In this video, we explored the crates `zip` and `image` and built a little Rust CLI that can decompress images from a zip file and create thumbnails for them.

- Zip crate: https://crates.io/crates/zip
- Image crate: https://crates.io/crates/image
- Our code repository: https://github.com/lmammino/unzip-and-resize-images

Chapters:

00:00:00 Intro
00:01:28 Overview of the project
00:04:05 Overview of the zip crate
00:07:14 Reading arguments from the CLI
00:10:20 How to open a file
00:14:28 How Rust manages files using RAII
00:15:40 Using the zip crate
00:22:43 Using the image crate
00:37:15 Resizing the images with resize_to_fill()
00:41:30 Saving the image to the local filesystem
00:48:33 Handling file extensions using std::Path file_stem() method
00:55:45 Converting Option types into Result types with .ok_or()
01:00:05 Getting the target image size from a CLI argument
01:04:03 Wrapping up

To see the next episodes live check out our Twitch channel: https://twitch.tv/loige

#rust #zip #image




Other Videos By Luciano Mammino (loige)


2023-07-31Fixing Fullstackbulletin.com part 7 - Twitch Live Stream
2023-07-31Fixing Fullstackbulletin.com part 6 - Twitch Live Stream
2023-07-17Fixing Fullstackbulletin.com part 5 - Twitch Live Stream
2023-07-03Fixing Fullstackbulletin.com part 4 - Twitch Live Stream
2023-06-26Fixing Fullstackbulletin.com part 3 - Twitch Live Stream
2023-06-19Fixing Fullstackbulletin.com part 2 - Twitch Live Stream
2023-06-12Fixing Fullstackbulletin.com part 1 - Twitch Live Stream
2023-05-08Creating Node.js libraries with Rust using Neon (Twitch live stream)
2023-04-18Using Zig from Python 😱 (Twitch Live Stream)
2023-04-03πŸ¦€ Calling Rust from Python 🐍 with PyO3 (Twitch live stream)
2023-03-22πŸ¦€ Exploring Rust crates zip & image (Twitch live stream)
2023-02-27πŸ¦€ Learning Rust web servers with Axum & SQLx (Twitch live stream)
2023-02-21Rust crates: async_stream (Twitch live stream 2023-02-20)
2023-02-13Rust crates: custom serde deserializers (Twitch live stream 2023-02-13)
2023-02-09Rust crates: dotenv, reqwest, url, serde, serde-json (Twitch live stream 2023-02-08)
2023-01-23πŸ¦€ Learning Rust web servers with Axum (Twitch live stream)
2023-01-09πŸ¦€ Learning nom, a Rust parser combinator library (Twitch stream)
2022-11-30Building a Tic Tac Toe game in Solid.js (Twitch Live Stream 2022-11-30)
2022-11-28πŸ¦€ Building a 2D starship game in Rust with Bevy - PART 5 (asteroids)
2022-11-21πŸ¦€ Building a 2D starship game in Rust with Bevy - PART 4 (collisions)
2022-11-14πŸ¦€ Building a 2D starship game in Rust with Bevy - PART 3 (migrating to Bevy 0.9)



Tags:
rust
cli
crate
zip
image
resize
thumbnail
streaming
live stream
coding
twitch
live coding
pairing
pair programming
learning
teaching
exploring
documentation
utility
command line application
building
projects
side projects
learning rust