Sign in to follow this  

JPEG XR file type plugin

Recommended Posts

Plugin Description

This is a file type plugin that allows reading and writing of JPEG XR (aka HD Photo) image files. There has been an HD Photo plugin before, developed by Rick Brewster, that is no longer being maintained, however. That's why I decided to rewrite it and add some minor improvements (jxr file extension support, option to save as 8bpp grayscale, fixed and much improved metadata support).


Read support

Almost all pixel formats supported by JPEG XR can be loaded. However, Paint.NET requires the image to be stored as 32bpp RGBA in memory, so other source image formats will be converted first if required (this means you'll loose HDR data for example).


Write support

You can save images in the following pixel formats:

  • 8bpp (grayscale)
  • 24bpp RGB
  • 32bpp RGBA (alpha channel)

Optionally, you can retain the Exif metadata from your source image (if present) and apply it to your JPEG XR image. To do that, check the appropriate setting in the save file dialog. This could be handy if you edit JPEG images from your camera and want to resave them as JPEG XR. NOTE: This should work with most metadata tags, but hasn't been tested thoroughly.



Installing the plugin is easy. Follow the steps described in the official documentation.





Source code and binary files are hosted on Codeplex.

Edited by toe_head2001
Attached Zip

Share this post

Link to post
Share on other sites

According to the JPEG XR standard the recommended file extension is .jxr, therefore I chose it as the default in the save dialog. But you're right, since Windows 7 still doesn't recognize it (not even .hdp) I'll better make .wdp the default again. (By the way, IE9 only offers .jxr when saving a JPEG XR image to disk.)

Share this post

Link to post
Share on other sites

Thanks for this excellent plugin.

It would be good if all the basic Description metadata in Windows Explorer properties were supported: eg: Rating, Tags, Comments, Date Taken, Date Acquired are not preserved.

Also, the metadata that is supported is not being written to the file in Unicode (where the source file is Unicode). So, when I convert a TIFF to JPEG XR that is mixed Japanese/English, the Japanese characters turn out as "?????" in the result.

Edited by Paul Coddington

Share this post

Link to post
Share on other sites

I just tried this plugin for the first time with a jrx picture and this is the error message I received: 

Application version: 4.1.5

System.ArgumentOutOfRangeException: must be > 0.0
Parameter name: value
Actual value was 0.
   at PaintDotNet.Document.set_DpuX(Double value) in D:\src\pdn\src\Data\Document.cs:line 362
   at PDNJPEGXRPlugin.JpegXRFileType.OnLoad(Stream input)
   at PaintDotNet.FileType.Load(Stream input) in D:\src\pdn\src\Data\FileType.cs:line 496
   at PaintDotNet.Functional.Func.Eval[T1,TRet](Func`2 f, T1 arg1) in D:\src\pdn\src\Base\Functional\Func.cs:line 158


What, if anything, did I do wrong? How do I correct it? Thanks

Share this post

Link to post
Share on other sites

FYI: The upcoming 4.2.1 update has JPEG XR support built-in, so this plugin will be blocked from loading.


Edit: Note that if you're using Windows 7 then you will still need this plugin. 

  • Upvote 1

Share this post

Link to post
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.

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.

Sign in to follow this