【问题标题】:Color box not showing Tiff images in my php program颜色框未在我的 php 程序中显示 Tiff 图像
【发布时间】:2012-02-23 20:21:28
【问题描述】:

在我的程序中,我无法使用颜色框查看 tiff 文件,我正在使用 php codelgniter 框架开发网站。

【问题讨论】:

    标签: php css image web colorbox


    【解决方案1】:

    这可能是由于浏览器支持 TIFF 格式。

    查看http://en.wikipedia.org/wiki/Comparison_of_web_browsers#Image_format_support 以了解支持的文件类型。

    【讨论】:

      【解决方案2】:

      如果你的服务器上安装了 imagemagic(大多数 unix 主机都有它),它就像 ...

      <?php
      $exec = "convert /path/to/file.tiff /path/to/file.jpg";
      exec($exec, $yaks);
      //to view any errors >> // print_r($yaks);
      ?>
      

      $image = new Imagick('something.tiff');
      $image->setImageFormat('png');
      echo $image;
      

      【讨论】:

        猜你喜欢
        • 2012-01-17
        • 1970-01-01
        • 1970-01-01
        • 2018-07-15
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2014-04-15
        相关资源
        最近更新 更多