doudiaozhi6658 2016-04-23 12:10
浏览 90

使用php或任何命令或使用tcpdf将svg转换为cmyk

I am inserting svg image into pdf using tcpdf. And tcpdf writes pdf in rgb using this command

$pdf->ImageSVG

But i want to convert it to cmyk. So i thought i have 2 way to do this,

1)convert svg to cmyk

For this i tried this command

shell_exec("convert {$svgPath} -profile 'Canon_iPF_5000_-_iPF_8000_-_iPF_9000.icc' {$svgoppath}"); 

But not working

2)convert pdf to cmyk while writing svg

I tried to find in google regarding this, but no proper documentation of tcpdf to force write pdf in cmyk

Is there any better way to achieve this?

  • 写回答

1条回答 默认 最新

  • doubo3384 2016-04-25 06:14
    关注

    The PHP way to convert to colorspace is to use iMagick's setimagecolorspace which is the equivalent to the exec(convert..... If option 1) doesn't work, chances are setimagecolorspace will fail too.

    Ensure that imagemagick library & utilities are installed on server, else you'd be spending hours debugging code that isn't broken.

    评论

报告相同问题?

悬赏问题

  • ¥15 基于51单片机的厨房煤气泄露检测报警系统设计
  • ¥15 路易威登官网 里边的参数逆向
  • ¥15 Arduino无法同时连接多个hx711模块,如何解决?
  • ¥50 需求一个up主付费课程
  • ¥20 模型在y分布之外的数据上预测能力不好如何解决
  • ¥15 processing提取音乐节奏
  • ¥15 gg加速器加速游戏时,提示不是x86架构
  • ¥15 python按要求编写程序
  • ¥15 Python输入字符串转化为列表排序具体见图,严格按照输入
  • ¥20 XP系统在重新启动后进不去桌面,一直黑屏。