LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-03-2020, 03:59 PM   #1
borgward
Member
 
Registered: Apr 2005
Location: Austin, Texas
Distribution: Feather, Darn Small Linux
Posts: 504

Rep: Reputation: 21
Reduce File Size


What do I use to reduce a 1.9 MB .jpg to fewer MB so I can attach it to a Forum reply?

Was told Gimp, but don't see how. For sound I use Sound Converter which easily reduces a .wav so I can send it in an attachment or email.
 
Old 11-03-2020, 04:04 PM   #2
obobskivich
Member
 
Registered: Jun 2020
Posts: 596

Rep: Reputation: Disabled
In GIMP:

File -> Export As... -> Give the file name a. jpg extension if it does not already have one -> Select some lower quality level (which will apply more compression). You will probably have to play with this to get to whatever arbitrary size you need. If that isn't making it small enough, or there are dimension limits, BEFORE you export, go to:

Image -> Scale Image... -> Plug in some smaller resolution (by default it will maintain aspect ratio - so type in the Width (X) dimension and click into the Height (Y) dimension and it will auto-adjust to whatever the proper AR is. This should default to pixels (px) but you can switch to percent (%) which is relative to the original, so if your original image was 1000x1000 you could select 25% and get 250x250 out, for example. After doing this see above for how to export with more compression.
 
Old 11-03-2020, 04:07 PM   #3
scasey
LQ Veteran
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.9.2009
Posts: 5,727

Rep: Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211
F1 is help.
Image Menu -> canvas size or print size or scale image
Each of those dialogs has a help button, too.
 
Old 11-03-2020, 05:40 PM   #4
GPGAgent
Senior Member
 
Registered: Oct 2018
Location: Surrey UK
Distribution: Mint 20 xfce 64bit
Posts: 1,026
Blog Entries: 3

Rep: Reputation: 133Reputation: 133
I'd use convert - part of ImageMagick

https://imagemagick.org
 
Old 11-03-2020, 06:34 PM   #5
Soadyheid
Senior Member
 
Registered: Aug 2010
Location: Near Edinburgh, Scotland
Distribution: Cinnamon Mint 20.1 (Laptop) and 20.2 (Desktop)
Posts: 1,672

Rep: Reputation: 486Reputation: 486Reputation: 486Reputation: 486Reputation: 486
Using Gimp, after loading the image, I usually go to Image > Scale Image then change the image size from px (pixels) to inches (Yup! I'm old and still do stuff with imperial units, though not all the time.) I then change the smallest of width or height to 4 inches and click on the other dimension which automatically resizes. Then hit the scale button.
Now I go to the file menu and select Overwrite <whatever the file was called>.jpg
The Overwrite will append the correct file type suffix. Then just attach the file to your email and you're done!

Play Bonny!

 
Old 11-04-2020, 01:22 AM   #6
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by borgward View Post
What do I use to reduce a 1.9 MB .jpg to fewer MB so I can attach it to a Forum reply?
So to less than 1MB?
Do you want to reduce the resolution or just the quality? That's the crucial question.
Both is possible with GIMP when you export the image.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Need to reduce the size of a dd image file to fit onto a new smaller SSD drive bunchdaddy Linux - Desktop 3 10-06-2012 01:51 PM
How to reduce the size of a file? abhinav4 Linux - Newbie 12 11-02-2010 05:48 AM
How to reduce video file size? leosgb Linux - General 9 06-15-2007 12:43 PM
any ideas to reduce log file size or make log file size managed? George2 Programming 2 08-13-2006 06:55 AM
How to reduce voice-audio file size? WindowBreaker Slackware 9 02-04-2006 09:09 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:47 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration