简体   繁体   中英

Phonegap CGImageCreateWithImageProvider Error

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

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?

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

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM