Jump to content

Recommended Posts

Posted

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?

Posted

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.

Posted (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 by mr-fan
  • Like 2
Posted

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!

Posted

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...