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 6024533
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T04:10:10+00:00 2026-05-23T04:10:10+00:00

Is it possible at all to create a feature on a website where you

  • 0

Is it possible at all to create a feature on a website where you allow a user to select a portion of the web page, and that selected area is rendered as an image?

Its similar to the “Cropper” desktop program but needs to be embedded on the web page

It sounds near impossible using JS, flash, silverlight or any web based tools but I just wanted to get a 2nd opinion. Thanks

  • 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-05-23T04:10:11+00:00Added an answer on May 23, 2026 at 4:10 am

    I did look into JCrop but that only
    works with images. The requirement
    here calls for something even more
    powerful. You literally select a
    portion of the webpage
    (using a j crop
    style overlay div which isn’t too hard
    to implement) and then that portion is
    cropped out

    That’s not generally possible for security reasons.

    For example, just talking about Firefox, see here:

    https://developer.mozilla.org/en/Drawing_Graphics_with_Canvas#Rendering_Web_Content_Into_A_Canvas

    Mozilla’s canvas is extended with the
    drawWindow() method. This method draws
    a snapshot of the contents of a DOM
    window into the canvas.

    Sounds good! But:

    This feature is only available for
    code running with Chrome privileges.
    It is not allowed in normal HTML
    pages. Read why.

    And the notes in the “Read Why” link:

    // We can’t allow web apps to call this until we fix at least the
    // following potential security issues:
    // — rendering cross-domain IFRAMEs and then extracting the results
    // — rendering the user’s theme and then extracting the results
    // — rendering native anonymous content (e.g., file input paths;
    // scrollbars should be allowed)

    If you are truly determined to make this work and you have a VPS/dedicated server, you might be able to do this by controlling a browser server-side (using Selenium RC) that captures a screenshot of an arbitrary web page, and returns the image to the browser. The user can then “crop” from this image.

    Or easier than Selenium RC: you could use wkhtmltoimage from wkhtmltopdf to generate the screenshot.

    Not easy, and it might not even work for what you’re trying to do.

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

Sidebar

Related Questions

Is it possible to create a final route that catches all .. and bounces
Is it possible to create a criteria that lists all objects sorted by sope
Is it possible to create an IntentFilter in android that matches ALL intents that
For a click tracking feature I need to create a hidden page that reads
Question: Is it possible to construct a web page that has a script to
Hi it'd like to know if it's at all possible create a parametric equalizer
I'm trying to create a good way to handle all possible collisions between two
Java requires that you catch all possible exceptions or declare them as thrown in
I'm going to create a website using Wordpress static pages feature. It's going to
If you create a new MFC application (with MFC Feature Pack), and using all

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.