UNPKG
open-thumbnailer
Version:
latest (0.1.3)
0.1.3
0.1.2
0.1.1
0.1.0
An open source thumbnailer framework
markdaws/open-thumbnailer
open-thumbnailer
/
examples
/
404.js
17 lines
(13 loc)
•
330 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
var
OT
=
require
(
'../index'
);
var
thumbnailer =
new
OT
.
Thumbnailer
(); thumbnailer.
fromUrl
(
'http://www.google.com/404'
, __dirname +
'/thumbs/404.jpg'
,
function
(
error, thumbnail
) {
if
(error) {
console
.
dir
(error);
return
; }
console
.
dir
(thumbnail.
getInfo
()); } );