PhoneGap CGImageCreateWithImageProvider错误 [英] Phonegap CGImageCreateWithImageProvider Error
问题描述
我最近迁移到新的Mac。我最后一次需要更新我的旧应用程序,所以我下载了一个较旧的版本的Xcode和Phonegap。
I recently migrated to a new mac. I needed to update my older app one last time so I downloaded an older version of Xcode and Phonegap. I get this error when I try to set the background-size css for an image.
CGImageCreateWithImageProvider: invalid image size: 210 x 210
这只会发生在应用程式第一次启动时,如果我尝试在应用程式载入weinre它正确工作。这是什么原因导致的?
This only happens when the app first starts up, if I try setting it after the app loads with weinre it works correctly. What is causing this?
我看到这个错误与Mapview有关,但是我没有使用它。
I saw that this error is related to the Mapview however I am not using one.
iOS 4.2.1,
Xcode 4.4.1,
Phonegap 1.6.1,
Sencha Touch 1.1.1
iOS 4.2.1, Xcode 4.4.1, Phonegap 1.6.1, Sencha Touch 1.1.1
推荐答案
我在iPod Touch Safari浏览器中测试了我的应用程序,它工作。我发现这是一个问题,我的较旧的iPod Touch无法调整jpg图像的大小。我把图像改为一个png,现在工作正常。
I tested my app in the iPod Touch Safari browser and it worked. I found out that this is a problem with my older iPod Touch not being able to resize a jpg image. I changed the image to a png and it works fine now.
这篇关于PhoneGap CGImageCreateWithImageProvider错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!