[CWB] Set up images in text metadata

Uhrig, Peter peter.uhrig at fau.de
Thu Jan 14 16:51:58 CET 2021


Hi Stefan,

"image:" was introduced by Andrew in CQPweb as a visualization prefix, see page 72 in http://cwb.sourceforge.net/files/CQPwebAdminManual.pdf

Best,
Peter

-----Ursprüngliche Nachricht-----
Von: cwb-bounces at sslmit.unibo.it <cwb-bounces at sslmit.unibo.it> Im Auftrag von Stefan Evert
Gesendet: Donnerstag, 14. Januar 2021 16:18
An: CWBdev Mailing List <cwb at sslmit.unibo.it>
Betreff: Re: [CWB] Set up images in text metadata



> On 14 Jan 2021, at 15:36, Daniel Wachter <wachter at cl.uni-heidelberg.de> wrote:
> 
> I try to integrate images in my corpus metadata as described in the admin manual p. 72 using the full path of the image files like "image:/var/cqp/upload/covers/7410.jpg". I tried to give cqpweb access to the images with "sudo chown -R root:www-group /var/cqp/upload/covers/" but there's something wrong with the path: When I try to open an image in the installed metadata cqpweb gives me "The requested URL was not found on this server".

The image link isn't handled by CQPweb but rather passed through to the client browser.  So you need to provide a public URL (i.e. http: or https:) where the browser can download the image file.

"image:" isn't a valid URI scheme as far as I know – where did you find this format?

> How can I give cqpweb access to my image files or where should I place them? Or is this rather a question of my server configuration and has nothing to do with cqpweb per se?

The usual solution is to make the image files available on your Web server (possibly password protected) independently of CQPweb, and then construct appropriate URLs and insert them in the corpus metadata.

Best,
Stefan
_______________________________________________
CWB mailing list
CWB at sslmit.unibo.it
http://liste.sslmit.unibo.it/mailman/listinfo/cwb


More information about the CWB mailing list