Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7963717
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T05:40:28+00:00 2026-06-04T05:40:28+00:00

I have a website which is going to generate screenshots with url2png.com. I dont

  • 0

I have a website which is going to generate screenshots with url2png.com. I dont like the fact that every 30 days it needs to re-render all your screenshots, counting towards your limit.

Ideally I’d like to generate them, and when it’s complete, I want to save it to my own server and then view it there.

I guess I’m not even really sure where to start, specifically..

  1. How to get them into some kind of queue that will keep working until the image rendered and returned (I used redis/resque/resque_pool before but this was quite complicated and I’m not comfortable taking a very complicated route on this app, as i think it would be used by a lot of people. Id prefer something simpler thats not as easy to screw up)

  2. How to actually fetch the image from rails

  3. How to store the image to a specific directory with a specific filename

  4. How to reference the asset in my actual app

  5. How to handle the screenshots from a model/controller view. Should it just be one extra attribute assigned to Resource, something like Resource.screenshot_url ?

They do provide a Ruby gem but I dont believe I will be using that because its only option is to fetch the image from their server, instead I’m going to be using their URL format to get the image from, then somehow generate my own url.

http://api.url2png.com/v3/<API_KEY>/<TOKEN>/<BOUNDING-BOX>/<URL>

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T05:40:29+00:00Added an answer on June 4, 2026 at 5:40 am

    The URL2PNG api is reasonably fast, new requests are processed immediately and generally return a png in 10 seconds or less.

    A system to track each request and poll for a status is probably overkill. If you are looking for a background job, that is a different story.

    Parts 2,3,4 and 5 would be handled by the paperclip gem handily.
    I’d suggest starting here: Save image from URL by paperclip

    My preferred solution is a cacheing reverse proxy.
    https://serverfault.com/questions/30705/how-to-set-up-nginx-as-a-caching-reverse-proxy

    There is an similar apache module called “mod_disk_cache”. ymmv.
    http://httpd.apache.org/docs/2.2/mod/mod_disk_cache.html

    How it works:
    Your app would make requests to

    http://url2png.yourdomain.com/v3/<API_KEY>/<TOKEN>/<BOUNDING-BOX>/<URL>
    

    The proxy would check to see if the request was in the cache. If it wasn’t found, the request would be forwarded on to the url2png.com server.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an asp.net website which contains a few pages that I'd like to
I have a website which uses a lot of constants, that are defined like
I have a website which uses Spring Security. I have realized that when I
so i am going to start on a website which is going to have
I have a website for which my crawler needs to follow a sequence. So
I have to generate a list of items on a website which are random
I have a personal website which built on WordPress . Now, I'm going to
I am going to create a website which in that, users can create their
I have a website which using active directory authorization on a windows server in
I have a website which contains a large (and wide) table. The table is

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.