[[PageOutline(2-5,Contents,pullout)]] = Paste images and screenshots into Trac pages == Description This is a Trac plugin that allows you to attach images and screenshots to tickets, wiki pages, blog pages etc directly from the clipboard. With this plugin it is no longer necessary to save them locally first and then uploading them into Trac. This plugin uses the [http://supa.sourceforge.net/ Supa applet], the Screenshot UPload Applet, which is written by Christoph Linder in 2010 and LGPL-2.1 licensed. See also: ScreenshotsPlugin == Usage Once the plugin is installed, you can easily attach a screenshot or any image you have in the clipboard to a ticket or wiki page. === Attach a screenshot or an image to a Trac ticket First, grab a screenshot or copy an image, for example, from the browser or an email. Then, from a ticket, add an attachment as usual: [[Image(screenshotpaste02.png)]] '''Adding an attachment while creating a Ticket''' The first time, you will get a Java security warning. Click Run to run the applet: [[Image(screenshotpaste03.png)]] '''Java security question for the applet''' You will notice the '''extra section''' above the usual file attachment one. Click '''Paste the Captured Screenshot''' to provide the screenshot to the plugin applet and to see a preview: [[Image(screenshotpaste06.png)]] '''Paste the image you have in memory. Get a preview''' Then click '''Send the Screenshot''' to actually send it to Trac and save it as an attachment: [[Image(screenshotpaste09.png)]] '''Click Upload to send the image to Trac''' See the image file name generated and attached to the ticket: [[Image(screenshotpaste07.png)]] '''The image attached as a file, with unique name generated''' === Attach a screenshot or an image to a Trac wiki page The steps are very similar to the ones used for attaching to a Ticket. First, grab a screenshot or copy an image, for example, from the browser or an email. Then, from a wiki page, add an attachment as usual: [[Image(screenshotpaste08.png)]] '''Adding an attachment to a Wiki page''' Then follow the '''steps described above for Ticket''' attachments. When done, you will see the image file name generated and attached to the Wiki page: [[Image(screenshotpaste10.png)]] '''The image attached as a file, with unique name generated''' == Bugs/Feature Requests If you have any issues, create a [/newticket?component=ScreenshotPastePlugin new ticket]. Existing bugs and feature requests for ScreenshotPastePlugin are [report:9?COMPONENT=ScreenshotPastePlugin here]. [[TicketQuery(component=ScreenshotPastePlugin&group=type,format=progress)]] == Download Download the egg files and the zipped source from [https://sourceforge.net/projects/screenshot4trac/files/ the project on SourceForge]. == Source You can check out ScreenshotPastePlugin from [https://sourceforge.net/p/screenshot4trac/code/ the repository on SourceForge] using Git. == Installation Installation instructions can be found on the Sourceforge page. == Recent Changes See [https://sourceforge.net/p/screenshot4trac/code/ the repository on SourceForge]. == Author/Contributors '''Author:''' [wiki:seccanj] [[BR]] '''Maintainer:''' [[Maintainer]] [[BR]] '''Contributors:'''