douhan9467
2013-07-09 22:28
浏览 257
已采纳

在没有Imagick的情况下,在PHP中将TIFF图像转换为PNG / JPG / GIF

I am working on a website for my client in which tiff images need to converted to png or jpg before they are assembled into a PDF.

I have read many articles, here and other sites, on this issue. They all recommend using Imagick to accomplish this. The problem is, my client's server does not have that extension installed, and the hosting company is unwilling to install the extension.

Nor is PDFLib installed on the server (which supports importing tiffs into a PDF).

Thanks.

图片转代码服务由CSDN问答提供 功能建议

我正在为我的客户开发一个网站,其中tiff图像需要在组装之前转换为png或jpg 到了PDF。

我已经在这个问题上阅读过很多文章,这里和其他网站。 他们都建议使用Imagick来实现这一目标。 问题是,我的客户端服务器没有安装该扩展,并且托管公司不愿意安装扩展。

服务器上也没有安装PDFLib(支持将tiff导入到服务器中) PDF)。

谢谢。

  • 写回答
  • 好问题 提建议
  • 追加酬金
  • 关注问题
  • 收藏
  • 邀请回答

1条回答 默认 最新

  • ds20021205 2013-07-09 22:38
    已采纳

    This is tricky because of the tiff format. You can do this for most input formats with native PHP functions to create an image object from the source file and then save that using imagejpeg or imagepng. But tiff has patent issues and I don't think it's supported. Have a look at the PHP GD and image functions available on your server. May be some help in the comments here: http://php.net/manual/en/function.pdf-open-image-file.php

    评论
    解决 无用
    打赏 举报

相关推荐 更多相似问题