As part of trying to do more things from the command line here’s a handy command for zipping files by type on MacOS from the command line.

find . -name "*.jpg" -print | zip source -@

You can find this an other commands from the zip man page.