On Thu, Mar 18, 2010 at 07:02:24PM +0530, Jos Collin wrote:
> On Thu, Mar 18, 2010 at 06:48:04PM +0530, Jos Collin wrote:
> > On Thu, Mar 18, 2010 at 06:31:53PM +0530, sanalkumar mr wrote:
> > > Dear all......I' ve to convert a passport size photo to stamp size. I 
> > > tried
> > > $ convert -resize 51x37 sanal.jpg san.JPEG
> > > giving a low quality image.Any option to get a good quality image...?
> > > And the properties of the input image is given below
> > > $ identify sanal.jpg
> > > sanal.jpg JPEG 260x300 260x300+0+0 DirectClass 8-bit 35.0488kb
> > > I also tried GIMP that also was in vain.Thanks in advance....Sanalkumar
> > > --
> > 
> > Hello Sir,
> > 
> > I believe that the option -quality is what you need.
> > $convert -resize 51x37 -quality 80% sanal.jpg san.JPEG
> > This will retain 80% picture quality.
> > 
> 
> I'm sorry. I don't know whether -quality will increase or decrease the
> compression level. I think by adjusting the value (percentage) you can
> solve your problem.
> 

I have verified that the following gives the maximum picture quality.
$convert -resize 51x37 -quality 100% sanal.jpg san.JPEG

_______________________________________________
Indian Libre User Group Cochin Mailing List
http://www.ilug-cochin.org/mailing-list/
http://mail.ilug-cochin.org/mailman/listinfo/mailinglist_ilug-cochin.org
#[email protected]

Reply via email to