Skip to content

Dart client for the Thumbor image service

License

Notifications You must be signed in to change notification settings

corprensa/thumbor

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dart Thumbor client

Dart client for the Thumbor image service

Usage

Add thumbor dependency to your pubspec.yaml:

dependencies:
  thumbor: 1.0.4

In your Dart code, import package:thumbor/thumbor.dart and create a Thumbor using the hostname of your server and optionally your key:

import 'package:thumbor/thumbor.dart';

final thumbor = Thumbor(host: "http://thumbor.example.com", key: "123456789");

Then you can use this instance to create ThumborUrl

final thumbor = Thumbor(host: "http://thumbor.example.com", key: "123456789");
thumbor
  .buildImage("http://images.google.com/im-feeling-lucky.jpg")
  .toUrl();

About

Dart client for the Thumbor image service

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Dart 100.0%