[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Gnumed-devel] placeholder <patient_photo>
From: |
Karsten Hilbert |
Subject: |
Re: [Gnumed-devel] placeholder <patient_photo> |
Date: |
Thu, 2 Aug 2012 16:42:46 +0200 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
On Thu, Aug 02, 2012 at 04:36:27PM +0200, Karsten Hilbert wrote:
> I have enhanced the patient_photo placeholder thusly:
>
> u'patient_photo', # args:
> <template>//<target mime type>//<optional target extension>
>
> # returns full path to an exported copy of the
>
> # image rather than the image data itself,
>
> # returns u'' if no mugshot available,
>
> # template: string template for outputting the path
>
> # target mime type: a mime type into which to convert the image
The target mime type is optional, too.
>
> # target extension: target file name extension, derived from
> target mime type if not given
>
> such that proper placeholder instances will look like this:
>
>
> $<patient_photo::\includegraphics[width=30mm]{%s}//image/png//.png::250>$
I should add that no conversion is attempted if the target
mime type is not given.
Karsten
--
GPG key ID E4071346 @ gpg-keyserver.de
E167 67FD A291 2BEA 73BD 4537 78B9 A9F9 E407 1346