简体   繁体   English

从PerlMagick获得Blob jp2格式?

[英]Obtaining blob jp2 format from PerlMagick?

I tried to convert png files withing a script using Image::Magick but it seems that it does not work for me (although I have an image in the $file, after the ImageToBlob command is executed, I have an empty blob): 我试图使用Image :: Magick使用脚本转换png文件,但似乎对我不起作用(尽管在$ file中有一个图像,在执行ImageToBlob命令后,我有一个空的Blob):

my $image = $file->ImageToBlob(magick => 'jp2', quality => 90);

Can anyone tell me what's the correct format to obtain a jpeg2000 file? 谁能告诉我获取jpeg2000文件的正确格式是什么? It works with other parameters for magick => 'png' / magick=>'jpg'; 它与magick =>'png'/ magick =>'jpg'的其他参数一起使用;

You probably don't have the JPEG2000 delegate installed, check by typing 您可能没有安装JPEG2000委托,请键入以下内容进行检查

identify -version

or 要么

configure -list delegates | grep -i delegates

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM