Jump to content

Save As PNG results in bad file


Recommended Posts

PDN v3.5.5 (Final Release build 3.55.3767.28608)

Windows 7 Ultimate 64-bit with .NET Framework 3.5SP1 & all latest updates as of 4/28/2010

This is a dev machine with VS2008SP1 & Expression 3 installed.

I opened a JPG, cropped it slightly, and then saved it as a PNG. I chose the PNG file type in the "Save as type" combo box. In the Save Configuration window, the preview shows only a small black dot centered in the window and the label "Preview, file size: (computing)" never changes from "(computing)".

Bit Depths of Auto-detect, 32-bit, and 24-bit produce the same results. Selecting a bit deptch of 8-bit causes the file size label to toggle continuously between "(computing)" and "(computing: 100%)".

The resulting PNG file cannot be displayed in Windows Photo Viewer or opened with PDN. I have attached a sample of the output file generated as above with the explicit selection of 24-bit PNG.

Save As JPG and BMP work fine. Pasting a screen capture into a blank image and saving that as PNG works, too, so it may be something specific to this image or the fact that the source image is JPG.

I can upload the source JPG image if desired (it is 644K).

post-75040-127248225472_thumb.png

Edited by DrJimi
Link to comment
Share on other sites

  • 6 months later...

I've found the problem. The image has an embedded ICC profile (EXIF tag ID #34675). When saving a PNG with this at anything other than 32-bit, this appears to be totally broken. I don't know if it's because GDI+ mangles it while saving, or if the PNG spec just says "if bpp isn't 32 and you have a 34675, then you are dead to me."

This will be fixed in 3.5.6.

The Paint.NET Blog: https://blog.getpaint.net/

Donations are always appreciated! https://www.getpaint.net/donate.html

forumSig_bmwE60.jpg

Link to comment
Share on other sites

  • 2 weeks later...

Hello! I am having the same issue with creating and saving any type of .tga (targa) file. If I rename the file extension to .jpg I am able to open the file with paint.net. I am currently using version 3.5.6 on Windows 7 Home 64 bit and the only reason I am making this post is beacuse it was previously mentioned that this similar error with .png was to be corrected with the version I am currently using. Knowing very little about programming i was curious if this fix was only relative to the .png file types or if it had to also be corrected for the .tga files as well. Pretty much the only thing I use paint.net for is for the creation and editing of targa files and this is the first issue I have had while using this program and those file extensions. Would really appreciate any help with this! :) Great program by the way.

Thanks in advance!

Link to comment
Share on other sites

I think these results show that the registration of your images as PNG-24 can be a better alternative to save the photo in JPEG format with a quality of 100 at times. PNG preserves the quality of the discharge on the Internet. The only drawback I can see to save your image in PNG format is that some photo sites/galleries will not let you download it there, PNG, JPEG, etc.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...