Skip to content

This API by PHP that get the thumbnail images of the specified URL from pagepeeker and, tunnel or convert to it base64.

License

Notifications You must be signed in to change notification settings

hiroshikuze/get-thumbnail-from-pagepeeker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Get thumbnail from PagePeeker

The PHP by API to get the thumbnail of the specified page.

Description

August 2019, free.pagepeeker.com cannot obtain thumbnail images via SSL.
The API, If OGP is not specified, a page thumbnail is generated with PagePeeker, processed to the specified size, converted to base64 and output.

Example of use

Paste Title / ジグソーTools ~ 指定したWebページのURLを<a>タグで囲むWebサービス
Thumbnail acquisition part in Paste Title (HTML or Markdown).

Requirement

This program has been tested with PHP7.

Usage

get_thumbnail.php?size=[size]&base64=[base64]&dont_use_ogp=[dont_use_ogp]&url=[url]
No Item Type Must Comment Example
1 size string yes Thumbnail size.
Select t,s,m,l,x.
See PagePeeker API document.
t
2 base64 boolean yes Is the return value acquired in base64? true
3 dont_use_ogp boolean no Force PagePeeker to generate thumbnails without using OGP. false(default)
4 url string yes Thumbnail acquisition source. http://bit.ly/2ZVDTyD

Install

Put common.php and thumbnail.php in the same folder.

Test

Use postman, and import "test/GitHub.postman_collection.json".

Contribution

  1. Fork it ( http://github.com/hiroshikuze/get-thumbnail-from-pagepeeker/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

Licence

MIT

Author

hiroshikuze

Donation

Author's wish list by Amazon(Japanese)

About

This API by PHP that get the thumbnail images of the specified URL from pagepeeker and, tunnel or convert to it base64.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages