The @PLUGIN@ plugin allows Gerrit users to upload and share images.
The plugin installs a new menu Tools
-> Image Upload
where users can upload images. After the upload the user gets an URL under which the uploaded image is available. This is useful for sharing screenshots and linking them from review comments.
The uploaded images are stored in the refs/images/*
namespace of the All-Projects
project.
After the installation of the plugin the Gerrit administrator must assign permissions on this namespace:
Read to enable users to see the uploaded images.
Create Reference to enable users to upload images.
In addition Gerrit must be configured to serve project documentation from Markdown to make images available for browsing. Also the image mime types must be configured as safe because otherwise Gerrit refuses to render the images.