Edgewall Software
Modify

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:

Similar approach can be used in other places of Trac, e.g. previewing attachments in wiki.

Attachments

thumbailPreviewOfAttachImages.r6174.patch (14.7 KB) - added by Slava Zanko <slavaz> 4 years ago.
Preview attached images
Screenshot-SlavaZ.jpg (53.3 KB) - added by Slava Zanko <slavaz> 4 years ago.
SlavaZ's part of screenshot
thumbailPreviewOfAttachImages.r6253.patch (14.6 KB) - added by Slava Zanko <slavaz> 4 years ago.
renew patch
thumbailPreviewOfAttachImages.r6306.patch (14.6 KB) - added by Slava Zanko <slavaz> 4 years ago.
renew patch
thumbailPreviewOfAttachImages.r6370.patch (14.1 KB) - added by Slava Zanko 4 years ago.
renew patch
thumbailPreviewOfAttachImages.r8466.patch (14.7 KB) - added by anonymous 2 years ago.
renew patch for r8466 (/tags/trac-0.11.4)
thumbailPreviewOfAttachImages.r8466-fixed.patch (14.5 KB) - added by anonymous 2 years ago.
FIX bug: renew patch for r8466 (/tags/trac-0.11.4)
thumbailPreviewOfAttachImages.r8466-fixed.2.patch (16.6 KB) - added by anonymous 2 years ago.
FIX bug: renew patch for r8466 (/tags/trac-0.11.4) (attached wrong file above)

Download all attachments as: .zip

Change History

comment:1 Changed 6 years ago by pkou at ua.fm

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

comment:5 follow-up: 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>

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>

SlavaZ's part of screenshot

Changed 4 years ago by Slava Zanko <slavaz>

renew patch

Changed 4 years ago by Slava Zanko <slavaz>

renew patch

Changed 4 years ago by Slava Zanko

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

renew patch for r8466 (/tags/trac-0.11.4)

Changed 2 years ago by anonymous

FIX bug: renew patch for r8466 (/tags/trac-0.11.4)

Changed 2 years ago by anonymous

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.

View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as new
as The resolution will be set. Next status will be 'closed'
to The owner will be changed from cboos. Next status will be 'new'
The owner will be changed from cboos to anonymous. Next status will be 'assigned'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.