pa_make_new_image (public)

 pa_make_new_image base_image new_image geometry

Defined in packages/photo-album/tcl/photo-album-procs.tcl

Uses ImageMagick program to create a file named new_image from base_image that fits within a box defined by geometry. If geometry is just a number it will be used for both width and height. ImageMagick will retain the aspect ratio of the base_image when creating the new_image jhead -dt is called to delete any embedded thumbnail since digital camera thumbnails can be quite large and imagemagick does not remove them when converting (so thumbnails can end up being 8k for the thumbnail + 32k for the embedded thumbnail).

Parameters:
base_image (required)
original image filename
new_image (required)
new image filename
geometry (required)
string as passed to convert

Partial Call Graph (max 5 caller/called nodes):
%3 pa_load_images pa_load_images (public) pa_make_new_image pa_make_new_image pa_load_images->pa_make_new_image parameter::get parameter::get (public) pa_make_new_image->parameter::get

Testcases:
No testcase defined.
[ show source ]
Show another procedure: