将UIImage转换为tiff/tif文件 [英] Convert UIImage to tiff/tif file

查看:159
本文介绍了将UIImage转换为tiff/tif文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的iPhone应用程序中,我需要将UIImage转换为tiff/tif文件,以使用tif类型的参数来调用某些API.因此,我应该从iPhone照片库中获取UIImage或从相机中获取照片.请让我知道是否可以进行这种转换(将UIImage转换为tif/tiff),如果可能的话,什么是最好的转换方法.预先感谢.

In my iPhone app, I need to convert UIImage to tiff/tif file for calling some API with tif type of parameter. So I'm supposed to get the UIImage from iphone photo library or taking a photo from camera. Please let me know whether this conversion (UIImage to tif/tiff) is possible and if possible what would be the best way to do it. Thanks in advance.

推荐答案

ImageMagick 运行在iOS上似乎很合适.但是,假设您有权访问该API,我将考虑对其进行修改.如果大多数图像已经采用某种格式并且必须进行转换,那么您的客户就需要等待很多时间.如果您的API可以与多种格式的图像进行交互,那么您已经为许多人节省了一些时间.

ImageMagick runs on iOS and seems to fit the bill. However, I would consider modifying the API, assuming you have access to it. If the majority of images are already in a certain format and have to be converted, that's a lot of waiting time for your customers. If your API can interact with images in several formats, then you have saved a bit of time for a number of people.

这篇关于将UIImage转换为tiff/tif文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆