LinuxGraphics

From TheBestLinux.com
Revision as of 22:09, 16 April 2025 by Jamie (talk | contribs) (Created page with "= '''Graphics, Images & Video Creation & Modification, and All Things Related to Visual Graphics of All Kinds''' = == '''Image Creation & Editing - 2 Dimensional Graphical Ima...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Graphics, Images & Video Creation & Modification, and All Things Related to Visual Graphics of All Kinds

Image Creation & Editing - 2 Dimensional Graphical Images

Modifying Images from the Command Line

There are many very powerful command-line tools available to edit and otherwise modify all types of image file formats, but if I were to have to pick the all-time best, most powerful and useful set of graphical image manipulation tools in my own personal opinion is ImageMagick, with it's super-powerful tool "convert"! Sure, there are many other similar tools available, but I have yet to find one that supports as many different file formats, and is as fast and efficient as the "convert" command is!

Here is an example of a one-liner to convert every .png photo file, commonly the default for most Linux-based graphical tools such as screenshot tools. This one command will create an identical image file, only in the .jpg(JPEG) file format:

bash -c 'for pic in *.png; do convert "$pic" "${pic%.png}.jpg"; echo "Pic $pic has been converted to ${pic%.png}.jpg "; done'