News for hackers. Stuff that matters.
Re:Show HN: Embed Full-Page Screenshots in any Blog / App / ... by condiment on Wednesday March 06, 2013 @04:15PM (#5333995)
This looks to me to be a page-for-page clone of another url screenshot service that made it to the front page a couple weeks ago.

http://news.ycombinator.com/item?id=5257432

Compare: https://urlbox.io/docs

http://www.url2picture.com/Home/Docs

Re:Show HN: Embed Full-Page Screenshots in any Blog / App / ... by klintcho on Wednesday March 06, 2013 @04:45PM (#5334198)
Exactly what i was thinking as soon as i saw this one. Isn't urlbox free?
Re:Show HN: Embed Full-Page Screenshots in any Blog / App / ... by calebegg on Wednesday March 06, 2013 @06:50PM (#5334877)
Doesn't appear to be: https://urlbox.io/pricing

It does have a 14 day free trial.

Re:Show HN: Embed Full-Page Screenshots in any Blog / App / ... by dncarter on Wednesday March 06, 2013 @04:20PM (#5334034)
Yeh exactly. There should be a way to downvote clones.
Re:Show HN: Embed Full-Page Screenshots in any Blog / App / ... by jmathai on Wednesday March 06, 2013 @05:31PM (#5334476)
Clones often aren't exact clones and have nuances which differentiate them. Sometimes the nuances are very important.
Re:Show HN: Embed Full-Page Screenshots in any Blog / App / ... by jschuur on Wednesday March 06, 2013 @06:21PM (#5334745)
Are the Samwer brothers behind this?
Re:Show HN: Embed Full-Page Screenshots in any Blog / App / ... by mmmooo on Wednesday March 06, 2013 @04:19PM (#5334024)
and on top, looks like urlbox (properly) uses hmac!
Re:Show HN: Embed Full-Page Screenshots in any Blog / App / ... by SunboX on Wednesday March 06, 2013 @03:58PM (#5333868)
Even better, take Screenshots of any Website/App with just JavaScript and Canvas: https://github.com/niklasvh/html2canvas
Re:Show HN: Embed Full-Page Screenshots in any Blog / App / ... by dherken on Wednesday March 06, 2013 @04:06PM (#5333921)
Thats a great project, but I would need to host it myself somewhere?
Re:Show HN: Embed Full-Page Screenshots in any Blog / App / ... by SunboX on Wednesday March 06, 2013 @04:43PM (#5334192)
nothing comes for free ;)
Re:Show HN: Embed Full-Page Screenshots in any Blog / App / ... by lars on Wednesday March 06, 2013 @04:09PM (#5333952)
I'll chime in and say that the company I work for was ready to pay 1200$ for a piece of software that we hoped would do this reliably. There are cheaper or even free alternatives out there, but they all had different problems. If this site is reliable and flexible, it is answering a real need in the market.

Does it render in webkit?

Re:Show HN: Embed Full-Page Screenshots in any Blog / App / ... by dncarter on Wednesday March 06, 2013 @06:10PM (#5334676)
Just use urlbox.io. We using them and currently doing over 25K screenshot requests a day on urlbox and extremely happy with their service reliability. Have spoken to founder couple of times.. he's integrated us with their PHP API.
Re:Show HN: Embed Full-Page Screenshots in any Blog / App / ... by dherken on Wednesday March 06, 2013 @04:13PM (#5333983)
Yes it uses webkit, and regarding reliability... It currently runs smoothly despite the hacker news traffic increase ;-)
Re:Show HN: Embed Full-Page Screenshots in any Blog / App / ... by lars on Wednesday March 06, 2013 @04:22PM (#5334055)
Sorry, I meant that as in reliably renders whatever you throw at it. This where others would fail, i.e. sections of the page would be not be rendered, or they would execute javascript, but the execution would fail half way through,, it would crash if the site embedded certain resources, that kind of thing.
Re:Show HN: Embed Full-Page Screenshots in any Blog / App / ... by dherken on Wednesday March 06, 2013 @04:29PM (#5334104)
It runs a full blown browser in the background so it should handle most things you can throw at it.
Re:Show HN: Embed Full-Page Screenshots in any Blog / App / ... by mmmooo on Wednesday March 06, 2013 @03:38PM (#5333732)
Someone's using a hash function where a MAC belongs..
Re:Show HN: Embed Full-Page Screenshots in any Blog / App / ... by dherken on Wednesday March 06, 2013 @03:40PM (#5333747)
What exactly do you mean?
Re:Show HN: Embed Full-Page Screenshots in any Blog / App / ... by mmmooo on Wednesday March 06, 2013 @03:43PM (#5333769)
you are basing your 'token' on md5(data+secret), however md5 (and other hash functions) are easily extended when data and token are known, even without knowing secret. Basically, given data and token, I can produce a different token, that matches a (somewhat) different data, without knowing secret.
Re:Show HN: Embed Full-Page Screenshots in any Blog / App / ... by dherken on Wednesday March 06, 2013 @03:49PM (#5333800)
Sure you could, but then why would one go through all the hassle just to get a (probably already cached) screenshot?
Re:Show HN: Embed Full-Page Screenshots in any Blog / App / ... by mmmooo on Wednesday March 06, 2013 @03:57PM (#5333859)
well, for starters, I could use your (paid) account to get free screenshots.
Re:Show HN: Embed Full-Page Screenshots in any Blog / App / ... by bpatrianakos on Wednesday March 06, 2013 @07:35PM (#5335103)
But if you knew how to do that then you could probably set up webkit2png in a tenth of the time.
Re:Show HN: Embed Full-Page Screenshots in any Blog / App / ... by mmmooo on Wednesday March 06, 2013 @08:25PM (#5335329)
True, but what you are saying is only complex applications need to be secure?
Re:Show HN: Embed Full-Page Screenshots in any Blog / App / ... by jerkingerkin on Wednesday March 06, 2013 @07:16PM (#5335009)
You clearly were not ready for production. Please take your SaaS product offline and fix it.

1) A Recursion vulnerability exists within your app - if I use your PHP sample code to take a a screenshot of itself, your service blows up.

2) You embed a fully usable API key and token in your landing page. Line 254 and 255: var urlPart = "apikey=6101EE5C99B145ECB79B4125BED74D19&url=" + $('#tryurl').val() + "&thumbnail_width=550&crop_height=440&width=1280&height=1024"; var token = calcMD5(urlPart + "9A8E44104F064A5B9AD410F0F2DC9558");

You might want to fix that.

Re:Show HN: Embed Full-Page Screenshots in any Blog / App / ... by dherken on Thursday March 07, 2013 @12:05AM (#5336207)
You're right, I've added both to our bug list. Thanks for pointing that out!
Re:Show HN: Embed Full-Page Screenshots in any Blog / App / ... by fpp on Wednesday March 06, 2013 @06:09PM (#5334672)
Kind of funny - you get German Google display ads in the screenshots - looks like a headless webkit client (similar to phantomjs) - clear your caches between the screenshots guys.
Re:Show HN: Embed Full-Page Screenshots in any Blog / App / ... by dncarter on Wednesday March 06, 2013 @04:18PM (#5334019)
its an inferior copy of urlbox.io.

It doesnt render fonts / webfonts properly.

Website design and docs look really poor compared to urlbox.io.

Re:Show HN: Embed Full-Page Screenshots in any Blog / App / ... by acketon on Wednesday March 06, 2013 @06:30PM (#5334790)
I see you have an option to crop the image... but what about offsetting the crop? I've looked at a few of these services and no one seems to give that option. I can process it myself but it would be nice to do it in one api call. For example set viewport to 1200 x 1900, crop to 300 x 400 at 500px from the top and 300px from the left. Or some coordinates from top and center perhaps...
Re:Show HN: Embed Full-Page Screenshots in any Blog / App / ... by jusob on Wednesday March 06, 2013 @07:04PM (#5334966)
https://browshot.com/api/documentation#screenshot_thumbnail , look at the left/top/right/bottom options
Re:Show HN: Embed Full-Page Screenshots in any Blog / App / ... by dherken on Thursday March 07, 2013 @12:03AM (#5336200)
I've added this to the to-do list...
Re:Show HN: Embed Full-Page Screenshots in any Blog / App / ... by csytan on Wednesday March 06, 2013 @04:15PM (#5333993)
There's a bug when handling fixed-position layouts:

http://www.url2picture.com/Picture/Png?apikey=6101EE5C99B145...

Re:Show HN: Embed Full-Page Screenshots in any Blog / App / ... by dherken on Wednesday March 06, 2013 @04:18PM (#5334022)
Thanks for pointing that out! I'll look into that!
Re:Show HN: Embed Full-Page Screenshots in any Blog / App / ... by hyperenergy on Wednesday March 06, 2013 @03:08PM (#5333480)
There doesn't seem to be pricing anywhere.
Re:Show HN: Embed Full-Page Screenshots in any Blog / App / ... by dherken on Wednesday March 06, 2013 @03:09PM (#5333491)
You can find the Pricing on the Signup-Page: http://url2picture.com/Account/Register
Re:Show HN: Embed Full-Page Screenshots in any Blog / App / ... by dools on Wednesday March 06, 2013 @06:35PM (#5334816)
Anyone looking for a simple way to do this on an ad-hoc basis from their own machine can check out this python script: http://www.paulhammond.org/webkit2png/
Re:Show HN: Embed Full-Page Screenshots in any Blog / App / ... by thinker on Wednesday March 06, 2013 @03:51PM (#5333810)
Does it let you take a screenshot of the whole height of the page? I see that you can specify the height of the viewport, but what if I want a whole long screenshot of as much height is rendered?
Re:Show HN: Embed Full-Page Screenshots in any Blog / App / ... by dherken on Wednesday March 06, 2013 @03:55PM (#5333839)
Yes it does. See this example of the nytimes: http://url2picture.com/Picture/Png/?apikey=6101EE5C99B145ECB...

Of course there are limits to this as some websites have "endless" scrolling (like pintrest)

Re:Show HN: Embed Full-Page Screenshots in any Blog / App / ... by Kudos on Wednesday March 06, 2013 @04:10PM (#5333962)
Ergh, Windows font aliasing.
Re:Show HN: Embed Full-Page Screenshots in any Blog / App / ... by sjs382 on Wednesday March 06, 2013 @04:06PM (#5333920)
How does it handle responsive websites?
Re:Show HN: Embed Full-Page Screenshots in any Blog / App / ... by dherken on Wednesday March 06, 2013 @04:11PM (#5333966)
You can specify the viewport size. For example the smashing magazine using 1024x768 viewport: http://www.url2picture.com/Picture/Png/?apikey=6101EE5C99B14...

And using 400x400 viewport: http://www.url2picture.com/Picture/Png/?apikey=6101EE5C99B14...

Re:Show HN: Embed Full-Page Screenshots in any Blog / App / ... by jusob on Wednesday March 06, 2013 @07:02PM (#5334954)
The domain name and the home page look too much like http:/www.url2png.com/
Re:Show HN: Embed Full-Page Screenshots in any Blog / App / ... by url2png on Thursday March 07, 2013 @03:06PM (#5339839)
Agreed. But as they say imitation is the sincerest form of flattery.

:)

Re:Show HN: Embed Full-Page Screenshots in any Blog / App / ... by pdenya on Wednesday March 06, 2013 @06:45PM (#5334857)
Niggling feedback: This is a tool for developers, it's awesome that you have code on the homepage but I'd like to see that code:

- Formatted in a way that I can read it without scrolling

- Not using capitalized variables

Re:Show HN: Embed Full-Page Screenshots in any Blog / App / ... by sergiotapia on Wednesday March 06, 2013 @07:39PM (#5335125)
In PHP it's a good practice to capitalize variables when they are "static". (Not LITERAL static)
Re:Show HN: Embed Full-Page Screenshots in any Blog / App / ... by sjs382 on Wednesday March 06, 2013 @04:06PM (#5333924)
What's the market for this?
Re:Show HN: Embed Full-Page Screenshots in any Blog / App / ... by dherken on Wednesday March 06, 2013 @04:16PM (#5334008)
Oh quite different: Mostly it's used to create images inside reports or to display thumbnails for the user.

The Full-Page Screenshots is the main selling point at the moment...