Giter Club home page Giter Club logo

cropsicle's People

Contributors

jvalle avatar mlms13 avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar

cropsicle's Issues

Add configuration options when submitting the URL

We should allow the user to specify a fixed height and width for the screenshot. This should get posted to the server, and possibly included as part of the final URL, e.g.:

webchopper.awesome/crop/1024/all/martinsmucker.com

After downloading an image, cache the image on the server

If someone isn't happy with their crop, they might come back 5 minutes later and try the same thing. We'll save a lot of time (and server bandwidth) if we don't re-request and render the same website.

Considerations:

  • We should offer the user a cache-busting feature, in case they noticed a bug on the page, fixed it, and now want a new screenshot.
  • We don't want to rely on a single cached image forever. Maybe check to see if the image is > 24 hours old, and if so, get a new one.

Use Javascript to hijack the form

Requesting the image could all be handled client-side. Server-side stuff is a nice fallback if JS is disabled, but ultimately, you should never have leave the index page.

history.pushState() will be a nice way to give people usable links that they can return to or share.

There is no cropping

When we return the image, we should do whatever magic is required by ImageCutter to make the crop tool work as expected.

Take multiple size screenshots after loading the page

I'm not sure if this is possible, but it would be pretty neat. After we load the full page in Phantom and snap the original screenshot, it would be awesome if we could resize Phantom's viewport and take other screenshots... ya know, while it's loaded and everything.

Then, in the interface, we could offer some device-icon-buttons so that the user could quickly switch between viewport widths, without having to re-render the target URL in Phantom over and over.

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.