Ticket #2827 (new enhancement)
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: |
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:5 follow-up: ↓ 6 Changed 3 years ago by hyuga <hyugaricdeau@…>
- Owner changed from anonymous to jonas
- Status changed from assigned to new
- Component changed from webadmin to general
Undoing other stupid changes.
Why is anonymous allowed to change ticket properties anyways?
comment:6 in reply to: ↑ 5 Changed 3 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 3 years ago by Slava Zanko <slavaz>
- attachment thumbailPreviewOfAttachImages.r6174.patch added
Preview attached images
comment:7 Changed 3 years ago by Slava Zanko <slavaz>
- Keywords thumbail image attachment added
- Version changed from 0.9.4 to devel
- Milestone changed from 1.0 to 0.12
Some warnings: 1) This patch includes another patch of #2141 (Upload multiple files at once) 2) require Python Imaging Library
See my screenshot
Changed 3 years ago by Slava Zanko <slavaz>
- attachment Screenshot-SlavaZ.jpg added
SlavaZ's part of screenshot
Changed 3 years ago by Slava Zanko <slavaz>
- attachment thumbailPreviewOfAttachImages.r6253.patch added
renew patch
Changed 3 years ago by Slava Zanko <slavaz>
- attachment thumbailPreviewOfAttachImages.r6306.patch added
renew patch
Changed 3 years ago by Slava Zanko
- attachment thumbailPreviewOfAttachImages.r6370.patch added
renew patch
comment:8 Changed 3 years ago by Slava Zanko
- Owner changed from jonas to cboos
- Component changed from general to attachment
change Сomponent from "General" to "Attachment"
Changed 13 months ago by anonymous
- attachment thumbailPreviewOfAttachImages.r8466.patch added
renew patch for r8466 (/tags/trac-0.11.4)
Changed 11 months ago by anonymous
- attachment thumbailPreviewOfAttachImages.r8466-fixed.patch added
FIX bug: renew patch for r8466 (/tags/trac-0.11.4)
Changed 11 months 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 11 months 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 11 months 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