免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 5329 | 回复: 5
打印 上一主题 下一主题

Tiff转换成JPG格式 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2003-12-04 14:03 |只看该作者 |倒序浏览
在BSD的命令行下如何把TIFF格式的文件转换成JPG格式的文件

论坛徽章:
0
2 [报告]
发表于 2003-12-04 16:52 |只看该作者

Tiff转换成JPG格式

你有什么具体需求,应用在哪里?

论坛徽章:
0
3 [报告]
发表于 2003-12-04 23:20 |只看该作者

Tiff转换成JPG格式


  1. convert(1)                                                          convert(1)
  2.                                                                                 
  3.        NAME    convert - convert an image or sequence of images
  4.                                                                                 
  5. SYNOPSIS
  6.        convert [ options ... ] input_file output_file
  7.                                                                                 
  8. DESCRIPTION
  9.        Convert converts an input file using one image format to an output file
  10.        with a differing image format. In addition, various types of image pro-
  11.        cessing  can  be performed on the converted image during the conversion
  12.        process. Convert recognizes the image formats listed in ImageMagick(1).
  13.                                                                                 
  14. EXAMPLES
  15.        To make a thumbnail of a JPEG image, use:
  16.                                                                                 
  17.            convert -size 120x120 cockatoo.jpg -resize 120x120
  18.                    +profile "*" thumbnail.jpg
  19.                                                                                 
  20.        In  this example, '-size 120x120' gives a hint to the JPEG decoder that
  21.        the image is going to be downscaled to  120x120,  allowing  it  to  run
  22.        faster  by avoiding returning full-resolution images to ImageMagick for
  23.        the subsequent resizing operation.   The  output  image.   It  will  be
  24.        scaled  so  its  largest  dimension  is  120 pixels.  The that might be
  25.        present in the input and aren't needed in the thumbnail.
  26.                                                                                 
  27.        To convert a MIFF image of a cockatoo to a SUN raster image, use:
  28.                                                                                 
  29.            convert cockatoo.miff sun:cockatoo.ras
  30.                                                                                 
  31.        To convert a multi-page PostScript document to  individual  FAX  pages,
  32.        use:
  33.                                                                                 
  34.            convert -monochrome document.ps fax:page
  35.                                                                                 
  36.        To  convert  a TIFF image to a PostScript A4 page with the image in the
  37.        lower left-hand corner, use:
  38.                                                                                 
  39.            convert -page A4+0+0 image.tiff document.ps
  40.                                                                                 
  41.        To convert a raw Gray image with  a  128  byte  header  to  a  portable
  42.        graymap, use:
  43.                                                                                 
  44.            convert -depth 8 -size 768x512+128 gray:raw
  45.                    image.pgm
  46.                                                                                 
  47.        In  this example, "raw" is the input file.  Its format is "gray" and it
  48.        has the dimensions and number of header bytes specified  by  the  -size
  49.        option and the sample depth specified by the -depth option.  The output
  50.        file is "image.pgm".  The suffix ".pgm" specifies its format.
  51.                                                                                 
  52.        To convert a Photo CD image to a TIFF image, use:
  53.                                                                                 
  54.            convert -size 1536x1024 img0009.pcd image.tiff
  55.            convert img0009.pcd[4] image.tiff
  56.                                                                                 
  57.        To create a visual image directory of all your JPEG images, use:
  58.                                                                                 
  59.            convert 'vid:*.jpg' directory.miff
  60.                                                                                 
  61.        To annotate an image with  blue  text  using  font  12x24  at  position
  62.        (100,100), use:
  63.                                                                                 
  64.            convert -font helvetica -fill blue
  65.                    -draw "text 100,100 Cockatoo"
  66.                    bird.jpg bird.miff
  67.                                                                                 
  68.        To tile a 640x480 image with a JPEG texture with bumps use:
  69.                                                                                 
  70.            convert -size 640x480 tile:bumps.jpg tiled.png
  71.                                                                                 
  72.        To  surround  an  icon with an ornamental border to use with Mosaic(1),
  73.        use:
  74.                                                                                 
  75.            convert -mattecolor "#697B8F" -frame 6x6 bird.jpg
  76.                    icon.png
  77.                                                                                 
  78.        To create a MNG animation from a DNA molecule sequence, use:
  79.                                                                                 
  80.            convert -delay 20 dna.* dna.mng
  81.                                                                                 
  82. OPTIONS
  83.        Options are processed in command line order. Any option you specify  on
  84.        the  command line remains in effect for the set of images that follows,
  85.        until the set is terminated by the appearance of any option  or  -noop.
  86.        Some  options  only  affect  the decoding of images and others only the
  87.        encoding.  The latter can appear after the final group of input images.
  88.                                                                                 
  89.        For a more detailed description of each option, see ImageMagick(1).
  90.                                                                                 
  91.        -adjoin
  92.               join images into a single multi-image file
  93.                                                                                 
  94.        -antialias
  95.               remove pixel aliasing
  96.                                                                                 
  97.        -append
  98.               append a set of images
  99.                                                                                 
  100.        -authenticate <string>;
  101.               decrypt image with this password
  102.                                                                                 
  103.        -average
  104.               average a set of images
  105.                                                                                 
  106.        -background <color>;
  107.               the background color
  108.                                                                                 
  109.        -blue-primary <x>;,<y>;
  110.               blue chromaticity primary point
  111.                                                                                 
  112.        -blur <radius>;{x<sigma>;}
  113.               blur the image with a Gaussian operator
  114.                                                                                 
  115.        -border <width>;x<height>;
  116.               surround the image with a border of color
  117.                                                                                 
  118.        -bordercolor <color>;
  119.               the border color
  120.                                                                                 
  121.        -box <color>;
  122.               set the color of the annotation bounding box
  123.                                                                                 
  124.        -cache <threshold>;
  125.               (This option has been replaced by the -limit option)
  126.                                                                                 
  127.        -channel <type>;
  128.               the type of channel
  129.                                                                                 
  130.        -charcoal <factor>;
  131.               simulate a charcoal drawing
  132.                                                                                 
  133.        -chop <width>;x<height>;{+-}<x>;{+-}<y>;{%}
  134.               remove pixels from the interior of an image
  135.                                                                                 
  136.        -clip  apply the clipping path, if one is present
  137.                                                                                 
  138.        -coalesce
  139.               merge a sequence of images
  140.                                                                                 
  141.        -colorize <value>;
  142.               colorize the image with the pen color
  143. ze the image with the pen color
  144.                                                                                 
  145.        -dispose <method>;
  146.               GIF disposal method
  147.                                                                                 
  148.        -dither
  149.               apply Floyd/Steinberg error diffusion to the image
  150.                                                                                 
  151.        -draw <string>;
  152.               annotate an image with one or more graphic primitives
  153.                                                                                 
  154.        -edge <radius>;
  155.               detect edges within an image
  156.                                                                                 
  157.        -emboss <radius>;
  158.               emboss an image
  159.                                                                                 
  160.        -encoding <type>;
  161.               specify the text encoding
  162.                                                                                 
  163.        -endian <type>;
  164.               specify endianness (MSB or LSB) of output image
  165.                                                                                 
  166.        -enhance
  167.               apply a digital filter to enhance a noisy image
  168.                                                                                 
  169.        -equalize
  170.               perform histogram equalization to the image
  171.                                                                                 
  172.        -extract <width>;x<height>;{+-}<x>;{+-}<y>;{%}{@} {!}{<}{>;}
  173.               extract an area from the image while decoding
  174.                                                                                 
  175.        -fill <color>;
  176.               color to use when filling a graphic primitive
  177.                                                                                 
  178.        -filter <type>;
  179.               use this type of filter when resizing an image
  180.                                                                                 
  181.        -flatten
  182.               flatten a sequence of images
  183.                                                                                 
  184.        -flip  create a "mirror image"
  185.                                                                                 
  186.        -flop  create a "mirror image"
  187.                                                                                 
  188.        -font <name>;
  189.               use this font when annotating the image with text
  190.                                                                                 
  191.        -frame <width>;x<height>;+<outer bevel width>;+<inner bevel width>;
  192.               surround the image with an ornamental border
  193.                                                                                 
  194.                                                                                 
  195.        -fuzz <distance>;{%}
  196.               colors within this distance are considered equal
  197.                                                                                 
  198.        -gamma <value>;
  199.               level of gamma correction
  200.                                                                                 
  201.        -Gaussian <radius>;{x<sigma>;}
  202.               blur the image with a Gaussian operator
  203.                                                                                 
  204.        -geometry <width>;x<height>;{+-}<x>;{+-}<y>;{%}{@} {!}{<}{>;}
  205.               preferred size and location of the Image window.
  206.                                                                                 
  207.        -gravity <type>;
  208.               direction primitive  gravitates to when annotating the image.
  209.                                                                                 
  210.        -green-primary <x>;,<y>;
  211.               green chromaticity primary point
  212.                                                                                 
  213.        -help  print usage instructions
  214.                                                                                 
  215.        -implode <factor>;
  216.               implode image pixels about the center
  217.                                                                                 
  218.        -intent <type>;
  219.               use this type of rendering intent when managing the image color
  220.                                                                                 
  221.        -interlace <type>;
  222.               the type of interlacing scheme
  223.                                                                                 
  224.        -label <name>;
  225.               assign a label to an image
  226.                                                                                 
  227.        -lat <width>;x<height>;{+-}<offset>;{%}
  228.               perform local adaptive thresholding
  229.                                                                                 
  230.        -level <black_point>;{,<white_point>;}{%}{,<gamma>;}
  231.               adjust the level of image contrast
  232.                                                                                 
  233.        -limit <type>; <value>;
  234.               Disk, File, Map, or Memory resource limit
  235.                                                                                 
  236.        -list <type>;
  237.               the type of list
  238.                                                                                 
  239.        -log <string>;
  240.                                                                                 
  241.        -loop <iterations>;
  242. ......
复制代码

论坛徽章:
0
4 [报告]
发表于 2003-12-05 14:29 |只看该作者

Tiff转换成JPG格式

好象没有convert这个命令啊,
我用做传真,然后把TIFF转成JPG让用户看

论坛徽章:
0
5 [报告]
发表于 2003-12-06 09:46 |只看该作者

Tiff转换成JPG格式

大概convert是imagemagick里的吧

论坛徽章:
0
6 [报告]
发表于 2003-12-08 09:06 |只看该作者

Tiff转换成JPG格式

哦,是的,谢谢了
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP