[Moin-user] Is it possible to display local images?

George Dinwiddie lists at iDIAcomputing.com
Mon Feb 8 17:12:08 EST 2010


Hi, Chris,

Chris G wrote:
>>    [1]http://moinmo.in/HelpOnImages
>>
> Yes, I read that, but it doesn't actually work for *any* images that I
> have tried it with.  It may work if you're actually sending an image
> from a remote system to the system where moinmoin is running but it's
> total rubbish if you're on the same system.

The "attachments" stuff if for moin to store the images relative to the 
page.  That should work for you.

Are you running in standalone mode, e.g., only serving to a browser 
running on the same machine?

>>    now the bit complicated part... your images on your  filesystem. I would
>>    try to do something like this
>>
>>    1. install some apache and
>>
>>    2. configure the webserver in that way that your image directories are
>>    accessible over localhost or your local domain like >>
>>    http://yourhostname/images/s000023.jpg  <<   (but you have be careful
>>    about your apache security configuration, because if your apache server is
>>    also from the Internet  available,  others can also read  directly your
>>    images, too)
>>
>>    3. then you can write in your moinmoin someting like
>>    {{[2]http://yourhostname/images/s000023.jpg}}
>>
> OK, but *why* doesn't something like:-
> 
>     file:///my/home/dir/picture/abc123.jpg
> 
> work?  file:/ is a perfectly valid URL.

file:// is a valid protocol only if you're on the local machine.  It 
won't work at all for access from another machine.  When you use that 
protocol, the moin server isn't involved at all.  Instead, the brower 
fetches the file directly from the filesystem.

> I don't want to put my whole picture archive on the internet.

The file:// protocol won't work on the internet.

> Not to mention that it would seem that URLs or directories with spaces
> in their names seem to break things too.

Yes, you have to URLencode them.  A space becomes "%20" in the URL.

  - George

-- 
  ----------------------------------------------------------------------
   * George Dinwiddie *                      http://blog.gdinwiddie.com
   Software Development                    http://www.idiacomputing.com
   Consultant and Coach                    http://www.agilemaryland.org
  ----------------------------------------------------------------------





More information about the Moin-user mailing list