Opened 19 years ago
Last modified 21 months ago
#2827 new enhancement
Preview attachments in main ticket (or wiki) window
Reported by: | pkou at ua.fm | Owned by: | |
---|---|---|---|
Priority: | normal | Milestone: | next-major-releases |
Component: | attachment | Version: | devel |
Severity: | normal | Keywords: | thumbail image attachment performance |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
It will be useful if Trac shows previews for attachments in main ticket window.
This can be implemented using the Trac plugin architecture in order to allow extending the methods for generating previews for attachments. Taking into account overall performance of the system, the architecture should allow to run generating of previews in background when an attachment is added.
As a part of standard distribution, a displaying of scaled down images can be implemented:
- The size of scaled picture can be configured;
- There is an excellent Python Imaging Library that will do the work.
Similar approach can be used in other places of Trac, e.g. previewing attachments in wiki.
Attachments (8)
Change History (19)
comment:1 by , 19 years ago
follow-up: 6 comment:5 by , 18 years ago
Component: | webadmin → general |
---|---|
Owner: | changed from | to
Status: | assigned → new |
Undoing other stupid changes.
Why is anonymous allowed to change ticket properties anyways?
comment:6 by , 18 years ago
Replying to hyuga <hyugaricdeau@gmail.com>:
Undoing other stupid changes.
I've deleted those, thanks for the notice.
Why is anonymous allowed to change ticket properties anyways?
It's a trade-off. Besides TicketButchers, we also sometimes have TicketGnomes :-)
by , 17 years ago
Attachment: | thumbailPreviewOfAttachImages.r6174.patch added |
---|
Preview attached images
comment:7 by , 17 years ago
Keywords: | thumbail image attachment added |
---|---|
Milestone: | 1.0 → 0.12 |
Version: | 0.9.4 → devel |
Some warnings: 1) This patch includes another patch of #2141 (Upload multiple files at once) 2) require Python Imaging Library
See my screenshot
comment:8 by , 17 years ago
Component: | general → attachment |
---|---|
Owner: | changed from | to
change Сomponent from "General" to "Attachment"
by , 15 years ago
Attachment: | thumbailPreviewOfAttachImages.r8466.patch added |
---|
renew patch for r8466 (/tags/trac-0.11.4)
by , 15 years ago
Attachment: | thumbailPreviewOfAttachImages.r8466-fixed.patch added |
---|
FIX bug: renew patch for r8466 (/tags/trac-0.11.4)
by , 15 years ago
Attachment: | thumbailPreviewOfAttachImages.r8466-fixed.2.patch added |
---|
FIX bug: renew patch for r8466 (/tags/trac-0.11.4) (attached wrong file above)
comment:9 by , 15 years ago
Thanks for refreshing the patches, nevertheless 2 hints if this should ever be considered for inclusion in Trac proper:
- patch should be against trunk, not the 0.11-stable branch which is in feature freeze
- patch should follow the TracDev/CodingStyle
comment:10 by , 15 years ago
Also, please move the "upload multiple files at once" functionality into a separate patch, so that both functionalities can be reviewed (and applied) separately.
comment:11 by , 10 years ago
Keywords: | performance added |
---|
comment:12 by , 9 years ago
Owner: | removed |
---|
comment:14 by , 21 months ago
Aside from the OverlayViewPlugin there are other plugins that may be of help, depending on your use case:
- ArchiveViewerPlugin: Browse contents in zipfile
- ImageTracPlugin: Include a displayed image with a ticket upon ticket creation
- IncludeAttachmentMacro: Display the text of an attachment
- TracCsvPlugin: Preview CSV files in wiki pages
Please note that none of these are necessarily compatible with Python3 or Jinja2 and will likely require some rework.
Probably, this feature should be enabled per-project or per-user because it generates more traffic from a Trac site