[Zope] a win for structured text

Jerome Alet alet@librelogiciel.com
Fri, 24 May 2002 18:52:25 +0200


On Fri, May 24, 2002 at 06:42:25PM +0200, Tom Deprez wrote:
> 
> Did you made a certain interface to do it automatically? ie making of
> thumbnails?

of course.

get gen3img at :

	http://cortex.unice.fr/~jerome/gen3img/

it's two years old now and I haven't used it for a long time,
but it should solve your problems easily, here are the available 
command line options :

You can get gen3img's help typing:

		gen3img --help

	but here are the available options:

	-c | --comment com	embed the comment in all generated graphic
				files.

	-d | --destination dir	put all files in the destination directory
				which is created if it doesn't exist.

	-f | --format ext	save images to format ext (default is jpeg).

	-g | --geometry geom	generate only the specified sizes with the
				specified geometry,
				e.g.: "s640>x480>:m800x600:n" will generate
				the small images in 640x480 (at most), the
				medium sized ones in 800x600 and the normal
				ones with their default dimensions.
					default dimensions are:
						small  : 150>x150>
medium : 300>x300>
normal : actual dimensions
				each geom parameter after the size letter
				must have a format accepted by ImageMagick's
				convert command (man ImageMagick will help).
				Don't forget to include the geom parameter
				between double quotes if you plan to use
				either the > or < characters.

	-h | --help		displays this help screen.

	-q | --quality q	percent quality of saved images
				e.g.: s50:m75:n100 is the default, meaning
				use 50 for small size, 75 for midsize, and
				100 for normal
				this may only apply to certain file formats.

	-r | --recurse		recurse subdirectories.

	-s | --silent		do not display anything except error messages.

	-v | --version		displays gen3img's version number.


hth.

Jerome Alet