C、C++或用于将 JPEG 图像转换为 TIFF 格式的 Objective-C 代码
我正在寻找一种方法将 JPEG 图像转换为 TIFF 格式,然后将此 TIFF 图像保留为 base64 格式。解决方案可以是 C、C++ 或 Objective C...请告知 提前致谢
I am looking for a method to convert JPEG images to TIFF format then keep this TIFF image in base64 format. The solution can be in C, C++ or objective C ... Please advise
Thanks in advance
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我以前用过 ImageMagick,效果很好。我使用了 RMagick,Ruby 的绑定,但它们也有 C++ 绑定 。至于将 tiff 图像保持为 base64 格式,您需要另一个库,例如 libb64。 ImageMagick 片段应该像这样简单
(示例修改自 http://www.imagemagick.org/Magick++ /Image.html)
要满足内存要求,很容易。
我将让您完成了解如何从 blob 获取字节的工作。
I've used ImageMagick before and it works well. I used RMagick, the bindings for Ruby, but they have C++ bindings too. As far as keeping the tiff image in base64 format, you'll want another library like libb64. The ImageMagick piece should be as simple as
(Example modified from http://www.imagemagick.org/Magick++/Image.html)
To accomodate the in memory requirement, easy enough.
I'll let you do the work of seeing how you'll get the bytes from the blob.
libgd 或 ImageMagick 应该可以解决问题。
libgd or ImageMagick should do the trick.