https://github.com/hansemannn/titanium-thumbnail-generator
Generate thumbnails for common file types (e.g. PDF) natively in Appcelerator Titanium.
https://github.com/hansemannn/titanium-thumbnail-generator
appcelerator axway ios13 quick-look thumbnails titanium
Last synced: about 1 month ago
JSON representation
Generate thumbnails for common file types (e.g. PDF) natively in Appcelerator Titanium.
- Host: GitHub
- URL: https://github.com/hansemannn/titanium-thumbnail-generator
- Owner: hansemannn
- License: mit
- Created: 2019-09-16T07:37:06.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-08-16T09:44:31.000Z (almost 2 years ago)
- Last Synced: 2025-03-29T01:11:53.093Z (2 months ago)
- Topics: appcelerator, axway, ios13, quick-look, thumbnails, titanium
- Language: Kotlin
- Size: 155 KB
- Stars: 10
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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](https://github.com/tidev/ti.imagefactory/) function [imageAsThumbnail](https://github.com/tidev/ti.imagefactory/#imageasthumbnailblob-options).## Requirements
- [x] Titanium SDK 9.2.0+
- [x] iOS 13+ / Android 5.1+## Example
```js
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