Skip to content
/ thumber Public

Python thumbnailing library for creating n thumbnails into a single file

License

Notifications You must be signed in to change notification settings

Ormod/thumber

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Thumber:

Is a library for creating thumbnails and more importantly, an index for them. 

The primary use case for this library is to create n+1 thumbnails out of a single media file 
and then create a single blob out of these with an index for easy access to individual thumbnails.
Usage:

thumber store <input_image_file> <output_thumbnail_index_file>
thumber load <input_thumbnail_index> <size> <output_thumbnail_image.jpg>

Format of the index file is:
<2 byte version><2 byte header length><json header><thumbnail 1><thumbnail n>

Json header:
{'128x128xjpg': [start_offset, end_offset], '32x32xjpg': [start_offset, end_offset]}

For licensing check the LICENSE file.

Copyright Hannu Valtonen 2011

About

Python thumbnailing library for creating n thumbnails into a single file

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages