Movatterモバイル変換


[0]ホーム

URL:


Trac Hacks
wiki:ImageTracPlugin

Context Navigation


Content

  1. Description
  2. Bugs/Feature Requests
  3. Download
  4. Source
  5. Installation
  6. Recent Changes
  7. Author/Contributors

Include a displayed image with a ticket upon ticket creation

Notice: This plugin is unmaintained and availableforadoption.

Description

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.

screenshot of the ImageTracPlugin

Note: This screenshot is out of date. Better submissions are welcome.

Included below is theREADME:

ImageTracPlugin

TheImageTracPlugin allows images to be attached to Trac tickets and displayed.

Components

Severalcomponentsare included in the ImageTrac plugin:

ImageTrac

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 theticket.htmltemplate.

DefaultTicketImage

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

Galleria

The Galleria component adds thegalleria javascript image galleryand accompanyingCSS to allow the display of images in a galleryformat.

ImageFormFilter

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).

SidebarImage

The SidebarImage component displays the images in an unordered listin the ticket sidebar using theTicketSidebarProviderPlugin.

TicketImageHandler

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.

Usage

It is recommended that you enable all of the components of theImageTracPlugin.

Bugs/Feature Requests

Existing bugs and feature requests forImageTracPlugin arehere.

If you have any issues, create anew ticket.

defect

5 / 8

enhancement

0 / 2

Download

Download the zipped source fromhere.

Source

You can check outImageTracPlugin fromhere using Subversion, orbrowse the source with Trac.

Installation

General instructions on installing Trac plugins can be found on theTracPlugins page.

Recent Changes

13934 byrjollos on 2014-05-20 22:57:31
Fixed checking for table existence in Trac 1.0 and later. Refs#11754.
13933 byrjollos on 2014-05-20 22:37:24
Fixed indentation and removed unused imports.
12984 byrjollos on 2013-04-19 16:30:50
Refs#7262: Pointsetup,py link toTracSqlHelperScript0.11 directory rather thananyrelease directory.
(more)

Author/Contributors

Originally developed at The Open Planning Project

Author:k0s
Maintainer:none (needsadoption)
Contributors:

Last modified7 years agoLast modified on May 10, 2018, 10:53:42 AM

Attachments(1)

Download all attachments as:.zip

Download in other formats:


Trac Powered

Powered byTrac 1.2.6
ByEdgewall Software.


[8]ページ先頭

©2009-2025 Movatter.jp