Giter VIP home page Giter VIP logo

redmine-page2images's Introduction

Website Screenshot for redmine

This is an small extension for redmine, which adds a code highlight button to the default editor. When QA report a bug or support follow up a task, it is very common we need work base on one URL. Sometime, we need to see the screenshot of this URL as well. In this case, we need click the link and go to that website. Website Screenshot plug-in allow you insert a image for one URL quickly. So, we can save sometime for family or beer.

User guide

Following is a simple user guide how to use it: 1 After install it, you will see a small button in the editor;

2 Click this button, you will see a pop up

Please feel in URL of the page you want to convert to image and select a size. Then click insert button.

3 Save the issue.

4 You will see the screenshot in the issue description field. Very cool. :)

Installation

  • Download this plug-in into your redmine_root/plugins/ folder

  • Get an API Key for your server. We used page2images website screenshot to implement this plug-in. Therefore, we need require an API key on it. Do not worry, it is totally free for most of users.

Click this button after login.

Click this button to require a new key for your server.

For example, you need install this on www.example.com. Then, you need input:

After that, you will get a unique key for www.example.com . Please open file /assets/javascripts/wiki-page2images-key.js and input the key in the source code.

add it as a submodule of git:

git submodule add git://github.com/mediatainment/redmine_codebutton.git plugins/redmine_codebutton

You may have to run to provide the assets

rake redmine:plugins

Core features:

You will get following benefit from this plug-in by default (or not by default):

  • Quickly see one website page;

  • Refresh page monthly automatically;

  • Resize the screenshot images (Redmine does not support image size. But we support.)

Limitations:

Everything has limitation. But we do have some more.

  • Cannot use on SSL server. (No workaround.)

  • Cannot use more than 100 times per day with a free account.

  • Cannot take screenshot with a non-public website.

Background technology & documents:

If you are interesting how we implement this magic plug-in, there are some information. We used page2images API to generate the website screenshot. We used JQuery to implement the tool in front end. If you want, you can get more information about the API we used:

Thanks

It’s a requested feature on redmine.org and I decided to try to implement it for my needs. Thankfully Felix S. has provided his code. I used the “redmine_wiki_extensions” which guides me through the process.

www.redmine.org/issues/14937

www.redmine.org/plugins/website-screenshot-page2images

I also wanna thank Andriy L. which offers me the first hint for figuring out how to implement.

stackoverflow.com/questions/19378096/syntax-highlight-in-redmine

I also wanna thanks Page2Images to provide the API.

redmine-page2images's People

Contributors

kada-chu avatar

Watchers

 avatar  avatar

redmine-page2images's Issues

No route maches

I am getting this issue:

ActionController::RoutingError (No route matches [GET] "/plugin_assets/redmine_page2images/stylesheets/wiki-page2images.css"):
actionpack (3.2.19) lib/action_dispatch/middleware/debug_exceptions.rb:21:in call' actionpack (3.2.19) lib/action_dispatch/middleware/show_exceptions.rb:56:incall'
railties (3.2.19) lib/rails/rack/logger.rb:32:in call_app' railties (3.2.19) lib/rails/rack/logger.rb:16:inblock in call'
activesupport (3.2.19) lib/active_support/tagged_logging.rb:22:in tagged' railties (3.2.19) lib/rails/rack/logger.rb:16:incall'
actionpack (3.2.19) lib/action_dispatch/middleware/request_id.rb:22:in call' rack (1.4.5) lib/rack/methodoverride.rb:21:incall'
rack (1.4.5) lib/rack/runtime.rb:17:in call' activesupport (3.2.19) lib/active_support/cache/strategy/local_cache.rb:72:incall'
rack (1.4.5) lib/rack/lock.rb:15:in call' actionpack (3.2.19) lib/action_dispatch/middleware/static.rb:63:incall'
rack-cache (1.2) lib/rack/cache/context.rb:136:in forward' rack-cache (1.2) lib/rack/cache/context.rb:245:infetch'
rack-cache (1.2) lib/rack/cache/context.rb:185:in lookup' rack-cache (1.2) lib/rack/cache/context.rb:66:incall!'
rack-cache (1.2) lib/rack/cache/context.rb:51:in call' railties (3.2.19) lib/rails/engine.rb:484:incall'
railties (3.2.19) lib/rails/application.rb:231:in call' railties (3.2.19) lib/rails/railtie/configurable.rb:30:inmethod_missing'
passenger (4.0.10) lib/phusion_passenger/rack/thread_handler_extension.rb:77:in process_request' passenger (4.0.10) lib/phusion_passenger/request_handler/thread_handler.rb:140:inaccept_and_process_next_request'
passenger (4.0.10) lib/phusion_passenger/request_handler/thread_handler.rb:108:in main_loop' passenger (4.0.10) lib/phusion_passenger/request_handler.rb:441:inblock (3 levels) in start_threads'

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.