Leptonica  1.54
Файл src/viewfiles.c
#include <string.h>
#include "allheaders.h"

Макросы

#define L_BUF_SIZE   512

Функции

l_int32 pixHtmlViewer (const char *dirin, const char *dirout, const char *rootname, l_int32 thumbwidth, l_int32 viewwidth, l_int32 copyorig)

Переменные

static const l_int32 DEFAULT_THUMB_WIDTH = 120
static const l_int32 DEFAULT_VIEW_WIDTH = 800
static const l_int32 MIN_THUMB_WIDTH = 50
static const l_int32 MIN_VIEW_WIDTH = 300

Макросы

#define L_BUF_SIZE   512

Функции

l_int32 pixHtmlViewer ( const char *  dirin,
const char *  dirout,
const char *  rootname,
l_int32  thumbwidth,
l_int32  viewwidth,
l_int32  copyorig 
)

pixHtmlViewer()

Input: dirin: directory of input image files dirout: directory for output files rootname: root name for output files thumbwidth: width of thumb images (in pixels; use 0 for default) viewwidth: maximum width of view images (no up-scaling) (in pixels; use 0 for default) copyorig: 1 to copy originals to dirout; 0 otherwise Return: 0 if OK; 1 on error

Notes: (1) The thumb and view reduced images are generated, along with two html files: <rootname>.html and <rootname>-links.html (2) The thumb and view files are named <rootname>_thumb_xxx.jpg <rootname>_view_xxx.jpg With this naming scheme, any number of input directories of images can be processed into views and thumbs and placed in the same output directory.


Переменные

const l_int32 DEFAULT_THUMB_WIDTH = 120 [static]
const l_int32 DEFAULT_VIEW_WIDTH = 800 [static]
const l_int32 MIN_THUMB_WIDTH = 50 [static]
const l_int32 MIN_VIEW_WIDTH = 300 [static]