hafa Posted October 13, 2014 Share Posted October 13, 2014 Hi guys I was wondering if ProcessWire has some kind of screenshot generator service (url 2 image) like Wordpress has. Or perhaps anyone knows/used a fast, easy to use service for this purpose? Link to comment Share on other sites More sharing options...
Nico Knoll Posted October 13, 2014 Share Posted October 13, 2014 Don't think WordPress has this in the core. Maybe a Plugin. Do you have a link? Link to comment Share on other sites More sharing options...
hafa Posted October 13, 2014 Author Share Posted October 13, 2014 Don't think WordPress has this in the core. Maybe a Plugin. Do you have a link? Yep here's a link on how to do it http://code.tutsplus.com/articles/how-to-generate-website-screenshots-for-your-wordpress-site--wp-22888 It's a service from wordpress.com, but you can use it on self hosted sites too Link to comment Share on other sites More sharing options...
Nico Knoll Posted October 13, 2014 Share Posted October 13, 2014 Why don't you just use this ervice then? It's not limited to WordPress: http://s.wordpress.com/mshots/v1/http://processwire.com 1 Link to comment Share on other sites More sharing options...
hafa Posted October 13, 2014 Author Share Posted October 13, 2014 to use their service on non-wordpress sites would be a violation of the wordpress.com terms of service, i'm almost sure and even if i could use it, i'm afraid it wouldn't be a solution for my project - a website gallery (similar to siteinspire.com) where users can submit their fav sites too. Link to comment Share on other sites More sharing options...
kongondo Posted October 13, 2014 Share Posted October 13, 2014 They also talk of this Link to comment Share on other sites More sharing options...
Nico Knoll Posted October 13, 2014 Share Posted October 13, 2014 @hafa: What should they do? Block your IP? They can't cancel your WordPress.com stuff. I would just use it. Dunno. Link to comment Share on other sites More sharing options...
mr-fan Posted October 13, 2014 Share Posted October 13, 2014 (edited) you mean something like this one: http://api.webthumbnail.org/?width=120&height=80&format=jpg&url=processwire.com/ this could made easy with hannacode module: https://processwire.com/talk/topic/3745-hanna-code/ here is some hannacode to import.....ready to use just like [[thumbnail]] or [[thumbnail w="200" h="100" url="www.your-page.com"]] !HannaCode:thumbnail:eyJuYW1lIjoidGh1bWJuYWlsIiwidHlwZSI6IjIiLCJjb2RlIjoiXC8qaGNfYXR0clxudz1cIjEyMFwiXG5oPVwiODBcIlxudXJsPVwicHJvY2Vzc3dpcmUuY29tXC9cIlxuaGNfYXR0cipcL1xuPD9waHBcclxuXHJcblwvXC9nZXQgc29tZSB0aHVtYm5haWxzIGZyb20gYSBzZXJ2aWNlIEFQSSBcclxuXC9cL2xpbmsgZXhhbXBsZTogaHR0cDpcL1wvYXBpLndlYnRodW1ibmFpbC5vcmdcLz93aWR0aD0xMjAmaGVpZ2h0PTgwJmZvcm1hdD1qcGcmdXJsPXByb2Nlc3N3aXJlLmNvbVwvXHJcblxyXG5lY2hvIFwiPGltZyBzcmM9J2h0dHA6XC9cL2FwaS53ZWJ0aHVtYm5haWwub3JnXC8/d2lkdGg9JHcmaGVpZ2h0PSRoJmZvcm1hdD1qcGcmdXJsPSR1cmwnPjxcL2ltZz5cIjsifQ==/!HannaCode Have fun! forgot to link the free service http://webthumbnail.org/ Edited October 13, 2014 by mr-fan 2 Link to comment Share on other sites More sharing options...
mr-fan Posted October 13, 2014 Share Posted October 13, 2014 As addition if you wanna use this with a simple textfield for the url you could look into the code and use it in your template and set the variables with the API! Link to comment Share on other sites More sharing options...
hafa Posted October 13, 2014 Author Share Posted October 13, 2014 @mr-fan - your suggestion seems perfect, but it's taking forever to generate a preview on their site Link to comment Share on other sites More sharing options...
mr-fan Posted October 13, 2014 Share Posted October 13, 2014 If you related to other services you always have to get there.... But theire service is easy to use for all - for non w0rdpre$$ users, too. and you could save this thumbs to a processwire imagefield to store the thumb at your server and deliver it from your copy and not from there server, so the don't track usage: http://webthumbnail.org//api-reference //How to capture a website screenshot and save it to a file? <?php $thumb = new Webthumbnail("http://your.website.com"); $thumb ->setWidth(500) ->setHeight(500) ->captureToFile($path); //this could be adapted with the API and some fields for the url or even width and height to save it in a imagefield! may this is more secure - only new thumbs don't work if the service is shut down or not available.... reagards mr-fan Link to comment Share on other sites More sharing options...
hafa Posted October 13, 2014 Author Share Posted October 13, 2014 I'll def look into it. Thank you! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now