HTML is a file format that needs no introduction. For editing HTML on Linux, the tool of choice is (in our view) emacs with one of its HTML modes.

There are also the quanta and bluefish HTML editors and the Mozilla composer, as well as HTML export in

The tool tidy checks HTML for validity based on its DOCTYPE declaration.

If you need to extract just the text from web pages or local HTML files, one way to consider is using the lynx (text-based) browser with the -dump option:

[email protected]:~> lynx -dump > lwn.txt Graphics Formats

The graphics viewers and editors in SUSE can cope with a very large number of different graphics file formats. Pretty much any graphics file that you come across can be handled by GIMP (which should be your first choice if you need to edit a graphics file).

An occasionally useful feature of GIMP is that it can convert a PostScript file to a graphics format, and more generally it can convert between the whole range of formats that it understands.

The ImageMagick package contains command-line tools for working on graphical files, and in particular for resizing images and converting from one format to another. If, for example, you need to convert a large number of files from one format to another, or create custom-sized thumbnail images from a large number of images, a simple script using the convert command from ImageMagick is the way to go.

For example, to create a 150 x 150 pixel thumbnail of all .jpg files in the current directory, this one-line shell command will work:

for i in *.jpg; do convert -resize 150x150 $i ${i%.jpg}.thumb.jpg; done

If there was a file picture.jpg present, there will now also be picture.thumb.jpg, with size 150 x 150 pixels.

Was this article helpful?

0 0

Post a comment