Getting a photo

David Shaw dshaw at jabberwocky.com
Tue Jun 4 06:14:01 CEST 2002


On Mon, Jun 03, 2002 at 11:00:12PM -0400, Gordon Worley wrote:
> 
> On Monday, June 3, 2002, at 05:56  PM, David Shaw wrote:
> 
> >On Sun, Jun 02, 2002 at 03:42:42PM +0200, Marc Mutz wrote:
> >>-----BEGIN PGP SIGNED MESSAGE-----
> >>Hash: SHA1
> >>
> >>On Sunday 02 June 2002 04:55, David Shaw wrote:
> >><snip>
> >>>If you don't want to deal with the temp file, or just like getting
> >>>the data as a stream, you could try creating a named pipe (via
> >>>mkfifo), and catting the jpg data into it with something like
> >>>
> >>>  photo-viewer "cat > my-named-pipe"
> >><snip>
> >>
> >>Hmm, this screams for --photo-fd and gpgme support ;-)
> >
> >It does indeed.  I just added --attribute-fd to the development
> >version.  It'll make things a lot easier in getting the photos out for
> >display with frontends.
> 
> That would be nice.  My currently solution works quite nicely (the 
> photo-viewer is 'cat > /tmp/macgpg-photo.jpeg' and then I just open that 
> file if the key has a user ID that is an image), though.  BTW, this 
> leads me to ask, is the text `[image of size ' ever localized?

It isn't, no, but you still can't rely on it not changing.  For
example, in the development version, the string is "[jpeg image of
size ... ]".

David

-- 
   David Shaw  |  dshaw at jabberwocky.com  |  WWW http://www.jabberwocky.com/
+---------------------------------------------------------------------------+
   "There are two major products that come out of Berkeley: LSD and UNIX.
      We don't believe this to be a coincidence." - Jeremy S. Anderson




More information about the Gnupg-devel mailing list