create_thumbnail
This code is a demo, of this site's code submission feature, which I am using in a job interview
Interface
#include <codecogs/image_processing/create_thumbnail.h>
using namespace Image_Processing;
using namespace std;using namespace Magick;void dump( stringmap m )void strip_text_delims( string *const line )void read_item_key( string *const item, string *const key, stringmap *const m )void read_item_val( string *const item, string *const key, const int idx, stringmap *const m )void read_line( string *const line, stringmap *const m )void read_mfg_thumb_sizes( const char* filename, stringmap *const m )int main( int argc, const char* argv[] )
Overview
This file contains the various definitions and functions which are needed to resize an image using the local system's installation of ImageMagick.
DECLARATION
std
If you're writing C++ you really should know what this does.
Vince Cole (June 2009)
DECLARATION
Magick
this namespace contains all the ImageMagick++ API functions
Vince Cole (June 2009)
FUNCTION
dump
Parameters
Vince Cole (June 2009)
FUNCTION
strip_text_delims
cuts out all occurrences of the text delimiter, defined as the constant TEXT_DELIM, from the given string and returns it by reference
Parameters
Vince Cole (June 2009)
FUNCTION
read_item_key
Parameters
Vince Cole (June 2009)
FUNCTION
read_item_val
Parameters
Vince Cole (June 2009)
FUNCTION
read_line
Parameters
Vince Cole (June 2009)
FUNCTION
read_mfg_thumb_sizes
Parameters
Vince Cole (June 2009)
FUNCTION
main
this program accepts input from the command line, for resizing an image, and resizes it
Parameters
Returns
Vince Cole (June 2009)