[CWB] Set up images in text metadata

Stefan Evert stefanML at collocations.de
Thu Jan 14 16:17:44 CET 2021



> 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


More information about the CWB mailing list