Ticket #2827 (new enhancement)
Opened 6 years ago
Last modified 2 years ago
Preview attachments in main ticket (or wiki) window
| Reported by: | pkou at ua.fm | Owned by: | cboos |
|---|---|---|---|
| Priority: | normal | Milestone: | next-major-0.1X |
| Component: | attachment | Version: | devel |
| Severity: | normal | Keywords: | thumbail image attachment |
| Cc: | |||
| Release Notes: | |||
| API 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
Change History
comment:1 Changed 6 years ago by pkou at ua.fm
comment:5 follow-up: ↓ 6 Changed 5 years ago by hyuga <hyugaricdeau@…>
- Component changed from webadmin to general
- Owner changed from anonymous to jonas
- Status changed from assigned to new
Undoing other stupid changes.
Why is anonymous allowed to change ticket properties anyways?
comment:6 in reply to: ↑ 5 Changed 5 years ago by cboos
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 :-)
Changed 4 years ago by Slava Zanko <slavaz>
- Attachment thumbailPreviewOfAttachImages.r6174.patch added
Preview attached images
comment:7 Changed 4 years ago by Slava Zanko <slavaz>
- Keywords thumbail image attachment added
- Milestone changed from 1.0 to 0.12
- Version changed from 0.9.4 to devel
Some warnings:
1) This patch includes another patch of #2141 (Upload multiple files at once)
2) require Python Imaging Library
See my screenshot
Changed 4 years ago by Slava Zanko <slavaz>
- Attachment Screenshot-SlavaZ.jpg added
SlavaZ's part of screenshot
Changed 4 years ago by Slava Zanko <slavaz>
- Attachment thumbailPreviewOfAttachImages.r6253.patch added
renew patch
Changed 4 years ago by Slava Zanko <slavaz>
- Attachment thumbailPreviewOfAttachImages.r6306.patch added
renew patch
Changed 4 years ago by Slava Zanko
- Attachment thumbailPreviewOfAttachImages.r6370.patch added
renew patch
comment:8 Changed 4 years ago by Slava Zanko
- Component changed from general to attachment
- Owner changed from jonas to cboos
change Сomponent from "General" to "Attachment"
Changed 2 years ago by anonymous
- Attachment thumbailPreviewOfAttachImages.r8466.patch added
renew patch for r8466 (/tags/trac-0.11.4)
Changed 2 years ago by anonymous
- Attachment thumbailPreviewOfAttachImages.r8466-fixed.patch added
FIX bug: renew patch for r8466 (/tags/trac-0.11.4)
Changed 2 years ago by anonymous
- Attachment thumbailPreviewOfAttachImages.r8466-fixed.2.patch added
FIX bug: renew patch for r8466 (/tags/trac-0.11.4) (attached wrong file above)
comment:9 Changed 2 years ago by cboos
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 Changed 2 years ago by rblank
Also, please move the "upload multiple files at once" functionality into a separate patch, so that both functionalities can be reviewed (and applied) separately.



Probably, this feature should be enabled per-project or per-user because it generates more traffic from a Trac site