The reality is that we are learning both for the certification but also our own benefit. We can make use of these tools both at home and in the work place and at the fraction of the cost of other tools.
To install ImageMagick on the Raspberry Pi
sudo apt-get update
sudo apt-get install imagemagick
If you have a PNG format image that you want to convert to JPEG; this can be achieved from the command line:
convert file.png file.jpeg
To resize an image to 150 pixels wide and have the height is adjusted to scale
convert file.png -resize 150 150-file.png
To resize image to 150 pixel high and allowing width to scale accordingly:
convert file.png -resize x150 150-file.png
This of course can be part of a batch process making this very powerful working with images you select:
for p in *.png ; do
convert "$p" -resize 150 150-"$p"
done
Take the time to watch the video and find out more.
0 comments:
Post a Comment