Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 29 Jan 2010 18:51:06 +0100
From:      Polytropon <freebsd@edvax.de>
To:        Steven Friedrich <freebsd@insightbb.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: How do I create a 40x40 pixel monochrome mage for KMail?
Message-ID:  <20100129185106.a8256a5e.freebsd@edvax.de>
In-Reply-To: <201001291241.06909.freebsd@insightbb.com>
References:  <201001291241.06909.freebsd@insightbb.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 29 Jan 2010 12:41:06 -0500, Steven Friedrich <freebsd@insightbb.com> wrote:
> I have a webcam, but it won't take  a monochrome picture and it doesn't 
> snapshot all the resolutions that it can display in. In particular, I tried 
> the two lowest and the lowest, sqcif, isn't supported by my webcam and qsif 
> seg faults. Those would have been 128x96 and 160x120.
> 
> I figured that if I used the lowest resolution, I could crop out a 40x40 
> image.

You can use ImageMagick's convert command to scale the
image, and turn it into monochrome; see "man convert"
for -resize and -monochrome parameters. It's even possible
to use Gimp for this task. :-)



> Kopete also supports a 200x200 pixel image, but I think it requires exactly 
> 200x200, so 128x96 won't work.

You can use "!" with -resize to force a specific image
size, even if it violates the source picture's aspect
ratio (which -resize usually keeps).



> I thought that someone said they used kamera to take a snapshot with their 
> webcam but Logitech webcams aren't listed.

Maybe you can use gtkam / gphoto2 to talk to the Logitech
camera? I don't own one because I'm familiar with the fact
that they are not standard-compatible and that's why not
supported.



> I can take one with pwcview, which is what I was talking about above.

You can even use a "regular" digital camera to take the
photo, transfer it from the camera (or its CF or SD storage)
and then postprocess it with ImageMagick.


-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20100129185106.a8256a5e.freebsd>