Search This Blog

Wednesday 5 December 2012

Useful Linux commands for a blogger

Sometimes you make screenshots for your posts, then you cut them at best, then you want the same size for all of them.

Nothing could be simpler with linux, open a terminal, go in the folder with the screenshots and launch this command:
mogrify -resize 550 *.png                                                                                     

All the images in the dir will be resized at 550px width.

NB: you must have installed before the suite imagemagick (just write in the terminal  sudo apt-get install imagemagick).

Sometimes you want to publish a flyer, but you have only the pdf, so you can convert it in a *.png image with a simple command:

convert my_flyer.pdf new_flyer.png                                                                    


Linux is simple!