1. Blog
  2. How to Compress an Image on Ubuntu: Actionable & User-Friendly Ways

How to Compress an Image on Ubuntu: Actionable & User-Friendly Ways

How to Compress an Image on Ubuntu: Actionable & User-Friendly Ways
Get 4K Video Downloader Plus
Download

Compressing images might be useful and even necessary if you're looking to save storage space, reduce load times for websites, or share images more easily—be it through email or social media. Ubuntu, with its powerful command-line tools and user-friendly applications, offers several methods to compress images effectively. Which ones? This is what we’re about to explore.

How to Resize an Image on Ubuntu

Compressing images on Ubuntu can be done in several ways, from using command-line tools like ImageMagick and jpegoptim to user-friendly applications like GIMP or 4K Image Compressor. Depending on your needs, you can choose the method that works best for you. However, we won’t stop at command-line tools as we believe there are better, user-friendlier alternatives. Whether you prefer lossless compression or need to balance quality with file size, Ubuntu has you covered with a variety of tools.

Use 4K Image Compressor & Resize JPEG, PNG, HEIC & WEBP

4K Image Compressor is an easy-to-use desktop application, compatible with Ubuntu as well as Windows and macOS devices. It can compress images and PDF files (even in batches) and convert images into various formats. Let’s see how it works:

  1. Install 4K Image Compressor on your Ubuntu device.

  2. Launch the app.

  1. Choose the Format of the output file.

  2. Select the Optimization type. You can choose Auto, Lossless (unavailable for JPEG compression), and File Size. The latter setting implies that you can compress an image by a certain percentage or a specific amount of MB, KB, or even bytes.

  1. Drag and drop an image and press Compress.

  2. Press Show Comparison to make sure no quality is lost.

  1. Click on the image right in 4K Image Compressor to open the resized file.

Resize an Image on Ubuntu Using GIMP

GIMP (GNU Image Manipulation Program) is a popular open-source image editor that allows you to compress images easily. Here are the steps you should take:

  1. Install GIMP (if not already installed).

  2. Launch GIMP and open the image you want to compress.

  3. Export the image by clicking on File > Export As.

  4. Choose the format (JPEG is commonly used for compression).

  5. Adjust compression:

  • For JPEG, a dialog box will appear where you can adjust the compression level by moving the slider. Lower values mean higher compression and lower quality.

  1. Click Export to save the compressed image.

How to Resize an Image with Krita

Krita is another open-source digital painting application, which also doubles as a powerful photo editor. You can easily use it to resize an image and save it in a web-optimized format. Here’s how to do it in just three simple steps:

  1. Install Krita on your computer.

  2. Go to the File menu and select Open to load your image into Krita.

  3. Find the Image menu and choose Scale Image to New Size.

  4. Enter the desired maximum width or height to resize your image accordingly.

  5. Go to the File menu and select Save As.

  6. Save your image as a WEBP file by simply adding the .webp extension (e.g., myphoto.webp). Krita will automatically save the image in the correct format.

Krita is also available for Windows and macOS.

Use Online Image Compression Tools to Resize Any Image

If you prefer not to install additional software or don’t want to use command-line tools, you can use online image compression tools that work directly in your browser.

  1. Use any browser on your Ubuntu device.

  2. Visit an online compression tool. Websites like TinyPNG or JPEG-Optimizer offer free image compression services.

  3. Upload your image, choose the compression settings, and download the compressed file.

As you can see, there are plenty of ways to make an image smaller, even with no need of using a command-line tool. Instead, you can choose any image editor or a compression solution to resize a file without any significant quality loss or none at all. Our top recommendation: 4K Image Compressor, which is a perfect solution to optimize images in bulk, convert photos to other formats, and simply compress them without any drawbacks.

Read next:  Beat YouTube's Ad Blocker Ban—Try 4K Video Downloader Plus Instead

Leave a comment

close form icon

Thanks for feedback

Your comments will appear here shortly. Please spread the word about us in social networks.

Cookies

For magic to happen, we use cookies. Read our Privacy Policy to learn more.

Necessary

These cookies ensure basic functions such as navigation and authentication. Without them, the website cannot work properly.

Preferences

They enhance your experience by personalizing the site based on your choices, such as your preferred language or region.

Analytics

They provide valuable insights into site traffic, user behavior, and performance, allowing us to make informed improvements.

Marketing

They gather data to provide customized ads. These cookies enable us to present you with relevant and engaging content.