Notice: This plugin is unmaintained and availableforadoption.
TheImageTracPlugin allows uploading of images to tickets upon ticket creation. The image is displayed beside the ticket using theTicketSidebarProviderPlugin. This is useful when one wants to associate images with tickets. Additional work, such as displaying a thumbnail next to query results, may be done as time permits.
Note: This screenshot is out of date. Better submissions are welcome.
TheImageTracPlugin allows images to be attached to Trac tickets and displayed.
Severalcomponentsare included in the ImageTrac plugin:
ImageTrac is the core of theImageTracPlugin. This plugin processes
uploaded attachments and, if they are images, will create images ofthe appropriate size as dictated by the
[ticket-image]
section ofthetrac.ini configuration.
Two sizes are included by default, thumbnails and a default size, butan arbitrary number of sizes can be used. Configuration is given forthe default case as follows
[ticket-image]size.thumbnail = 32x32size.default = 488x
This specifies a thumbnail of 32 by 32 pixels and a default size of488 pixels in width with a height taken from the aspect ratio of theuploaded image. Currently, images are not scaled up. Scaling is donewith thePython Imaging Library and afront-end function packaged incropresize.
ImageTrac can also enforce image uploading on ticket creation and
includes the ticket images in the data passed to the
ticket.html
template.
The DefaultTicketImage component allows the setting of a defaultimage for a ticket. It maintains a database table,default_image
,which stores which image is the default
The Galleria component adds thegalleria javascript image galleryand accompanyingCSS to allow the display of images in a galleryformat.
The ImageFormFilter component adds a form on the ticket page thatallows uploading of an image on ticket creation or ticket editing.Images so uploaded should become the default image (NOTE: there iscurrently a bug whereby this is not the case).
The SidebarImage component displays the images in an unordered listin the ticket sidebar using theTicketSidebarProviderPlugin.
The TicketImageHandler component serves the images at/ticket/<ticket id>/image/<size>
. For example, the thumbnail ofticket 67 would be displayed at/ticket/67/image/thumbnail
.
It is recommended that you enable all of the components of theImageTracPlugin.
Existing bugs and feature requests forImageTracPlugin arehere.
If you have any issues, create anew ticket.
defect | 5 / 8 | ||
---|---|---|---|
enhancement | 0 / 2 |
Download the zipped source fromhere.
You can check outImageTracPlugin fromhere using Subversion, orbrowse the source with Trac.
General instructions on installing Trac plugins can be found on theTracPlugins page.
setup,py
link toTracSqlHelperScript0.11
directory rather thananyrelease
directory.Originally developed at The Open Planning Project
Author:k0s
Maintainer:none (needsadoption)
Contributors:
screenshot of theImageTracPlugin
Download all attachments as:.zip