Edgewall Software
Modify

Opened 14 years ago

Last modified 4 years 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:

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 (8)

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

Download all attachments as: .zip

Change History (17)

comment:1 by pkou at ua.fm, 14 years ago

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

comment:5 by hyuga <hyugaricdeau@…>, 12 years ago

Component: webadmingeneral
Owner: changed from anonymous to Jonas Borgström
Status: assignednew

Undoing other stupid changes.

Why is anonymous allowed to change ticket properties anyways?

in reply to:  5 comment:6 by Christian Boos, 12 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 Slava Zanko <slavaz>, 12 years ago

Preview attached images

comment:7 by Slava Zanko <slavaz>, 12 years ago

Keywords: thumbail image attachment added
Milestone: 1.00.12
Version: 0.9.4devel

Some warnings: 1) This patch includes another patch of #2141 (Upload multiple files at once) 2) require Python Imaging Library

See my screenshot

by Slava Zanko <slavaz>, 12 years ago

Attachment: Screenshot-SlavaZ.jpg added

SlavaZ's part of screenshot

by Slava Zanko <slavaz>, 12 years ago

renew patch

by Slava Zanko <slavaz>, 12 years ago

renew patch

by Slava Zanko, 12 years ago

renew patch

comment:8 by Slava Zanko, 12 years ago

Component: generalattachment
Owner: changed from Jonas Borgström to Christian Boos

change Сomponent from "General" to "Attachment"

by anonymous, 10 years ago

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

by anonymous, 10 years ago

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

by anonymous, 10 years ago

FIX bug: renew patch for r8466 (/tags/trac-0.11.4) (attached wrong file above)

comment:9 by Christian Boos, 10 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 Remy Blank, 10 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 figaro, 4 years ago

Keywords: performance added

comment:12 by Ryan J Ollos, 4 years ago

Owner: Christian Boos removed

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The ticket will remain with no owner.
The ticket will be disowned. Next status will be 'new'.
as The resolution will be set. Next status will be 'closed'.
The owner will be changed from (none) to anonymous. Next status will be 'assigned'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.