wiki:ScreenshotPastePlugin

Version 15 (modified by jun66j5, 21 months ago) (diff)

Removed 'ChangeLog` macro because the repository is on the other site.

Screenshot Paste plugin for Trac

Description

A Trac plugin to allow attaching screenshots or other images to tickets, Wiki pages, etc. directly from the clipboard, without needing to save them locally first and then uploading them.

This plugin uses the Supa applet, the Screenshot UPload Applet, which is Copyright 2010 Christoph Linder and is developed under the LGPL 2.1.



How-to


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.



Screenshot showing Ticket attachment step 1
Adding an attachment while creating a Ticket

The first time, you will get a Java security warning. Click Run to run the applet.



Screenshot showing Java security question
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.



Screenshot showing the screenshot paste attachment section
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.



Screenshot showing the screenshot attachment paste section in wiki page
Click Upload to send the image to Trac

See the image file name generated and attached to the ticket.



Screenshot showing the file once attached
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.



Screenshot showing the screenshot paste sending
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.



Screenshot showing the screenshot attachment paste section in wiki page
The image attached as a file, with unique name generated



Bugs/Feature Requests


If you have any issues, create a new ticket.

Existing bugs and feature requests for ScreenshotPastePlugin are here.

Ticket Summary Status Severity Priority Type Owner Created Description
#9683 Images are empty on Windows (linux works fine) closed normal normal defect seccanj 3 years I can paste images and see them in the little preview window. To send the screenshot is also no problem, but if i want to open it again, i see always an empty picture like the attached screenshot. I do not see any errors in my Trac logfile.
#9873 jQuery conflict closed normal normal defect seccanj 2 years I'm seeing a jQuery conflict when trying to access the plugin in Firefox 11-beta from Windows 7. I have Trac 0.12.3 running through Apache on CentOS 5. I noticed the plugin is adding `jquery-1.5.1.min.js`, but Trac includes jQuery so I think plugins are not supposed to include it in a page as well, which might be the source of the problem. I guess this might be okay though because you are using the noconflict calls. [[Image(jQueryNotDefined.png,100%)]]
#9913 File de.christophlinder.supa.SupaApplet not found closed normal high defect seccanj 2 years Powered by Trac 0.12.3 $ python --version Python 2.7.1+ I see the following warning message in the trac log file: {{{ 2012-03-20 14:14:54,535 Trac[main] DEBUG: Dispatching <Request "GET '/chrome/screenshotpaste/de.christophlinder.supa.SupaApplet'"> 2012-03-20 14:14:54,545 Trac[chrome] WARNING: File de.christophlinder.supa.SupaApplet not found in any of ['/var/lib/trac/.egg-cache/ScreenshotPaste-0.1.1-py2.7.egg-tmp/screenshotpaste/htdocs'] }}} I first downloaded and installed a pre-built egg. When that did not work I built from the sources. In the application I see this: 'Unable to run the applet :('
#10000 Allow to edit the screenshot before attaching new normal normal enhancement seccanj 2 years The idea behind this plugin is cool. At the moment it is still needed to open an external tool to modify the screenshot before attaching it. I don't expect to have a image processing tool here. What i'm missing is a possibility to cut out an area and place some rectangles to mark some thing on the picture.
#10352 User redirected to empty page after attaching screenshot (missing trailing slash in URL) closed normal normal defect seccanj 23 months Hi, I have this plugin installed along with my trac and found this bug recently which can be quite annoying and confusing to the users. This happens only when the user is creating a new ticket and attaching a screenshot using the plugin. The ticket gets created, the user is able to paste the screenshot, but when he hits "Send the screenshot" he is redirected to an empty page like the one attached. The problem is a missing trailing slash "/" in the URL. The page is redirected to "/attachment/ticket/183" for example while it should have been redirected to "/attachment/ticket/183/". It would be great if someone would look into this. Thanks.
#10427 ScreenShotPaste doesn't work with trac 1.0 closed blocker normal defect seccanj 22 months Following upgrade from trac 0.12 to trac 1.0, paste the clipboard function still works, but when you try to 'Send the Screenshot', it brings up a pop-up box with HTML for the whole page, with an error "Missing or invalid form token. Do you have cookies enabled" buried in the middle of it. Have attached the main section of the HTML in case it's useful. Happy to help with any debug info - but not a python person so you need to be gentle...
#11430 Provide at least a self signed certificate new normal normal enhancement seccanj 8 months It would be nice if there where at least a self signed certificate.
#11431 Provide a possibility to set a the filename new normal normal defect seccanj 8 months When using Image we are often refere to them using the fileName of the attached image. Specifying the filename before attaching the image would allow much nicer names.


Download


Download Egg files and the zipped source from the project on SourceForge.


Source

You can check out ScreenshotPastePlugin from the repository on SourceForge using Git.

Recent Changes

See the repository on SourceForge.

Author/Contributors

Author: seccanj
Maintainer: seccanj
Contributors:

Attachments (9)

Download all attachments as: .zip