Phones forum

General discussion

Improper PNG image decoding using Platform Codecs

by Tanmay Anjaria / December 11, 2009 5:03 PM PST

Hello,

I'm using ImageFactory interfaces for decoding the images in an application. It's working fine for all jpg and gif images.

It works fine for some png images but I face problem in decoding all the png images created using "Adobe ImageReady" software.

Only the initial part of decoded image is clear and about 70% of image is junk.

I get proper data after the IMageDecoder->GetImageInfo call with proper image width, height and bpp value.

decoding function also comes out with success but the raw data that I get after dumping is problematic.

Anyone has faced this issue before?

EXAMPLE: Try with this iamge:
http://www.mozilla.com/img/tignish/home/feature-logo.png

And an important observation is that if you put the file in the device file system (I tried putting it in the root directory of professional emulator 6.1), and double click on it to open it using the default application, then too it gives the same junk image, But IE on windows mobile which also uses platform codecs (my assumption) decodes it properly.

Any idea what change should I make to make it work?

Regards,
Tanmay Anjaria
Bangalore, India

Discussion is locked
You are posting a reply to: Improper PNG image decoding using Platform Codecs
The posting of advertisements, profanity, or personal attacks is prohibited. Please refer to our CNET Forums policies for details. All submitted content is subject to our Terms of Use.
Track this discussion and email me when there are updates

If you're asking for technical help, please be sure to include all your system info, including operating system, model number, and any other specifics related to the problem. Also please exercise your best judgment when posting in the forums--revealing personal information such as your e-mail address, telephone number, and address is not recommended.

You are reporting the following post: Improper PNG image decoding using Platform Codecs
This post has been flagged and will be reviewed by our staff. Thank you for helping us maintain CNET's great community.
Sorry, there was a problem flagging this post. Please try again now or at a later time.
If you believe this post is offensive or violates the CNET Forums' Usage policies, you can report it below (this will not automatically remove the post). Once reported, our moderators will be notified and the post will be reviewed.
Collapse -
Yup.
by R. Proffitt Forum moderator / December 11, 2009 9:47 PM PST

That's a problem with many systems. Look at what IRFANVIEW did to get around that. VLC PLAYER did the same thing. What did they do? Both of those don't rely on platform codecs.

This is not an offer of helping you find these but to show that you can't rely on platform codecs. It's an old problem that's been with us since day one.
Bob

Collapse -
I think you're right...
by Tanmay Anjaria / December 13, 2009 7:41 PM PST
In reply to: Yup.

It occured to me and I've already moved to open source libs for my imaging module.

But the height is that not only their platform does not support it, they do not "support" their platform too. I've got no reply from MSDN forums for a long time now... Not only for this but many issues...

Collapse -
Here's the reply I got.
by R. Proffitt Forum moderator / December 13, 2009 9:17 PM PST

"That's an invalid file." Since the platform codec does not decode it, they call it corrupt or invalid. If you were in their camp you can see why they do that.

Again, all you can do is to write in deep detail what formats your app will work with. That's what I had to do.

Yes, given more money and time we could write decoders and such but it is not in our budget.
Bob

Popular Forums
icon
Computer Newbies 10,686 discussions
icon
Computer Help 54,365 discussions
icon
Laptops 21,181 discussions
icon
Networking & Wireless 16,313 discussions
icon
Phones 17,137 discussions
icon
Security 31,287 discussions
icon
TVs & Home Theaters 22,101 discussions
icon
Windows 7 8,164 discussions
icon
Windows 10 2,657 discussions

CNET FORUMS TOP DISCUSSION

Help, my PC with Windows 10 won't shut down properly

Since upgrading to Windows 10 my computer won't shut down properly. I use the menu button shutdown and the screen goes blank, but the system does not fully shut down. The only way to get it to shut down is to hold the physical power button down till it shuts down. Any suggestions?