Page 1 of 1

Picture resizing - help.

Posted: Wed Sep 28, 2016 1:23 am
by lerner
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.

Re: Picture resizing - help.

Posted: Wed Sep 28, 2016 3:48 am
by klricks
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.

Re: Picture resizing - help.

Posted: Wed Sep 28, 2016 4:30 am
by rpdom
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.

Re: Picture resizing - help.

Posted: Wed Sep 28, 2016 6:21 am
by enik1
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

Re: Picture resizing - help.

Posted: Thu Sep 29, 2016 7:03 am
by lerner
Thanks for the replies.

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