How do I create a 40x40 pixel monochrome mage for KMail?

2010-01-29 Thread Steven Friedrich
I've noticed that several apps support images of the user, such as KMail, 
which supports a 40x40 pixel jpeg.

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.

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

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

I can take one with pwcview, which is what I was talking about above.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: How do I create a 40x40 pixel monochrome mage for KMail?

2010-01-29 Thread Polytropon
On Fri, 29 Jan 2010 12:41:06 -0500, Steven Friedrich free...@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, ...
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: How do I create a 40x40 pixel monochrome mage for KMail?

2010-01-29 Thread Chuck Swiger
On Jan 29, 2010, at 9:41 AM, Steven Friedrich wrote:
 I've noticed that several apps support images of the user, such as KMail, 
 which supports a 40x40 pixel jpeg.
 
 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.

Take a bigger image, convert it to greyscale, resize it down to the size you 
want.  You could most easily do this with Photoshop, IrfanView, GIMP, 
ImageMagick, etc, but something like graphics/netpbm will work even on the 
FreeBSD command line

Regards,
-- 
-Chuck

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org