lerner
Posts: 526
Joined: Sun Mar 29, 2015 12:12 am

Picture resizing - help.

Wed Sep 28, 2016 1:23 am

Doing a search for:
resize images site:raspberrypi.org yields more about IMAGE size rather than picture.
Likewise with picture resizing.

Like most people I have a digital camera.
When I need to send pictures to someone else - only for reference purposes - it is pointless and somewhat wasteful sending a 5 meg file.

How can I size reduce picture on a Pi?

Short of loading each in a viewer and screen grabbing, I can't work out how to do it.

Please, someone.

klricks
Posts: 7154
Joined: Sat Jan 12, 2013 3:01 am
Location: Grants Pass, OR, USA
Contact: Website

Re: Picture resizing - help.

Wed Sep 28, 2016 3:48 am

If you are looking for full featured image manipulation/paint program then you could try Gimp.

Code: Select all

sudo apt-get update
sudo apt-get install gimp
There are quite a few other packages available. You might want to have a search through the repository and see what else there is.
Unless specified otherwise my response is based on the latest and fully updated RPiOS Buster w/ Desktop OS.

User avatar
rpdom
Posts: 17172
Joined: Sun May 06, 2012 5:17 am
Location: Chelmsford, Essex, UK

Re: Picture resizing - help.

Wed Sep 28, 2016 4:30 am

If you want to script the command or use the command line, then the "convert" command from the imagemagick package will do the job of resizing, rescaling, recompressing etc.

enik1
Posts: 6
Joined: Tue Sep 27, 2016 8:26 am

Re: Picture resizing - help.

Wed Sep 28, 2016 6:21 am

Install imagemagick:

Code: Select all

sudo apt-get install imagemagick
Open a terminal and run this command:

Code: Select all

convert  -resize 50% source.png dest.jpg
It will reduce the size by 50%

Enik
AWT and Swing developer
Last edited by enik1 on Fri Nov 18, 2016 6:09 pm, edited 1 time in total.

lerner
Posts: 526
Joined: Sun Mar 29, 2015 12:12 am

Re: Picture resizing - help.

Thu Sep 29, 2016 7:03 am

Thanks for the replies.

I got gimp and imagemagick. I hope they will suffice. (I'm sure they will.)

Return to “Beginners”