Signup/Sign In
Ask Question
Not satisfied by the Answer? Still looking for a better solution?

How to resize a PNG file from the command line?

Suppose I have a image named 1.png which is currently
500px : height
1000px : width


I want to resize it to:
50px : height
100px : width


It must be output in PNG format, not JPG. An example would be highly appreciated.
by

1 Answer

Kajalsi45d
Use Imagemagick for this.

Read the man page for correct use but it should work by passing parameters, something like
convert 1.png -resize 50x100 1-resized.png

Login / Signup to Answer the Question.