Skip to content
suzumura-ss edited this page Sep 13, 2010 · 6 revisions

Welcome to the tifftojpeg wiki.

Tiff to JPEG

Copyright 2009, Toshiyuki Suzumura. under GPL license.

Release note

  • Mar 11 2009: version 0.1 … first commit.

Description:

“tifftojpeg” is console utility, it export each images(JPEG) from TIFF.

You can specify:

  • Quality of JPEG compression.
  • Write JPEG stream to “file” or “stdout”.

    “stdout” is useful to use with image prosessor, e.g. “ImageMagick”.

What is different with ‘pure-ImageMagick’ ?

ImageMagick is load all image-data into memory ( or tempolary file ).
So, If we handle HUGE-TIFF file, system will become slashing.

‘tifftojpeg’ is trying to resolve this probrem.

How to build:

This program is depend on following library and packages:

  • libjpeg-devel
  • libtiff-devel

First, you must install these library and packages, And:

$ make $ make install

It install into “/usr/local/bin” by default.

How to use:

See “tifftojpeg -h” for command-line options.

Sample:

$ tifftojpeg foo.tiff bar_%d.jpg

=> Render “bar_n.jpg” from “foo.tiff”, JPEG quality is 100(BEST). n=1,…

$ tifftojpeg foo.tiff -q 50 bar_%d.jpg

=> Render “bar_n.jpg” from “foo.tiff”, JPEG quality is 50. n=1,…

$ flashtojpeg foo.tiff -r "200x200>" thumb_%d.jpg

=> Render “thumb_n.jpg” from “foo.tiff”, resized-JPEG quality is 100(BEST). n=1,…
Resize-geomtory is same as ImageMagick::convert.