README.md 1.13 KB
Newer Older
Arnaud Blanchard's avatar
Arnaud Blanchard committed
1
2
3
4
5
png
===

Saves and loads png images.

Arnaud Blanchard's avatar
Arnaud Blanchard committed
6
7
8
Install
=======

Arnaud Blanchard's avatar
Arnaud Blanchard committed
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
- Mac OSX: brew install libpng
- Ubuntu: sudo apt-get install libpng-dev

Usage
=====

Loading png files
-------------------

`i_pngfile toto.png | o_gtk_image` loads the png toto.png and displays it.

You can load a lot of images by specifying the number of image to load with -n3.
Then define the filename like with printf format.

Example loading toto0.png, toto1.png, toto2.png: `i_pngfile toto%d.png -n3 | o_gtk_image`

It reads at the speed of the reader. 
Arnaud Blanchard's avatar
Arnaud Blanchard committed
26

Arnaud Blanchard's avatar
Arnaud Blanchard committed
27
28
29
30
31
You may specify the time between each image with `-p`.
Use -p33 to simulate a framerate of 30FPS. 
   
Saving images in png
--------------------
Arnaud Blanchard's avatar
Arnaud Blanchard committed
32

Arnaud Blanchard's avatar
Arnaud Blanchard committed
33
`i_image.sh | o_pngfile toto.png` save the image from your webcam in toto.png.
Arnaud Blanchard's avatar
Arnaud Blanchard committed
34

Arnaud Blanchard's avatar
Arnaud Blanchard committed
35
36
- Note 1: your webcam may be slow to start and having a black image at first. You can save 3 the third image with option -n3. 
- Note 2: depending on your camera property, the format may not be recognized by the libpng you can convert it with for example in black and white with -fY800. It may not be recognise at all by i_image.sh.
Arnaud Blanchard's avatar
Arnaud Blanchard committed
37

Arnaud Blanchard's avatar
Arnaud Blanchard committed
38
Like for reading, you can save many images with -n and a specific file format.
Arnaud Blanchard's avatar
Arnaud Blanchard committed
39