You are not logged in.

#1 2008-05-08 15:19:37

tony5429
Member
Registered: 2006-03-28
Posts: 1,017

[SOLVED] Resize a JPG image

I would like to resize a jpg image to be 200 px wide but keep the original aspect ratio. If possible, i would like to use a cubic sampling algorith. How can I do this in command-line? I need something like...

rescale img.jpg -width 200 -cubic

Can anyone help me?

Last edited by tony5429 (2008-05-08 16:56:57)

Offline

#2 2008-05-08 15:22:58

marxav
Member
From: Gatineau, PQ, Canada
Registered: 2006-09-24
Posts: 386

Re: [SOLVED] Resize a JPG image

Offline

#3 2008-05-08 15:36:43

peart
Member
From: Kanuckistan
Registered: 2003-07-28
Posts: 510

Re: [SOLVED] Resize a JPG image

Hello,

convert will do it.  The doc is at the url supplied by marxav.

convert -filter Cubic -resize 200 old.jpg new.jpg

Offline

#4 2008-05-08 16:56:40

tony5429
Member
Registered: 2006-03-28
Posts: 1,017

Re: [SOLVED] Resize a JPG image

Thank you very much! That is exactly what I needed!

Offline

Board footer

Powered by FluxBB