TransImage: Image File Conversion


Upload a file for use in TransImage:
Image type desired:
Geometry (e.g. 100%, or 300x400)

It's important to realize that not all formats can be successfully converted into any other format. Wish it were otherwise, but.... Some conversions I find particularly useful: Please don't load huge files (i.e., many megs) onto our server for conversion (at least without asking permission first!). We do save your results for a brief period, and this could rapidly chew up our disk space. Thanks!


TransImage

Developed by
Andy Long
Northern Kentucky University

How does this converter work?

TransImage can change just about any image format into any other. It is based on the freely available software convert, from ImageMagick, which works based on extensions (usually the final three letters following the period in a file name). E.g., to tranform a gif file to a tif file, we might issue the command

convert recent.gif recent.tif

What follows is the help command for convert in UNIX. This should give you some idea of the supported extensions. All you need to know to use TransImage, however, is the type of origin and type of destination file.


Version: @(#)ImageMagick 4.2.8 99/08/01 cristy@mystic.es.dupont.com
Copyright: Copyright 1999 E. I. du Pont de Nemours and Company

Usage: convert [options ...] file [ files... ] output_file

Where options include:
  -adjoin              join images into a single multi-image file
  -antialias           remove pixel-aliasing
  -append              append an image sequence
  -average             average an image sequence
  -blur factor         apply a filter to blur the image
  -border geometry     surround image with a border of color
  -bordercolor color   border color
  -box color           color for annotation bounding box
  -charcoal factor     simulate a charcoal drawing
  -coalesce            merge a sequence of images
  -colorize value      colorize the image with the pen color
  -colors value        preferred number of colors in the image
  -colorspace type     alternate image colorspace
  -comment string      annotate image with comment
  -compress type       type of image compression
  -contrast            enhance or reduce the image contrast
  -crop geometry       preferred size and location of the cropped image
  -cycle amount        cycle the image colormap
  -delay value         display the next image after pausing
  -deconstruct         break down an image sequence into constituent parts
  -density geometry    vertical and horizontal density of the image
  -depth value         depth of the image
  -despeckle           reduce the speckles within an image
  -display server      obtain image or font from this X server
  -dispose method      GIF disposal method
  -dither              apply Floyd/Steinberg error diffusion to image
  -draw string         annotate the image with a graphic primitive
  -edge factor         apply a filter to detect edges in the image
  -emboss              emboss an image
  -enhance             apply a digital filter to enhance a noisy image
  -equalize            perform histogram equalization to an image
  -filter type         use this filter when resizing an image
  -flip                flip image in the vertical direction
  -flop                flop image in the horizontal direction
  -font name           X11 font for displaying text
  -frame geometry      surround image with an ornamental border
  -fuzz distance       colors within this distance are considered equal
  -gamma value         level of gamma correction
  -geometry geometry   perferred size or location of the image
  -gravity type        vertical and horizontal text placement
  -implode amount      implode image pixels about the center
  -interlace type      None, Line, Plane, or Partition
  -label name          assign a label to an image
  -layer type          Red, Green, Blue, Matte
  -linewidth value     width of line in pixels
  -label name          assign a label to an image
  -loop iterations     add Netscape loop extension to your GIF animation
  -map filename        transform image colors to match this set of colors
  -matte               store matte channel if the image has one
  -modulate value      vary the brightness, saturation, and hue
  -monochrome          transform image to black and white
  -morph value         morph an image sequence
  -negate              replace every pixel with its complementary color 
  -noise               add or reduce noise in an image
  -normalize           transform image to span the full range of colors
  -opaque color        change this color to the pen color
  -page geometry       size and location of an image canvas
  -paint radius        simulate an oil painting
  -pen color           color for annotating or changing opaque color
  -pointsize value     pointsize of Postscript font
  -preview type        image preview type
  -profile filename    add ICC or IPTC information profile to image
  -quality value       JPEG/MIFF/PNG compression level
  -raise value         lighten/darken image edges to create a 3-D effect
  -region geometry     apply options to a portion of the image
  -roll geometry       roll an image vertically or horizontally
  -rotate degrees      apply Paeth rotation to the image
  -sample geometry     scale image with pixel sampling
  -scene value         image scene number
  -segment values      segment an image
  -seed value          pseudo-random number generator seed value
  -shade degrees       shade the image using a distant light source
  -sharpen factor      apply a filter to sharpen the image
  -shear geometry      slide one edge of the image along the X or Y axis
  -size geometry       width and height of image
  -solarize threshold   negate all pixels above the threshold level
  -spread amount       displace image pixels by a random amount
  -swirl degrees       swirl image pixels about the center
  -texture filename    name of texture to tile onto the image background
  -threshold value     threshold the image
  -transparent color   make this color transparent within the image
  -treedepth value     depth of the color classification tree
  -units type          Inch, Centimeter, or Undefined
  -verbose             print detailed information about the image
  -view                FlashPix viewing transforms
  -wave geometry       alter an image along a sine wave

By default, the image format of `file' is determined by its magic
number.  To specify a particular image format, precede the filename
with an image format name and a colon (i.e. ps:image) or specify the
image type as the filename suffix (i.e. image.ps).  Specify 'file' as
'-' for standard input or output.

Here is a list of image formats recognized by ImageMagick.  Mode 'rw+'
means ImageMagick can read, write, and save more than one image of a
sequence to the same blob or file.

    Format  Mode  Description
-------------------------------------------------------------------------
       AVS*  rw+   AVS X image
       BMP*  rw+   Microsoft Windows bitmap image
     BMP24*  rw+   Microsoft Windows 24-bit bitmap image
      CMYK*  rw-   Raw cyan, magenta, yellow, and black bytes
       DCM*  r--   Digital Imaging and Communications in Medicine image
       DCX*  rw+   ZSoft IBM PC multi-page Paintbrush
       DIB*  rw+   Microsoft Windows bitmap image
      EPDF*  rw-   Encapsulated Portable Document Format
       EPI*  r--   Adobe Encapsulated PostScript Interchange format
       EPS*  rw-   Adobe Encapsulated PostScript
      EPS2*  rw-   Adobe Level II Encapsulated PostScript
      EPSF*  rw-   Adobe Encapsulated PostScript
      EPSI*  rw-   Adobe Encapsulated PostScript Interchange format
       EPT*  rw-   Adobe Encapsulated PostScript with TIFF preview
       FAX*  rw+   Group 3 FAX
      FITS*  rw-   Flexible Image Transport System
        G3*  r--   Group 3 FAX
       GIF*  rw+   CompuServe graphics interchange format
     GIF87*  rw-   CompuServe graphics interchange format (version 87a)
 GRADATION*  r--   Gradual passing from one shade to another
   GRANITE   rw-   Granite texture
      GRAY*  rw+   Raw gray bytes
         H   rw-   Internal format
       HDF   rw+   Hierarchical Data Format
 HISTOGRAM*  rw-   Histogram of the image
       HTM*  -w-   Hypertext Markup Language with a client-side image map
      HTML   -w-   Hypertext Markup Language with a client-side image map
       ICB*  rw+   Truevision Targa image
       ICC*  rw-   ICC Color Profile
       ICO*  r--   Microsoft icon
  IMPLICIT*  ---   Internal format
      IPTC*  rw-   IPTC Newsphoto
       JPG*  rw-   Joint Photographic Experts Group JFIF format
      JPEG*  rw-   Joint Photographic Experts Group JFIF format
    JPEG24*  rw-   Joint Photographic Experts Group JFIF format
     LABEL*  r--   Text image format
      LOGO   rw-   ImageMagick Logo
       MAP*  rw-   Colormap intensities and indices
     MATTE*  rw+   Matte format
      MIFF*  rw+   Magick image format
       MNG*  rw+   Multiple-image Network Graphics
      MONO*  rw-   Bi-level bitmap in least-significant-byte first order
       MTV*  rw+   MTV Raytracing image format
  NETSCAPE   rw-   Netscape 216 color cube
      NULL*  r--   NULL image
        P7*  rw+   Xv thumbnail format
       PBM*  rw+   Portable bitmap format (black and white)
       PCD   rw-   Photo CD
      PCDS   rw-   Photo CD
       PCL*  rw-   Page Control Language
       PCT*  rw-   Apple Macintosh QuickDraw/PICT
       PCX*  rw-   ZSoft IBM PC Paintbrush
       PDF*  rw+   Portable Document Format
       PIC*  rw-   Apple Macintosh QuickDraw/PICT
      PICT*  rw-   Apple Macintosh QuickDraw/PICT
    PICT24*  rw-   24-bit Apple Macintosh QuickDraw/PICT
       PIX*  r--   Alias/Wavefront RLE image format
    PLASMA*  r--   Plasma fractal image
       PGM*  rw+   Portable graymap format (gray scale)
        PM*  rw-   X Windows system pixmap (color)
       PNG*  rw-   Portable Network Graphics
       PNM*  rw+   Portable anymap
       PPM*  rw+   Portable pixmap format (color)
   PREVIEW*  -w-   Show a preview an image enhancement, effect, or f/x
        PS*  rw+   Adobe PostScript
       PS2*  -w+   Adobe Level II PostScript
       PS3*  -w+   Adobe Level III PostScript
       PSD*  rw-   Adobe Photoshop bitmap
      PTIF   rw+   Pyramid encoded TIFF
       PWP*  r--   Seattle Film Works
       RAS*  rw+   SUN Rasterfile
       RGB*  rw+   Raw red, green, and blue bytes
      RGBA*  rw+   Raw red, green, blue, and matte bytes
       RLA*  r--   Alias/Wavefront image
       RLE   r--   Utah Run length encoded image
       SCT*  r--   Scitex HandShake
       SFW*  r--   Seattle Film Works
       SGI*  rw+   Irix RGB image
     SHTML   -w-   Hypertext Markup Language with a client-side image map
   STEGANO*  r--   Steganographic image
       SUN*  rw+   SUN Rasterfile
      TEXT*  rw+   Raw text
       TGA*  rw+   Truevision Targa image
       TIF*  rw+   Tagged Image File Format
      TIFF*  rw+   Tagged Image File Format
    TIFF24*  rw+   24-bit Tagged Image File Format
      TILE*  r--   Tile image with a texture
       TIM*  r--   PSX TIM
       TXT*  rw+   Raw text
       UIL*  rw-   X-Motif UIL table
      UYVY   rw-   16bit/pixel interleaved YUV
       VDA*  rw+   Truevision Targa image
     VICAR*  rw-   VICAR rasterfile format
       VID*  rw+   Visual Image Directory
      VIFF*  rw+   Khoros Visualization image
       VST*  rw+   Truevision Targa image
         X*  rw-   X Image
       XBM*  rw-   X Windows system bitmap (black and white)
        XC*  r--   Constant image of X server color
       XPM*  rw-   X Windows system pixmap (color)
        XV*  rw+   Khoros Visualization image
       XWD*  rw-   X Windows system window dump (color)
       YUV   rw-   CCIR 601 4:1:1

* native blob support


ImageMagick uses these delegates to read or write image formats it does not
directly support:

Decode-Tag   Encode-Tag  Delegate
-------------------------------------------------------------------------
          <= bzip        |bzip2
          <= compress    |/usr/bin/compress
          <= show        /data/local/bin/display
          <= zip         |/usr/sph/bin/gzip
    browse =>            /usr/sph/bin/netscape
      bzip =>            |bzip2
       cgm =>            ralcgm
  compress =>            |/usr/bin/uncompress
       dot =>            dot
       dvi =>            /usr/sph/bin/dvips
      edit =>            /usr/openwin/bin/xterm
       eps<=>pdf         /data/local/bin/gs
       eps<=>ps          /data/local/bin/gs
      file =>            /usr/sph/bin/GET
       fig =>            /afs/sph.umich.edu/user/a/aelon/bin/fig2dev
       ftp =>            /usr/sph/bin/GET
      gplt =>            /usr/bin/echo
  gs-color =>            /data/local/bin/gs
   gs-mono =>            /data/local/bin/gs
      hpgl =>            hp2xx
       htm =>            html2ps
      html =>            html2ps
      http =>            /usr/sph/bin/GET
      ilbm =>            /usr/sph/bin/ilbmtoppm
       man =>            /usr/sph/bin/groff
       mpg =>            mpeg2decode
       m2v =>            mpeg2decode
       pdf<=>eps         /data/local/bin/gs
       pdf<=>ps          /data/local/bin/gs
       pgp =>            pgpv
       pnm<= ilbm        /usr/sph/bin/ppmtoilbm
       pnm<= launch      gimp
       pnm<= win         /data/local/bin/display
       pov =>            povray
        ps<=>eps         /data/local/bin/gs
        ps<=>pdf         /data/local/bin/gs
        ps<= print       /usr/bin/lp
       rad =>            ra_ppm
      rgba<= rle         /data/local/bin/mogrify
      scan =>            scanimage
     shtml =>            html2ps
       txt<=>ps          /usr/sph/bin/enscript
       wmf =>            wmftogif
       yuv<= m2v         mpeg2encode
       yuv<= mpg         mpeg2encode
       zip =>            |/usr/sph/bin/gzip

powered-by-cgi.tcl logo Report problems with this script to Andy Long.
cgi.tcl script creator: Don Libes, of NIST.
cgi.tcl script butcher: Andy Long, of NKU.