从IFF和EXR格式到JPEG格式的图像转换 [英] Image conversion from IFF and EXR formats to JPEG format
问题描述
我正在使用转换Desktop / iff_image.iff Desktop / iff_image.jpg
将我的图片转换为JPEG格式。
I am using convert Desktop/iff_image.iff Desktop/iff_image.jpg
to convert my images to JPEG format.
但是得到
convert: no decode delegate for this image format `Desktop/iff_image.iff' @ error/constitute.c/ReadImage/552.
convert: no images defined `Desktop/iff_image.jpg' @ error/convert.c/ConvertImageCommand/3127.
对于.tif,.tiff,.cin,.dpx扩展,它正常工作。
For .tif, .tiff, .cin, .dpx extensions it is working properly.
该问题仅适用于.iff和.exr扩展。
The issue is coming only for .iff and .exr extensions.
推荐答案
IFF
我不熟悉名为'IFF'的格式。很抱歉这个没有帮助......
IFF
I am not familiar with a format named 'IFF'. Sorry to be of no help for this one...
支持读写EXR格式,您的ImageMagick安装需要...
For support of reading and writing the EXR format, your ImageMagick installation needs to have...
- ...访问 OpenEXR 库(也必须安装在您的系统上);
- ...构建时支持OpenEXR 委托。
- ...access to the OpenEXR library (which also must be installed on your system);
- ...been built with support for the OpenEXR delegate.
在ImageMagick中,'委托'是支持ImageMagick处理格式的外部程序或辅助工具它本身无法处理。
In ImageMagick, 'delegates' are external programs or helper utilities which support ImageMagick to handle formats which it cannot handle on its own.
ImageMagick中最常见的代理之一是 Ghostscript 。 Ghostscript需要处理PDF或PostScript输入文件,因为ImageMagick只能处理光栅格式。因此,Ghostscript代表ImageMagick将PDF和PS转换为光栅图像,然后将这些栅格数据移交给IM,然后执行其余的所需工作。
One of the most common delegates found in ImageMagick is Ghostscript. Ghostscript is required to process PDF or PostScript input files, because ImageMagick can only handle raster formats. So Ghostscript converts PDFs and PS to raster images on behalf of ImageMagick, then hands over these raster data to IM, which then does the rest of the required work.
打印所有内置委托的列表,运行此命令(在Linux或Mac OS X上):
To print the list of all built-in delegates, run this command (on Linux or Mac OS X):
convert -version | grep Delegates
相应的Windows命令是:
The respective Windows command is:
convert -version | findstr Delegates
我在系统上看到的关于此命令的输出是:
The output I see on my system for this command is this:
Delegates (built-in): bzlib cairo djvu fftw fontconfig freetype gslib gvc jbig \
jng jp2 jpeg lcms lqr ltdl lzma openexr pangocairo png \
ps rsvg tiff webp wmf x xml zlib
支持的代表列表应该有其中 openexr
。如果不存在,则需要安装具有它的ImageMagick版本。
The list of supported delegates should have openexr
amongst them. If it is not there, you need to install a version of ImageMagick that has it.
要检查已使用哪些编译时选项来构建您的ImageMagick版本,运行
To check which compile-time options have been used to build your version of ImageMagick, run
convert -list configure
如果亚麻布开始 DELEGATES
未列出 openexr
,则系统的二进制包还没有考虑OpenEXR。如果列出 ,但仍无法正常工作,则其他错误...
If the linen starting DELEGATES
does not list openexr
, the binary package for your system has not been built with OpenEXR in mind. If it is listed, but still not working, something else is wrong...
在我的系统上,我明白这一点:
On my system, I see this:
Path: /opt/local/lib/ImageMagick-6.9.0//config-Q16/configure.xml
Name Value
-------------------------------------------------------------------------------
CC /usr/bin/clang
CFLAGS -I/opt/local/include/lqr-1 -I/opt/local/include/glib-2.0 \
-I/opt/local/lib/glib-2.0/include -I/opt/local/include \
-I/opt/local/include/freetype2 -I/opt/local/include \
-I/opt/local/include/libpng16 -pipe -Os -arch x86_64 \
-Wall -march=corei7-avx -fexceptions -D_FORTIFY_SOURCE=0 \
-D_THREAD_SAFE -pthread -DMAGICKCORE_HDRI_ENABLE=0 \
-DMAGICKCORE_QUANTUM_DEPTH=16
CODER_PATH /opt/local/lib/ImageMagick-6.9.0/modules-Q16/coders
CONFIGURE ./configure '--prefix=/opt/local' '--enable-shared' \
'--enable-static' '--disable-ltdl-install' \
'--disable-silent-rules' '--with-frozenpaths' \
'--with-openexr' '--disable-hdri' '--with-dps' \
'--with-bzlib' '--with-djvu' '--with-fontconfig' \
'--with-gslib' '--with-jbig' '--with-jpeg' '--with-lcms' \
'--with-openjp2' '--with-png' '--with-tiff' '--with-webp' \
'--with-zlib' '--with-modules' '--with-xml' \
'--without-perl' '--without-fpx' '--with-wmf' \
'--with-gvc' '--with-rsvg' '--with-lqr' '--with-pango' \
'--with-x' '--with-gs-font-dir=/opt/local/share/fonts/urw-fonts' \
'CC=/usr/bin/clang' 'CFLAGS=-pipe -Os -arch x86_64' \
'LDFLAGS=-L/opt/local/lib -Wl,-headerpad_max_install_names \
-arch x86_64' 'CPPFLAGS=-I/opt/local/include' \
'CXX=/usr/bin/clang++' 'CXXFLAGS=-pipe -Os -arch x86_64 \
-stdlib=libc++'
CONFIGURE_PATH /opt/local/etc/ImageMagick-6/
COPYRIGHT Copyright (C) 1999-2014 ImageMagick Studio LLC
CPPFLAGS -I/opt/local/include/ImageMagick-6
CXX /usr/bin/clang++
CXXFLAGS -pipe -Os -arch x86_64 -stdlib=libc++ -D_THREAD_SAFE -pthread
DEFS -DHAVE_CONFIG_H
DELEGATES bzlib djvu mpeg fftw fontconfig freetype gslib jbig jng jpeg lcms \
lqr lzma openexr openjp2 pango png ps rsvg tiff webp wmf x xml zlib
DISTCHECK_CONFIG_FLAGS 'CC=/usr/bin/clang' 'CFLAGS=-pipe -Os -arch x86_64' \
'CPPFLAGS=-I/opt/local/include' 'CXX=/usr/bin/clang++' \
'LDFLAGS=-L/opt/local/lib -Wl,-headerpad_max_install_names \
-arch x86_64' --disable-deprecated --with-quantum-depth=16 \
--with-jemalloc=no --with-umem=no --with-autotrace=no \
--with-fpx=no --with-fontpath= --with-gs-font-dir=/opt/local/share/fonts/urw-fonts \
--with-perl=no
DOCUMENTATION_PATH /opt/local/share/doc/ImageMagick-6
EXEC-PREFIX /opt/local
EXECUTABLE_PATH /opt/local/bin
FEATURES DPC Modules
FILTER_PATH /opt/local/lib/ImageMagick-6.9.0/modules-Q16/filters
HOST x86_64-apple-darwin13.4.0
INCLUDE_PATH /opt/local/include/ImageMagick-6
LDFLAGS -L/opt/local/lib -L/opt/local/lib -Wl,-headerpad_max_install_names \
-arch x86_64 -L/opt/local/lib -L/opt/local/lib
LIB_VERSION 0x690
LIB_VERSION_NUMBER 6,9,0,0
LIBRARY_PATH /opt/local/lib/ImageMagick-6.9.0
LIBS -llcms2 -L/opt/local/lib -lfreetype -L/opt/local/lib -llqr-1 \
-lglib-2.0 -lintl -lfftw3 -L/opt/local/lib -lfontconfig -lfreetype \
-lXext -lSM -lICE -lX11 -lXt -L/opt/local/lib -llzma -lbz2 -lz \
-lltdl -lm
NAME ImageMagick
PCFLAGS -DMAGICKCORE_HDRI_ENABLE=0 -DMAGICKCORE_QUANTUM_DEPTH=16
PREFIX /opt/local
QuantumDepth 16
RELEASE_DATE 2014-12-06
SHARE_PATH /opt/local/share/ImageMagick-6
SHAREARCH_PATH /opt/local/lib/ImageMagick-6.9.0/config-Q16
SVN_REVISION 17068
TARGET_CPU x86_64
TARGET_OS darwin13.4.0
TARGET_VENDOR apple
VERSION 6.9.0
WEBSITE http://www.imagemagick.org
Path: [built-in]
Name Value
----------------------------------------------------------------------------
FEATURES
NAME ImageMagick
QuantumDepth 16
这篇关于从IFF和EXR格式到JPEG格式的图像转换的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!