Image Magick 或 PHP 中不再有 JPEG 2000 了?
在此处的其他问题中,我看到 Image Magick 支持的旧图像文件格式列表,其中包括对 JPEG 2000 的支持,但是当我从 Ubuntu 18.02 系统的控制台运行“identify -list format”命令时,JPEG 2000 格式为全部失踪。 (见下文)。我正在运行 ImageMagick 6.9.7-4 Q16 x86_64 20170114。
搜索 WEB 会显示示例,显示如何将 jp2 文件转换为其他格式。但是当我尝试这些示例时,我收到如下错误消息:
“convert-im6.q16:此图像格式‘J2K’没有解码委托”
如果我尝试使用 ImageMagick 将 PNG 文件转换为 JPEG 2000,它会创建一个文件名中包含 .jp2 的文件,但会检查标头,这只是另一个 PNG 文件。
php.net 上的 Imagick 类的文档说它可以读取 JPEG-2000 图像,但是当我尝试读取图像时,我收到与转换命令行相同的错误“此图像格式'J2K'没有解码委托”程序得到。
我阅读了 Image Magick 版本 7 和 6 的 git 更改日志,没有提到放弃 JPEG 2000。或者根本没有提到它曾经存在过。
php.net 中的 GD 图像 API 在多个地方提到了 JPEG 2000,但是当我尝试使用它来读取 JEG 2000 图像时,它给出了以下错误消息:
“PHP 警告:数据格式无法识别”
我拥有的 jp2 文件可以由 GIMP 正确读取,但 GIMP 2.10.28 无法写入 JPEG 2000 图像文件。 JPEG 2000 官方网站将 GIMP 列为可以编写它们的应用程序,但不是我拥有的版本。
我感觉有人试图将 JPEG 2000 编辑到时间线之外。我记得 JPEG 2000,但没有人记得。我是疯了还是跳进了一条没人记得的时间线?是否还有其他方法可以在 PHP 程序或 Linux 命令行中读取 JPEG 2000 图像?
的“J”部分的输出:identify -list format
Format Module Mode Description
-------------------------------------------------------------------------------
ISOBRL6* BRAILLE -w- ISO/TR 11548-1 format 6dot
JBG* JBIG rw+ Joint Bi-level Image experts Group interchange format (2.1)
JBIG* JBIG rw+ Joint Bi-level Image experts Group interchange format (2.1)
JNG* PNG rw- JPEG Network Graphics
See http://www.libpng.org/pub/mng/ for details about the JNG
format.
JNX* JNX r-- Garmin tile format
JPE* JPEG rw- Joint Photographic Experts Group JFIF format (80)
JPEG* JPEG rw- Joint Photographic Experts Group JFIF format (80)
JPG* JPEG rw- Joint Photographic Experts Group JFIF format (80)
JPS* JPEG rw- Joint Photographic Experts Group JFIF format (80)
JSON JSON -w+ The image format and characteristics
K25 DNG r-- Kodak Digital Camera Raw Image Format
JPEG 2000 格式去了哪里?
In other questions here, I see old lists of image file formats supported by Image Magick that include support for JPEG 2000, but when I run the 'identify -list format' command from the console of my Ubuntu 18.02 system, the JPEG 2000 formats are all missing. (see below). I'm running ImageMagick 6.9.7-4 Q16 x86_64 20170114.
Searches of the WEB bring up examples showing how to convert jp2 files into other formats. But when I try these examples, I get error messages like this:
"convert-im6.q16: no decode delegate for this image format `J2K'"
If I try to use ImageMagick to convert a PNG file to JPEG 2000, it creates a file that has .jp2 in the file name, but examining the header, it is just another PNG file.
The documentation for the Imagick class at php.net says that it can read JPEG-2000 images, but when I try to read one, I get the same error "no decode delegate for this image format 'J2K'" that the convert command line program gets.
I read the git change logs for Image Magick version 7 and 6 and there is no mention of dropping JPEG 2000. Or any mention at all that it ever existed.
The GD image API in php.net mentions JPEG 2000 in several places, but when I try to use it to read a JEG 2000 image, it gives me the following error message:
"PHP Warning: Data is not in a recognized format"
The jp2 files that I have can be read correctly by GIMP but GIMP 2.10.28 does not have the ability to write JPEG 2000 image files. The JPEG 2000 official WEB site lists GIMP as an application that can write them, but not the version I have.
I feel like someone is trying to edit JPEG 2000 out of the timeline. I remember JPEG 2000 but nobody else does. Am I going crazy or have I jumped into a timeline where nobody else remembers it? Is there any remaining way to read a JPEG 2000 image in a PHP program or on a Linux command line?
Output from the "J" section of: identify -list format
Format Module Mode Description
-------------------------------------------------------------------------------
ISOBRL6* BRAILLE -w- ISO/TR 11548-1 format 6dot
JBG* JBIG rw+ Joint Bi-level Image experts Group interchange format (2.1)
JBIG* JBIG rw+ Joint Bi-level Image experts Group interchange format (2.1)
JNG* PNG rw- JPEG Network Graphics
See http://www.libpng.org/pub/mng/ for details about the JNG
format.
JNX* JNX r-- Garmin tile format
JPE* JPEG rw- Joint Photographic Experts Group JFIF format (80)
JPEG* JPEG rw- Joint Photographic Experts Group JFIF format (80)
JPG* JPEG rw- Joint Photographic Experts Group JFIF format (80)
JPS* JPEG rw- Joint Photographic Experts Group JFIF format (80)
JSON JSON -w+ The image format and characteristics
K25 DNG r-- Kodak Digital Camera Raw Image Format
Where did the JPEG 2000 formats go?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论