Make a panel
montage -label %f -geometry 400x300+4+4 -tile 2x3 *.jpg output_panel.jpg
This will make a panel (two columns, three rows) where each image is 400x300pxs big with 4 pxs spacing in horizontal and vertical axis, name of each file will be under the image
Resize/transform images
Bit depth
convert -depth 8
converts to 8 bit depth
Rotate
convert -rotate 90
rotates 90dg clockwise
get a crop of images from the center
for img in img1.jpg img2.jpg img3.jpg img4.jpg; do
convert "$img" -gravity center -crop 300x300+0+0 +repage "cropped_$img"
done
Crop to fit 1920 to 1080 no distortion
magick mogrify -path output -resize 1920x1080^ -gravity center -extent 1920x1080 *.jpg
- path output → saves processed images in a new folder called output
- resize 1920x1080^ → scales so the shorter side matches 1080p, without stretching
- gravity center -extent 1920x1080 → crops excess from the center so every image is exactly 1920×1080
Converting rgb tif files to cmyk files
Looks power point is not able to export tiff into CMYK, only RGB
For this process it is important to have the files which define the colour spaces(?)
for file in *.TIF; do convert "$file" -profile sRGB_v4_ICC_preference.icc -profile APTEC_PC11_CCNB_2023_v1.icc -density 300 -resize 2550x3300 CMYK_"${file/.TIF/.tiff}"; done
Parameters:
-density 300pixels per inch-resize 2550x3300scale to A4 with a 300 pixels per inch density
Resources
Profile files:
Link to the icc color website link to icc