4

I'm tring to use builtin webcam from my laptop to capture image. Currently I'm using cheese. I know vlc will do the job but I wonder if cheese can do this.

I haven't found any option to change saving image format, both in preference or cheese config file. How can I save image with image formats with low data loss, such as .bmp or .png

vicky Lin
  • 53
  • 7

2 Answers2

1

cheese apparently can't do this in the current version.

The source code looks as if the file extension '.jpg' is hard-coded.

So if you want to change that, you could start with an issue at https://gitlab.gnome.org/GNOME/cheese/-/issues. And if you know C, then you could even provide a merge request there.

However, there are other programs that take snapshots in lossless formats and can be used from the command line interface, e.g. gucview:

guvcview -i my_image1.png -g none -e -t 1 -n 1

This creates a single snapshot (see guvcview --help for details).

According to another stackoverflow thread, vlc can also be used from the command line:

vlc -I dummy v4l2:///dev/video0 --video-filter scene --no-audio --scene-path /tmp --scene-prefix image_prefix --scene-format png vlc://quit --run-time=1

seems to save many snapshots until you abort the process with ctrl-c. (The last two params seem to be ignored in my system.)

-2

Saving Image Files to Another Format

LibreOffice Draw will open: BMP, EMF, GIF, JPEG, PCX, PGM, PMB, PNG, PPM, PSD, RAS, SVG, TIFF, TGA, WMF, ETC

LibreOffice Draw will export: BMP, EMF, EPS, GIF, JPEG, PNG, SVG, TIFF AND WMF.

LibreOffice Draw will provide options when exporting such as Size, Resolution, Color Depth, Quality and will tell you the file size.

LibreOffice Draw comes packaged with Ubuntu.

C.S.Cameron
  • 20,530
  • 12
  • 78
  • 125