iPhone 应用程序可以为通过相机或照片库获取的图像生成缩略图
我的应用程序允许用户从相机/照片库获取图片/图像,然后应用程序会将图像上传到远程存储。由于在某些场景中会使用这些图像的缩略图,因此我需要生成缩略图。
问题是
应用程序是否应该在获取原始/原始图像时生成缩略图?
- 同时将原始图像及其至少 2 个缩略图从应用程序上传到远程存储 - 假设其 Amazon S3 或 Google App Engine
是否有任何示例代码可以在 iPhone 上进行图像转换?
My app allows user to obtain picture/image from camera/photo gallery and then the app will upload the images to remote storage. Since the thumbnail images of those images will be used in some scenarios, I need to generate the thumbnail images.
The questions are
should the thumbnail images be generated by the app at the time when the original/raw image is obtained?
is it achievable to upload a raw image and at least 2 of its thumbnail images at the same time from the app to the remote storage - let's say its Amazon S3 or Google App Engine
is there any sample code out there that does the image transformation on iPhone?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
顺便说一句,至于将照片上传到服务器,我曾经使用 ASIFormDataRequest 将我的照片发布到服务器。效果很好。
希望有帮助。 :-)
btw, as for uploading photos to servers, I once used the ASIFormDataRequest to post my photos to a server. It worked pretty well.
Hope it helps. :-)