Create a tiled image with ImageMagick on Linux.

Creating a tiled image on Linux with the command line is very easy to do. This command will take the pyramid.bmp file and tile it as a 3440×1440 widescreen image. ┌─[jason@jason-desktop]─[~/Pictures/Windows/bitmaps] └──╼ $convert -size 3440×1440 tile:pyramid.bmp Tiles.jpg┌─[jason@jason-desktop]─[~/Pictures/Windows/bitmaps] └──╼ $convert -size 3440×1440 tile:pyramid.bmp Tiles.jpg This example will create a massive 7680×2160 pixel image. ┌─[jason@jason-desktop]─[~/Pictures/Windows/bitmaps] └──╼ $convert … Read more

How to place a watermark in the corner of an image with ImageMagick.

ImageMagick(1) can be used to put a watermark on an image easily. The command below will place a TV styled watermark on an image in the lower left corner. This is very useful to watermark images you place on the Internet. convert pripyat.jpg ABCTV2005.png -gravity southeast -composite output.pngconvert pripyat.jpg ABCTV2005.png -gravity southeast -composite output.png The … Read more

Image manipulation with the Linux shell.

Emulate a Polaroid photo with the imagemagik package on Linux. convert lifeinCanberra_bg.jpg -polaroid 0 house.jpgconvert lifeinCanberra_bg.jpg -polaroid 0 house.jpg This is the original image. https://www.asis.gov.au/media/Images/Rebrand/lifeinCanberra_bg.jpg. And this is the image after manipulation. Double the size of an image, while retaining relatively good image quality. convert missile.jpg -magnify missilebig.jpgconvert missile.jpg -magnify missilebig.jpg Take a screenshot of … Read more

Rip the audio from a video file the easy way with mplayer and convert it to an OGG file.

This post will show how to rip the audio from a video file to a wav and then convert that to an ogg file. This is very simple and easy to do. This long command will rip the audio from the file and save it in the out.wav file. localhost% mplayer -ao pcm:fast:file=out.wav -vo null … Read more

How to convert a jpg image to ASCII using the Linux command line.

The jp2a package for Ubuntu will convert a jpeg image into an ascii text representation. This is useful for creating useful ascii images to post on the Internet. Install it by typing: sudo apt-get install jp2a and then convert an image this way. ~$ jp2a myimage.jpg~$ jp2a myimage.jpg This will output ascii text to the … Read more

How to convert a midi file to Ogg or FLAC with Timidity.

This is how to use Timidity to convert a MIDI file into an Ogg Vorbis audio file. This is very useful for playing them with Banshee or Audacious. [homer@localhost Documents]$ timidity sound009.mid -Ov -o blood009.ogg Playing sound009.mid MIDI file: sound009.mid Format: 1 Tracks: 10 Divisions: 480 Sequence: Seq-1 Track name: Track-5 Track name: Track-7 Track … Read more

Converting IP addresses from decimal to binary with pen and paper. The old fashioned way.

One important skill in computer networking is converting an IP address to binary from decimal. Here is an example. 172.124.64.2 This IP address converts into this binary number. 10101100.01111100.01000000.00000010 The way I find is the easiest with pen and paper is to write down this number sequence. 128 – 64 – 32 – 16 – … Read more

Using the Linux rename command and other useful commands for Linux Mint 13.

The rename command for the Linux shell allows you to rename a directory full of files en-mass. This first example, based on the examples in the rename manual page. Firstly renaming a directory full of xhtml files to the html extension. rename ‘s/\.xhtml$/.html/’ *.xhtmlrename ‘s/\.xhtml$/.html/’ *.xhtml And renaming a folder full of Jpeg files with … Read more