• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
Source Digit

Source Digit

Linux, Ubuntu Tutorials & News, Technology, Gadgets & Gizmos

  • Home
  • How To
  • Ubuntu
  • Instagram
  • Blogging
  • Android
  • WordPress
  • +More
    • Cloud Computing
    • Gadgets
    • Social Media
    • Technology
  • Write for Us
Home / Ubuntu / How To Reduce Image Size In Linux Without Losing Quality

How To Reduce Image Size In Linux Without Losing Quality

By Sourabh / November 16, 2023 Category: How To, Ubuntu

How to reduce image size in Linux command line without losing quality. On Ubuntu, users can reduce image file size via command line using convert command.

Installing ImageMagick

Run the following commands in terminal to install ImageMagick on Ubuntu via Appimage:

$ wget https://download.imagemagick.org/ImageMagick/download/binaries/magick
$ chmod +x magick
$ sudo mv magick /usr/bin/
$ ./magick

Using Convert Command

The convert command can convert between image formats as well as resize an image, blur, crop, despeckle, dither, draw on, flip, join, re-sample, and much more.

The convert program is a member of the ImageMagick suite of tools. The command can be use used to convert between image formats as well as resize an image, blur, crop, despeckle, dither, draw on, flip, join, re-sample, and much more.

Using Convert Command

Syntax of the convert command is:

convert [input-option] input-file [output-option] output-file

If you wish to resize an image named Image1 to Image2 with a file esolution of 1200×1000, run the following command:

convert -resize 1200x1000 Image1.jpg Image2.jpg

Similarly you can also reduce the image size by percentage. For example if you wish to resize rose.jpg by 50% and create a new file with rose.png, run the following command:

magick rose.jpg -resize 50% rose.png

NOTE: The above command will convert the image file in the JPEG format to PNG.

You can read more about the command here.

Primary Sidebar

Latest Posts

Delete Directory And Contents Recursively Without Prompt On Linux

Check User Login History In Ubuntu Linux Command Line

Use Locate Command To Find File In Linux Terminal By Name

How To Change Terminal Color In Ubuntu Command Line

How To Run Fsck Manually In Linux To Fix Unexpected Inconsistency

How To Fix Broken Packages On Ubuntu From Terminal

Re Execute The Previous Command In Linux Ubuntu Command Line

How Much RAM Is Needed For Ubuntu PC

How To Find Large Files And Directories In Linux Command Line

How To Use Clear Command History In Linux Terminal

© 2026 Source Digit • Linux, Ubuntu Tutorials & News, Technology, Gadgets & Gizmos

  • Home
  • About
  • Privacy Policy
  • Terms & Conditions
  • Contact Us
  • Sitemap