Skip to content

sic2/ThumbMe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

ThumbMe

A simple and easy-to-use Java class to get the embedded thumbnail image from a JPEG

How to use it

  • Copy the ThumbStream.java into your project
  • Then use the stream this way: ThumbStream ts = new ThumbStream("test.jpg");
  • The ThumbStream does return the embedded thumbnail in the JPEG image on read() functions

Some JPEG images do not have any embedded thumbnail. In that case you can check if the thumbnail exists by calling ts.hasThumbnail()

Example

ThumbStream ts = new ThumbStream("test.jpg");
final Path destination = Paths.get("test-thumb.jpg");
Files.copy(ts, destination);

TODO

  • Capture thumbnail info (width, height, compression)
  • Test against JPEG with thumbnail in TIFF format

About

A simple and easy-to-use Java class to get the embedded thumbnail image from a JPEG

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published