Jump to content

paint.net 4.1.7 alpha build 7070


Rick Brewster

Recommended Posts

Finally, a new build! :) 

 

I've spent a lot of time migrating all of the internal file types from GDI+ to WIC. This was a huge amount of code, but is a necessary infrastructure change for the long-term. GDI+ doesn't work correctly to load "large" images, for instance -- where "large" is actually any image that takes over 4GB of memory per layer (may even be limited to 2GB). There are a lot of other benefits, as well, such as having access to configure JPEG's subsampling when saving.

 

Affected file types are PNG, JPEG, GIF, BMP, TIFF, and the newly added support for HEIF/HEIC (loading only, no saving). If you want to know where to get sample *.HEIC images, look no further than your iPhone :) https://www.softwarert.com/transfer-photos-iphone-to-computer-heic-jpg/ Many Android phones should have support, too, but you'll have to look it up for your particular make/model.

 

tl;dr for "what is HEIF": same quality as JPEG for half the file size. (IIRC) And a bunch of other stuff.

 

If you're a fan of BMP, for some reason :), you'll be happy to know you can now save and load with alpha (transparency). When I originally looked into this (like a decade ago?) I concluded it wasn't possible, but several years later I now find out that WIC supports this natively. So, now it's gladly supported 😁

 

Note that due to a bug in WIC's PNG decoder, file sizes over 4GB cannot be loaded. See my tweet for more info. In fact, PNGs larger than 2GB only work because I discovered a hacky workaround. Microsoft is currently looking into this and may have a fix soon (or like in Win10 v19H2 or something).

 

I've also done a bunch of refactoring and fixing to the Save Configuration dialog. It should be faster, more responsive, and use less memory. The flickering is now gone when you're changing options. "More responsive" means that it should now start working on the newest option changes immediately instead of waiting for the previous computation to finish up (this is called "cancellation support" btw). This also allows the OK/Cancel buttons to avoid a long "Canceling..." or "Finishing..." dialog in most cases. This is a huge improvement when working with large images, or with file types that are computationally expensive to save (e.g. 8-bits with dithering, or TGA, or even just modestly large PNGs).

 

Developer / plugin enthusiast notes: Please note that the aforementioned cancellation support does require the FileType to either be 1) actively reading/writing with the Stream it's given, and/or 2) actively reporting progress through its ProgressEventHandler. If the FileType does a whole bunch of calculations and then dumps out to disk, and never reports progress, then it's still possible that changing options or clicking OK/Cancel will be sluggish or take awhile. The internal FileTypes should do a good job here, but plugins may or may not.

 

Download link: https://www.getpaint.net/files/zip/test/paint.net.4.107.7070.33895.install.zip

(NOTE: I'm also in the process of adding this to the auto-updater)

 

Changes since 4.1.6:

  • New: Support for loading HEIF/HEIC images (Windows 10 v1809+ required). Saving is not yet supported.
  • Improved: BMP now supports saving in 32-bit (with alpha!) and 8-bit indexed.
  • Improved: PNG and JPEG now supports loading and saving of much larger images.
  • Improved: JPEG now has configuration for 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.
  • Improved: TIFF now supports saving at 24- and 8-bit color depths.
  • 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.
  • 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!)
  • Fixed: Mouse cursors now scale appropriately for non-integer UI scales (e.g. 125% or 175%)
  • 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 Save Configuration dialog when changing options.
  • Improved CPU usage for thumbnail updates (layers and image tabs) in many cases.
  • Improved performance of saving for file types where "Auto" bit-depth is supported but not the current choice.
  • Improved temporary memory usage when saving images at 8-bit color depth.
  • Fixed: Magic Wand now works on very large images (e.g. 65535 x 65535 pixels) without an error.
  • 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!)
  •  

Enjoy 😁

  • Upvote 2

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

Thank you for yours hard work !

 

Very interesting behavior for Alt + Mouse click:

 

1. Choose Paintbrush tool: size = 10 (or any other size)
2. Press Alt key for locking the position of the brush
3. Release Alt key and move the mouse anywhere on the canvas
4. Left click to draw a straight line with the primary color or right click for secondary color

 

This behavior also exists in the previous version.

This is very useful for me. All I need now is a grid and Snap to grid option.

Link to comment
Share on other sites

I had someone else report this and it's really not clear what the error is. It seems to be specific to your computer.

 

I'll make sure the next alpha has a way to see what the error is ... then we can actually figure this out.

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...