Overview for images-processing

How to list image files with size in pixels in Solus?

If you have a folder and want to list all files with their size in pixels, you can use identify tool, which is part of ImageMagick set of tools (read: How to install ImageMagick in Solus).

$ identify *.png

output:

infiniteuniverse.jpg JPEG 225x225 225x225+0+0 8-bit sRGB 6417B 0.000u 0:00.000
maxresdefault.jpg JPEG 1280x720 1280x720+0+0 8-bit sRGB 296187B 0.000u 0:00.000
Universe-Expansion.jpg JPEG 2000x1333 2000x1333+0+0 8-bit sRGB 260684B 0.000u 0:00.000
univ_hubble.jpg JPEG 275x183 275x183+0+0 8-bit Gray 256c 10106B 0.000u 0:00.000

Read more

Written by Administrator on Sunday April 26, 2020

How to bulk convert .jpg to .png (and vice versa) in Solus Linux?

Conversion between different image formats in Solus is very simple and fast, when you have ImageMagick tools installed. One of these tools is mogrify. It has a vast set of functionality, but now we need only image conversion.

To convert image in one format to another you need to use flag -format and then provide the name of the orginial file and the name of the converted one:

$ magick mogrify -format image1.jpg image1.png

But this example of convertng only one file. In case we need to convert all images in folder of certain format, (bulk conversion) we can use a mask:

Read more

Written by Administrator on Sunday April 26, 2020