我想知道我从图库中获取的图像的图像格式(即JPFG/PNG等).
我需要从设备的图库中拍摄图像并以Base64格式将其发送到服务器,但服务器想知道图像格式.
任何帮助表示赞赏.
我正在使用CameraRoll.getPhotos从画廊获取照片。
import {
CameraRoll,
} from 'react-native';
CameraRoll.getPhotos(fetchParams).then((data) => {
});
Run Code Online (Sandbox Code Playgroud)
我在某些android手机上的图像方向有问题。我已经能够检测到大多数三星产品中发生的情况。
它的方向取决于您拍摄照片的方式。
portrait with home button in bottom position:90º
landscape with home button left position:180º
portrait with home button in top position:270º
landscape with home button right position:0º
根据CameraRoll文档,方向值不会由返回getPhotos。
我正在尝试:
transform: [{ rotateX: '0deg' }, { rotateY: '0deg' }] 要么 rotate: '0deg' react-native-media-meta了GET的元数据信息(不适用)Image但值得注意。:(
问题是图像在我的应用程序中似乎旋转了,但是在本机库中却忽略了它们的旋转度,并正确显示为0º。
范例 …
我不是在谈论JPEG的XMP数据包中嵌入的"人物标签".我在谈论用于识别新面孔的面部数据库.
我想在我的程序中添加使用已经训练过的WLPG数据库识别人脸的选项.我设法使用API(类型库dll)来检测面,但要识别它们,它需要一个在同一API中不可用的Exemplar Cache对象.我可以创建自己的对象,但我想使用已有的对象来避免对用户进行重复培训.
我知道数据库位于"%localappdata%\ Local\Microsoft\Windows Live Photo Gallery"中,并且它是SQL Server Compact Edition 3.1格式.我用Visual Studio 2010打开了数据库,但是我更喜欢在不直接访问数据库的情况下阅读它,而且我没有看到导出该功能的DLL.
顺便说一下,我正在使用Delphi 2010.
有任何想法吗?
有没有人看到一个javascript库,它会生成一个类似于Google+的方式的照片库,现在Facebook,组织照片,其中一些被裁剪,但所有都无缝填充空间.
像这样的东西:

如下图所示,我想为从照片库中提取的图像实现"移动和缩放"功能.
如果您有任何想法或代码,请提供给我.

Thanx提前.
我正在使用以下代码将照片从目录移动到另一个目录
File oldfile= new File(originalImagePath);
File newfile=new File(newImagePath);
boolean d=oldfile.renameTo(newfilee);
if(d){
sendBroadcast(new Intent(Intent.ACTION_MEDIA_MOUNTED,
Uri.parse("file://" + newfilee.getPath())));
}
Run Code Online (Sandbox Code Playgroud)
照片成功移动到新目录但是在大约30秒或更长时间后更新画廊和画廊更新的照片需要花费太长时间所以请给我建议如果使用sendBroadcast更新文件的逻辑是错误的我应该怎么做?
谢谢.
我的照片扩展程序应用可以访问相机和照片.一切正常,但按完成后,无法保存图像.
标准完成处理程序代码:
- (void)finishContentEditingWithCompletionHandler:(void (^)(PHContentEditingOutput *))completionHandler {
// Update UI to reflect that editing has finished and output is being rendered.
// Render and provide output on a background queue.
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{
PHContentEditingOutput *output = [[PHContentEditingOutput alloc] initWithContentEditingInput:self.input];
NSError* error = nil;
NSData *renderedJPEGData = UIImageJPEGRepresentation(filtered_ui_image, 1.0);
assert(renderedJPEGData != nil);
//BOOL written_well = [renderedJPEGData writeToURL:output.renderedContentURL atomically:YES];
BOOL written_well = [renderedJPEGData writeToURL:output.renderedContentURL options:NSDataWritingAtomic error:&error];
assert(written_well);
// Call completion handler to commit edit to Photos.
completionHandler(output);
});
}
Run Code Online (Sandbox Code Playgroud)
renderedJPEGData …
我知道我的应用程序可以读取iOS照片库中保存的照片; 我的应用程序也可以在默认的iOS照片库中保存新照片.但我想要实现的是这样的:默认的照片应用程序应该能够将照片发送到我的iOS应用程序,就像您可以将照片分享到Facebook或发送到iOS Mail应用程序一样.

我希望我的应用程序列在此屏幕中.注意:这是iOS6 Photo应用程序的屏幕截图.
我正在使用最新版本的Phonegap并尝试构建一个应用程序,用户可以从其库中选择和上传多个图像.问题是,用户可能需要选择大量的图像,类似于Facebook应用程序.phonegap是否允许此功能,或者此功能是否只能在本机应用中完成?
任何帮助表示赞赏.
嗨,我想在图库中打开图片,下面是我的代码
mImageView.setImageBitmap(AppUtil.getBitmapFromFile(obj.getImageUrl(), 200, 200));
mImageView.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View view) {
Intent intent = new Intent();
intent.setAction(Intent.ACTION_VIEW);
intent.setDataAndType(Uri.parse(obj.getImageUrl()), "image/*");
startActivity(intent);
}
});
Run Code Online (Sandbox Code Playgroud)
但它显示NullPointerException
Uri.parse(obj.getImageUrl() returns below string
Run Code Online (Sandbox Code Playgroud)
/mnt/sdcard/Pictures/app_images/pro20130429_170323_-1793725321.tmp
更新:现在我尝试
startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("file://sdcard/Pictures/app_images/pro20130429_170323_-1793725321.tmp")));
并收到错误
05-03 16:40:18.460: E/AndroidRuntime(4764): android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.intent.action.VIEW dat=file://sdcard/Pictures/app_images/pro20130429_170323_-1793725321.tmp }
Run Code Online (Sandbox Code Playgroud) photo-gallery ×10
android ×3
ios ×2
iphone ×2
api ×1
camera-roll ×1
cordova ×1
delphi ×1
facebook ×1
file-io ×1
gallery ×1
image ×1
javascript ×1
objective-c ×1
react-native ×1
windows-live ×1