LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 02-11-2013, 07:02 AM   #1
Novatian
Member
 
Registered: Feb 2008
Location: Australia
Distribution: Mint 20 KDE and 19 and Android, Windows 10, KDE Neon, Manjaro, Slackware.
Posts: 981

Rep: Reputation: 37
Reducing Image Sizes in Ubuntu Studio


Good day, I am interested in finding out how to reduce 2.5 Mb images even ten at a a time to about 500kb, is there a way?
 
Old 02-11-2013, 07:22 AM   #2
fortran
Member
 
Registered: Nov 2011
Location: Cairo, Egypt
Distribution: CentOS, RHEL, Fedora
Posts: 300
Blog Entries: 2

Rep: Reputation: 51
Its resolution will be higher. Reduce its resolution and size will be reduced automatically.
You can use gimp or kolour paint to reduce the resolution & size.

Last edited by fortran; 02-11-2013 at 07:24 AM.
 
1 members found this post helpful.
Old 02-11-2013, 08:26 AM   #3
yooy
Senior Member
 
Registered: Dec 2009
Posts: 1,387

Rep: Reputation: 174Reputation: 174
If you have multiple images you can use command in imagemagick: that would be something like:


Quote:
find /home/directory_with_images -type f -exec ionice -c3 nice -n 18 convert -normalize -resize 1024 {} \;
 
Old 02-11-2013, 08:16 PM   #4
haertig
Senior Member
 
Registered: Nov 2004
Distribution: Debian, Ubuntu, LinuxMint, Slackware, SysrescueCD, Raspbian, Arch
Posts: 2,285

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
It's a little bit hidden in the above example (if you are a newbie to commandline stuff), but the operative command you should investigate is "convert". Specifically "convert" with the "-resize" option. All that other "find" and "ionice" stuff is great if you understand what they are doing, but they have nothing to do with image resizing.
 
Old 02-12-2013, 12:14 AM   #5
fortran
Member
 
Registered: Nov 2011
Location: Cairo, Egypt
Distribution: CentOS, RHEL, Fedora
Posts: 300
Blog Entries: 2

Rep: Reputation: 51
Generally people take images using 5 mega px, 10 mega px or higher mega pixel camera because of this image size is more than 2 MB.
Now when you see the dimension of the image, the width & height is more than 2000 pixels. If you reduce this dimension and make it in the range of 800, the image size is reduced as well as the image does not look stretched or pixelated for normal view (without zoom).

Ex-
if an image has 3457 x 2408(w x h)dimension and 2.2 MB image size, if you make it into 800 x 557 (a normal sufficient view to see an image without zoom), it's size becomes around 500kb.
These are not standard numbers.
This is a just an example.

Last edited by fortran; 02-12-2013 at 12:17 AM.
 
Old 02-12-2013, 02:21 AM   #6
Novatian
Member
 
Registered: Feb 2008
Location: Australia
Distribution: Mint 20 KDE and 19 and Android, Windows 10, KDE Neon, Manjaro, Slackware.
Posts: 981

Original Poster
Rep: Reputation: 37
Thanks, I reduced one in GIMP. Scaling it down. In the future good to learn how to do ten at a time.
 
Old 02-12-2013, 11:50 AM   #7
haertig
Senior Member
 
Registered: Nov 2004
Distribution: Debian, Ubuntu, LinuxMint, Slackware, SysrescueCD, Raspbian, Arch
Posts: 2,285

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
I always set my point-n-shoots to lower than max resolution. I have a nice little Canon Elph that is 12.1 megapixels. Although it's a nice camera, it is nowhere near the quality required to make use of 12 megapixels. The lens isn't outstanding nor is it useful to put 12 megapixels onto a itty bitty sensor like these point-n-shoots have. High pixel counts are just marketing foolishness to make you think the cameras are better than they really are. Much more important is the size and quality of the sensor, not how many pixels they managed to cram onto the thing.

Reduce the image size before the camera takes the picture in the first place, and then you don't have to mess with ridiculously large photos on your computer. Of course, if you have a professional level camera that CAN make use of high pixel counts, the above advice doesn't apply.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
[SOLVED] Video - Studio 13.37 vs KXStudio, AV Linux, Dream Studio, and Ubuntu Studio l0wt3ch Studio 13.37 1 12-05-2012 08:45 PM
[SOLVED] Problem reducing size for CF Card image using USB PrayingMantis Linux - Embedded & Single-board computer 4 11-23-2011 10:22 AM
LXer: Judgement Day: Studio Dave Tests Ubuntu Studio 9.04 LXer Syndicated Linux News 0 06-05-2009 08:01 PM
Setting up a home studio - Ubuntu Studio vs. JAD yezu Linux - Distributions 3 07-30-2008 01:40 AM

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

All times are GMT -5. The time now is 04:29 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