Capture screenshots for a Ruby on Rails application [closed] - ruby-on-rails

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
I have a Rails app that I want to capture a screenshot of a webpage when the user enters a url.
Is it possible to do this in Rails (is there any gem that would do this?)
If not, are there any reliable services that generate live screenshots

I use IMGKit gem for that: https://github.com/csquared/IMGKit
Related topic: How to respond_to PNG or JPG in Rails and generate image from HTML?

ScreenCap gem which uses PhantomJS under the hood. Grab whole pages or just specific divs, or even exact x y coordinates.

I have used GrabzIt for this. This is quite simple.

Related

Avatar rails generator [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 4 years ago.
Improve this question
I am trying to find some rails gem or any API delivering some random (non figurative) picture for avatar users, as the one that SO uses.
I tried gravatar but when I create some random hash and that I call the api via http://www.gravatar.com/avatar/#{hash}, I always get the same default image (independently of the hash)
So perhaps I misunderstood the purpose of gravatar, so is there any API or rails gem offering this service ?
Just add ?d=identicon to your query.
Docs here

Simplest solution for uploading images to cloud service [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 6 years ago.
Improve this question
What is the simplest way to allow people to upload an image to a cloud server (in a Rails 3 app)? I want to include an "upload image" button in the form, and store the address in my model. I'd also like to be able to constrain the file size.
I recommend attachinary and the cloudinary service:
https://github.com/assembler/attachinary
It's a huge time saver to not need to mess around with imagemagick. Cloudinary is an amazing service that resizes images on the fly. Attachinary comes with great integration to jquery upload widgets too.
Using the paperclip gem for rails:
Here is a nice tutorial: Uploading Files to S3 in Ruby with Paperclip

Rails markdown editor with live preview [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
Are there any markdown editors that integrate with rails (eg in a gem) and offer live preview?
Checkout markdown.js and showdown. You could rig them up to parse whatever the markdown input is whenever certain events fire (i.e. a user releasing a key when typing in the markdown textarea). I'm not aware of any other embeddable markdown editors with live previews, but it seems it would be easy enough to make one with one of these libraries.
Check out the gem below, its not well documented but seems to work
https://github.com/zethussuen/epic-editor-rails

Looking for simple poll/survey Rails plugin or gem [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
Improve this question
I am trying to find a simple poll plugin/gem (the type of single question poll that's usually found in site's sidebar). All plugins that I've found are either too complex (like having their own DSL) or they are out of date (i.e. older than couple years).
Does anyone knows a Rails plugin/gem that handles simple polls?
Have you tried SMeRF, I'm currently using Surveyor and yes it is complicated. So I recommend you to use SMeRF, it is a lot more simple. But I can't seem to make it work on Rails3. xP
What version of Rails are you using?
I ended up writing my own custom solution for a simple poll I needed. Unfortunately, I needed it fast so I wrote it within an app I was working on (i.e. I didn't separate it into gem)

Ruby library to generate graphics from text? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
Improve this question
I'm working in Rails and I'm looking for a library/gem/plugin to generate a graphic from text. Google Maps doesn't allow you to overlay text, only graphics so I'm looking for a back door to overlay text. Suggestions?
Take a look at RMagick.
To draw text using RMagick, you need to use one the text or annotate methods.
You need something like RMagick, though that particular library has been known to leak memory.
libgd can do this, and has bindings for many different languages, including Ruby

Resources