Noted imagemagick and lectures

This commit is contained in:
2025-01-30 17:29:25 +01:00
parent ed3d85e99b
commit 74baee3b49
4 changed files with 35 additions and 12 deletions

View File

@@ -1,7 +1,7 @@
# ImageMagick
## What is ImageMagick and why use it?
ImageMagick is a tool to resize, convert or compress images. You can do all sorts of things with it. But right now we will be using it to compress images. So other people don't have to download hunderds of megabytes when cloning your project or viewing your website.
ImageMagick is a tool to resize, convert or compress images. You can do all sorts of things with it. But right now we will be using it to compress images. So other people don't have to download hunderds of megabytes when cloning your project or viewing your website. Using this is also way faster than opening photoshop for every image you make.
## How do I install it?
ImageMagick can be installed on arch based systems using:
@@ -27,7 +27,17 @@ Same as above but resizes the image to 800 width and keeps the aspect ratio.
magick source.jpg -strip -interlace Plane -gaussian-blur 0.05 -quality 85% -resize 800x result.jpg
```
### How to make a image smaller
```bash
convert input.jpg -resize 20% small.jpg
```
Where 20% is placed you could also place anything else, For example 800x800 or just 800x then it will keep the aspect ratio.
## Rules for uploading images to git
Use jpg's instead of png. Jpg's are compressed and way smaller. Try to keep images under 200 kilobytes.
## Sources
* [installing ImageMagick](https://imagemagick.org/script/download.php)
* [command source](https://stackoverflow.com/questions/7261855/recommendation-for-compressing-jpg-files-with-imagemagick)
* [image resizing](https://legacy.imagemagick.org/Usage/resize/)

View File

@@ -4,11 +4,13 @@
You need to know these commands if you wanna navigate a Unix like system like linux or macOS in the terminal. The terminal is used a lot for git so knowing these commands is a must.
## Commands
| Command | Description |
| --------- | ------------------------------------- |
| cat | read a file and output it to terminal |
| cd | change directory |
| ls | view all files in the current folder |
| ls -la | same as ls but also view hidden files |
| rm <file> | remove a file |
| Command | Description |
| --------- | -------------------------------------------------------------------------------------- |
| cat | read a file and output it to terminal |
| cd | change directory |
| ls | view all files in the current folder |
| ls -la | same as ls but also view hidden files |
| rm <file> | remove a file |
| ls -altr | give a list of files in order of time and reversed so the latest file is at the bottom |
| | |

View File

@@ -1,4 +1,4 @@
# CAD
# CAD Lecture notes Thursday
## What is cad software and why do we need it so much?
CAD stands for Computer aided design. It's one of the core programs used to make stuff. There are all sorts of flavours of cad software. Some are designed for general purpose design and some for industrial design.
@@ -142,7 +142,7 @@ Up here you can edit the select modes. You can select Points, Lines and Surfaces
In the top right there is a project management tab where you can manage all your projects. ![alt text](../../assets/assets_week_2/image--0.jpg)
When you import parts from other files you can change the imported files and then you can update it in the other designs.
Don't forget to label your parts.
Don't forget to label your parts. Dont join everything into one body
### Modeling
Best way to start a design is to start with a sketch. After you've clicked the sketch button you can select a plane. The best plane to start with is the bottom plane

View File

@@ -1,4 +1,4 @@
# Lecture notes
# Lecture notes Wednesday
## Notes regional
Parametic design - scalable objects (so that if you change one parameter everything changes with it)
@@ -47,4 +47,15 @@ ffmpeg -i input_video -vcodec libx264 -crf 25 -preset medium -vf scale=-2:1080 -
#### Next week
* next week paramemtric press fit construction kit.
* focus on constrains and parametric
* focus on constrains and parametric
## Regional Day 2
12 uur blender
2 uur fusion
daarna ffmpeg imagemagick
model project in few different programs