Skip to content

Latest commit

 

History

10 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Titanium Thumbnail Generator

Generate high performance thumbnails for common file types natively using the Titanium SDK.

Note: Android currently only supports PDF files. For other file types, please use the ti.imagefactory function imageAsThumbnail.

Requirements

  • Titanium SDK 9.2.0+
  • iOS 13+ / Android 5.1+

Example

import ThumbnailGenerator from 'ti.thumbnail';

ThumbnailGenerator.generateThumbnail({
    url: '/local/path/to/my.pdf',
    size: { width: 600, height: 600 },
    callback: event => {
        if (!event.success) {
            alert(event.error);
            return;
        }

        imageView.image = event.image;
    }
});

License

MIT

Author

Hans Knöchel

About

Generate thumbnails for common file types (e.g. PDF) natively in Appcelerator Titanium.

Topics

Resources

Stars

10 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages