Jump to content

paint.net 4.2 is now available!


Recommended Posts

This is a big update that focus on adding HEIC file format support, fixing performance with very large images, and upgrading and modernizing the functionality of many existing file types (JPEG, PNG, BMP, GIF, and TIFF). Many other quality of life issues have also been addressed or fixed.

 

If you’re using the Windows Store release, you should get the update automatically within the next 24 hours. You can also force an update check by following these instructions.

 

For the Classic release, you should be offered the update automatically within the next week or so. You can get the updater soon by going to ⚙ Settings → Updates → Check Now. You can also download and install it directly from the website.

 

It's important to note that HEIC file format support requires two things: 1) you must be using Windows 10 v1809 or newer, and 2) you must install Microsoft's HEVC Video Extensions from the Microsoft Store which costs $1. This is necessary due to HEVC being mired in licensing and patent royalty costs. If you want to find some HEIC images, look no further than your recent iPhone (7 or newer). Many newer Android devices also support it.

 

Most of the other built-in file types -- BMP, GIF, PNG, JPEG, and TIFF -- have been internally upgraded from using GDI+ to being built on top of WIC (Windows Imaging Component). BMP can now save 32-bit images with alpha transparency, while JPEG and PNG can now load and save much larger images, and TIFF now supports saving at 24-bit and 8-bit color depths ("Auto" is also now included).

 

On the performance side, I've rebuilt the data structures inside of the rendering engine that are used for keeping track of invalidation regions. These hold information about what parts of the image need to be rendered and then redrawn on the screen, either because the image has been changed (like with drawings or effects) or because of scrolling and zooming. In previous versions you couldn't really work with very large images, starting around 32,000 x 32,000 pixels. Zooming in and out would result in a lot of slow performance, lag, and even complete hangs of the app for seconds -- or more (at 60,000 pixels it could hang for 30-60 seconds or more!). Now this should all be completely fluid 😁

 

Please note that a previous beta, 4.2 build 7121, included functionality that would automatically apply an image's embedded color profile, thus converting the image to the sRGB color space and "fixing" its colors. The complexity of color management was much higher than expected, and thus it has been removed for now. It may come back in a future update but in a more substantial form. Check out Jeffrey Friedl's excellent Digital-Image Color Spaces article for a good read on this subject.

 

Here is the complete list of changes since the 4.1.6 release:

 

  • New: Support for loading and saving HEIC images (Windows 10 v1809+ and codec installation is required). Please note that the "Quality" slider when saving is limited to a value of 90 (out of 100) while Microsoft investigates and fixes a crash in their codec.
  • New: Keyboard shortcuts for changing the current layer. You can see these in the Layers menu with the "Go to ..." commands. Alt+PgUp/PgDown will go to the layer above/below, and Ctrl+Alt+PgUp/PgDown will go to the top/bottom layer.

  • Fixed: Optimized rendering engine to remove huge lag spikes (30+ seconds) when zooming or panning very large images (e.g. 32K x 32K pixels).
  • Improved: BMP now supports saving in 32-bit (with alpha!) and 8-bit indexed.

  • Improved: Added DIB and RLE file extensions to the BMP file type.

  • Improved: PNG, JPEG, and TIFF now support loading and saving of much larger images.
  • New: PNGs can now be saved as "interlaced".

  • Improved: JPEG now has configuration for the chroma subsampling mode (4:4:4, 4:2:2, and 4:2:0). The default is now 4:2:2 instead of the unconfigurable 4:2:0 of older versions. This may result in larger file sizes, but higher quality, as compared to previous versions.
  • Improved: TIFF now supports saving at 24-bit and 8-bit color depths.
  • Improved performance of saving for file types where "Auto" bit-depth is supported but is not the current choice.
  • Improved temporary memory usage when saving images at 8-bit color depth.
  • Improved: TGA images now load about 4x faster (thanks @null54!)
  • Fixed: 8-bit TGA images should now load correctly (thanks @null54 for the fix!)
  • Fixed: Some 32-bit TGA images were showing up as completely transparent due to their use of an obscure alpha channel type (thanks @null54 for the fix!)
  • Improved: Added error reporting to the Save Configuration dialog. Instead of just saying "Preview: (error)", you'll also get the standard error dialog that includes the exception which can used for troubleshooting.

  • Fixed a number of performance issues in the Save Configuration dialog. Especially with large images, it should now be much faster to change options and to click OK/Cancel.
  • Fixed flickering in the Save Configuration dialog when changing options.
  • Fixed: Windows Explorer thumbnails for some image types (PDN, DDS, TGA) were not rendering their alpha (transparency) correctly, resulting in color skew. You may not see the effect of this fix for a particular image until that image is resaved or you clear Explorer's thumbnail cache.
  • Fixed: Mouse cursors now scale appropriately for non-integer UI scales (e.g. 125% or 175%)

  • Fixed: AltGr should now work correctly with the Text tool. It will not trigger shortcuts like File -> Save All, or Edit -> Paste into New Image. (thanks @Bruce Bowyer-Smyth for the fix!)

  • Changed: Image->Resize supports Super Sampling again, and favors this over Fant when using Best Quality. Fant is still available, but is no longer chosen automatically.

  • Changed: Holding Ctrl when starting to move a selection with the Move Selected Pixels tool will no longer leave behind a copy of the selected area

  • Fixed: Bicubic resampling in the Move Selected Pixels tool was not correctly handling the alpha channel in some cases. This fix has required a reduction in performance.
  • Improved: When using Edit->Copy, a 32-bit BGRA bitmap in the DIBV5 format is now placed onto the clipboard so that other apps can read the alpha channel.

  • Improved: When using Edit->Paste, DIBV5's are now supported if they have an alpha channel. If they don't, then the regular DIB loader is used which has some heuristics for detecting an incorrectly defined alpha channel and correcting for it.

  • Improved: When using Edit->Paste, PNG is now the highest priority format. This maximizes the ability to maintain alpha/transparency, but it does mean that images coming from Microsoft Office apps will appear larger than they used to. This is either a bug or a feature of Microsoft Office. For some reason it places PNGs on the clipboard that are 25%+ larger than the DIB/DIBV5 bitmap that it also places on the clipboard (but which don't have alpha/transparency).

  • Fixed: DIBV5 bitmaps should now work with Edit->Paste, which improves alpha channel handling. (thanks @null54 for the fix!)
  • Fixed: Top-down DIBs should now work correctly with Edit->Paste. (thanks @null54 for the fix!)
  • Improved CPU usage for thumbnail updates (layers and image tabs) in many cases.
  • Improved: Slightly increased the size of the Settings dialog to reduce the need for scrolling in a few important situations
  • Fixed: Simple message boxes can now be closed with the ESC key
  • Fixed: Magic Wand now works on very large images (e.g. 65535 x 65535 pixels) without an error.
  • New: Plugins that use IndirectUI can now use a UriProperty with a LinkLabel control (thanks @null54!)
  • New: Effect plugins can now more easily make use of the clipboard via the IClipboardService. It will handle all of the tricky clipboard issues such as threading, native data marshaling, and avoiding security vulnerabilities that exist in the standard WinForms and WPF clipboard APIs.

  • New: FileType plugins can now specify separate lists of extensions for loading and saving.

  • Blocked the WebP FileType v1.1.0.0 plugin due to instability. An update is already available.
  • Blocked the ImAgif FileType v0.12.0.1084 plugin due to incompatibility. An update will hopefully soon be available.

  • Like 3
  • Upvote 5

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

I was on the 4.2 betas (currently have 7121 installed) and when I went to upgrade to 4.2, I got the following error:

Quote

There was an error while installing paint.net. (1638)


Another version of this product is already installed. Installation of this version cannot continue. To configure or remove the existing version of this product, use Add/Remove Programs on the Control Panel.

 

So, I attempted to uninstall the current version from the Add/Remove Programs page, but get this error when doing so:

yDpAKJk.png

 

Looking in that folder, I see other .msi files, but not the one ending in 1833036855.

Link to comment
Share on other sites

4 minutes ago, ahp said:

So, I attempted to uninstall the current version from the Add/Remove Programs page, but get this error when doing so:

 

Sounds like you have an existing paint.net installation that has become broken. You can use this utility to remove the broken installation:

https://support.microsoft.com/en-us/help/17588/fix-problems-that-block-programs-from-being-installed-or-removed

 

Afterwards, you can install paint.net anew.

  • Like 1

(September 25th, 2023)  Sorry about any broken images in my posts. I am aware of the issue.

bp-sig.png
My Gallery  |  My Plugin Pack

Layman's Guide to CodeLab

Link to comment
Share on other sites

Great update! Though I have a tiny bug-or-maybe-feature not related to it:

 

Start the program. It has the "Paintbrush" tool selected, and black as the primary color and white as the secondary color. The "background" layer is filled white.

It says "right click to draw with secondary color". Do this. (You may also select white as the primary color and use LMB.)

As you "draw" with RMB pressed it looks like nothing happens (white on white). The history is empty. But if you try to close the program it asks about saving changes.

 

The bottom line: don't ask about saving if the history is empty.

Link to comment
Share on other sites

10 hours ago, ChillingTouch said:

Great update! Though I have a tiny bug-or-maybe-feature not related to it:

 

Start the program. It has the "Paintbrush" tool selected, and black as the primary color and white as the secondary color. The "background" layer is filled white.

It says "right click to draw with secondary color". Do this. (You may also select white as the primary color and use LMB.)

As you "draw" with RMB pressed it looks like nothing happens (white on white). The history is empty. But if you try to close the program it asks about saving changes.

 

The bottom line: don't ask about saving if the history is empty.

 

Not really a bug. You're just drawing white on white. Technically, yes, this niche corner case could be fixed up -- but the performance cost isn't worth it.

 

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

Quote

Changed: Holding Ctrl when starting to move a selection with the Move Selected Pixels tool will no longer leave behind a copy of the selected area

 

Yes.

YES. Thank you so much for this. Thanks for the update in general, but a specifically huge thanks for this one change.

Link to comment
Share on other sites

Hi all,

 

I'm unable to install 4.2 because the installer can't remove my 4.1.7 alpha (build 7104) due to the MSI file PaintDotNet_x64_1158899282.msi being missing from the C:\Program Files\Paint.NET\Staging directory.

 

Does anyone have a copy of the 4.1.7 (build 7104) download from which I could extract the required MSI so that I can uninstall the alpha and finally upgrade to 4.2? It was originally available from here but that download has been removed 😞

 

Thanks in advance!

 

PDN Alpha 7104 Uninstall Problem.png

Edited by Duckboy
Added link to original 7104 download
Link to comment
Share on other sites

  • 2 weeks later...

I've just noticed a weird problem where any newly opened (or created) document cannot be panned by holding the mouse wheel / middle button. The cursor will show an opened hand and an X instead of a gripped hand. However after simply zooming in once and then back out it gets unlocked, and there are no longer any problems with that function. I'm running windows 7, and I would readily believe it's something jacked up with my system, and I haven't tried rebooting. I don't anticipate rebooting between now and a future paint.net release so I figured I'd go ahead and report it.

To be clear, the repro steps are:
1. Open paint.net 4.2 final
2. Try dragging with mouse wheel (it wont work)

Link to comment
Share on other sites

@zeromus Not a bug, and not due to any recent change. When you initially open an image, the Zoom is set to "Fit to Window". Panning isn't possible in that mode. You can toggle away from "Fit to Window" from the View menu, or by clicking the button at the bottom-right in the status bar (to the left of the zoom out button with the minus sign), or with Ctrl+B.

 

This all assumes you have overscroll enabled (which is the default).

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

Guest
This topic is now closed to further replies.
×
×
  • Create New...