[Prev] Thread [Next]  |  [Prev] Date [Next]

Issue 1323 in cocos2d-iphone: [BUG]JPEG file extremely DARK, cocos2d 2.0 beta2+iPad1(4.2.1) cocos2d-iphone Tue Feb 21 18:00:35 2012

Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 1323 by [EMAIL PROTECTED]: [BUG]JPEG file extremely DARK, cocos2d 2.0 beta2+iPad1(4.2.1)

What steps will reproduce the problem?
1.Create a new cocos2d ver2.0 beta2 project.
2.Add an JPEG image, e.g. @"22.jpg", into "Resources"
3.In the last of the "-init()" function of HelloworldLayer.m, run the following code:

NSString* fileName=@"22.jpg";

UIImage* uiImage=[UIImage imageNamed:fileName];

CCSprite* sp=[CCSprite spriteWithCGImage:uiImage.CGImage key:fileName];

[self addChild:sp];

4.Run the project on an ACTUAL DEVICE: iPad 1, with iOS 4.2.1. Do NOT run it on simulator because this bug only happens on actual devices.

What is the expected output? What do you see instead?
We expected to see a nomal image, but it came out that the image is extremely DARK and FAINT.

What cocos2d version are you using ?
cocos2d 2.0 beta 2

What iOS / Mac SDK are you using ?
iOS 4.2.1, MacOS X 10.6.8, XCode 4.2

Debug or Release ?

Which target device / target OS are you using ?
iPad 1, iOS 4.2.1

iOS only: Does this happens on device ? or on the simulator ? or on both ?
Only happens on actual device, not simulator

Mac only: x86 or i386 ?

Please provide any additional information below.
However, a .png file is OK with both simulator and actual device. I tried 4 different combinations, here are the result: (cocos2d 2.0, latest beta release, iPad 1 with iOS 4.2.1 8C148, XCode 4.2 with OS X Snow Leopard 10.6.8) .PNG + Simulator(Any Version) ==> OK
.PNG + Actual Device ==> OK
.JPG + Simulator(Any Version) ==> OK
.JPG + Actual Device ==> NOT CORRECT

You received this message because you are subscribed to the Google Groups 
"cocos2d-iphone-issues" group.
To post to this group, send email to [EMAIL PROTECTED]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at