null54

RAW FileType (2016-06-12)

21 posts in this topic

This is a DCRaw-based camera raw filetype for Paint.NET 3.5.11 and later.
 
To install place RawFileType.dll, RawFileTypeOptions.txt and dcraw.exe in the Paint.NET FileTypes folder (usually C:\Program Files\Paint.NET\FileTypes)
 
The decoding options can be changed by editing RawFileTypeOptions.txt, the list of options for DCRaw is available here.
By default the plugin loads the RAW images without metadata, to include the image metadata add -T to the command line in RawFileTypeOptions.txt.
 

btn_donate_SM.gif
 
Download

RawFileType.zip

 

Source Code

https://github.com/0xC0000054/pdn-cameraraw

3

Share this post


Link to post
Share on other sites

Hi!

 

First of all, thank you very much for making this plugin. It helps me A LOT.

I do have one issue though. When the images get imported through dcraw, they seem to be processed with some kind of auto-leveling command. Would it be possible to import them as TIFFs or at least without the automatic adjustments? I do quite a bit of my photography at night and the images get brightened during import, and are, while not completely useless, very hard to work with.

0

Share this post


Link to post
Share on other sites

This plugin tells DCRaw to use the camera histogram for color correction when importing raw images.

 

Ideally Paint.NET would allow FileTypes to show a dialog when loading so that DCRaw could be configured for each image.

As that is not supported I could change the plugin to read the DCRaw options from some type of configuration file.

0

Share this post


Link to post
Share on other sites

This plugin tells DCRaw to use the camera histogram for color correction when importing raw images.

 

Ideally Paint.NET would allow FileTypes to show a dialog when loading so that DCRaw could be configured for each image.

As that is not supported I could change the plugin to read the DCRaw options from some type of configuration file.

Thanks for the explanation. I've tried messing about with Codelab but I'm out of my depth here.

I can provide samples if necessary. I know from GIMP that dcraw applies distortion and CA corrections by default (I haven't checked if this is the case here as well, but vignetting correction is definitely applied).

Edited by Giklab
0

Share this post


Link to post
Share on other sites

Hello Great plugin but is there a way that you can not have the colour correction active and have to true Raw image loads

 

many thanks

0

Share this post


Link to post
Share on other sites

Hello Great plugin but is there a way that you can not have the colour correction active and have to true Raw image loads

 

Not any that are user friendly. :(

I could put the DCRaw settings into a configuration file in the FileTypes folder, but you would have to load the image again to test the new settings (and modifying the configuration file would require Administrator privileges).

0

Share this post


Link to post
Share on other sites

hello if you could do that i would be very much appricated for you to do that

 

Would not be a problem loading the image again

0

Share this post


Link to post
Share on other sites

+1 ^

Barring a UI, I don't think it gets any more user-friendly (I mean, we'll just have to string together the arguments we want, right?). And TBH, I never really liked to tweak *everything* before importing the file, like in GIMP and I guess Photoshop. I mean, at that point I might as well be using Rawtherapee.

0

Share this post


Link to post
Share on other sites

Added a configuration file to allow the decoding options to be changed.

File version updated to 1.1.0.0.

0

Share this post


Link to post
Share on other sites

Thank you so much. This is great!

I'll be donating as soon as I get hold of someone with a Paypal account.

0

Share this post


Link to post
Share on other sites

I keep getting this error:


System.ArgumentException: Parameter is not valid.
 
   at System.Drawing.Bitmap..ctor(Stream stream)
 
   at RawFileType.RawFileType.GetRAWImage(String file)
 
   at RawFileType.RawFileType.OnLoad(Stream input)
 
   at PaintDotNet.FileType.Load(Stream input) in d:\src\pdn\paintdotnet\src\Data\FileType.cs:line 477
 
   at PaintDotNet.Functional.Func.Eval[T1,TRet](Func`2 f, T1 arg1) in d:\src\pdn\paintdotnet\src\Base\Functional\Func.cs:line 158

When I try to import my .raw, is anyone else getting this/how can I fix this?

Is it a problem with the image or my installation?
0

Share this post


Link to post
Share on other sites

Is it a problem with the image or my installation?

It appears that the TIFF file that DCRaw writes is not supported by GDI+.

Could you upload a RAW file that causes this and PM me a link?

0

Share this post


Link to post
Share on other sites

I have  the plugin set to TIFF and I'm not seeing any problems. Are you sure you didn't simply misspell a command?

In any case, here are the settings that work for me: -w -6 -W -T

0

Share this post


Link to post
Share on other sites

I have  the plugin set to TIFF and I'm not seeing any problems. Are you sure you didn't simply misspell a command?

In any case, here are the settings that work for me: -w -6 -W -T

 

The plugin always uses TIFF, the -c and -T parameters are appended after the user specified options.

It appears that some generated TIFF files are not supported by GDI+. :(

 

I considered switching the plugin to use PPM which would eliminate the TIFF loading issues, but the resulting image would not include any metadata.

0

Share this post


Link to post
Share on other sites

The plugin always uses TIFF, the -c and -T parameters are appended after the user specified options.

It appears that some generated TIFF files are not supported by GDI+. :(

I considered switching the plugin to use PPM which would eliminate the TIFF loading issues, but the resulting image would not include any metadata.

Right, I can delete the -T then. It would also seem that PDN doesn't support 16bit tiffs, so I can remove that as well lol.

That is really unfortunate... I don't know enough to suggest anything else than a +1 to your PPM idea (2 versions maybe?). Could that be a bug in dcraw, or a currently unsupported camera? I recall having a similar issue a few years back, when my Rawtherapee saved unreadable tiffs - that was corrected in an update that included an updated dcraw.

0

Share this post


Link to post
Share on other sites

... It would also seem that PDN doesn't support 16bit tiffs, so I can remove that as well lol.

Correct, Paint.NET only supports 8-bit images.

 

Could that be a bug in dcraw, or a currently unsupported camera?

 

It could be a bug in dcraw or it could be a bug in GDI+, without the RAW file there is no way for me to check.

0

Share this post


Link to post
Share on other sites

Changed the default output format to PNM to fix the GDI+ crashes with TIFF.

File version updated to 1.2.0.0.

0

Share this post


Link to post
Share on other sites

Updated to the latest 32-bit version of DCRaw and added a number of additional file extensions.

File version updated to 1.2.1.0.

1

Share this post


Link to post
Share on other sites

How do I install this? When I unzipped the file in the FileTypes folder of Paint.NET saving does not give me the option to save as .raw

0

Share this post


Link to post
Share on other sites
2 hours ago, RoosSkywalker said:

How do I install this? When I unzipped the file in the FileTypes folder of Paint.NET saving does not give me the option to save as .raw

 

This plugin only supports loading camera RAW images, it does not allow you to save any raw formats.

0

Share this post


Link to post
Share on other sites

Perfect, found the older raw-plugin first and it couldn't read the CR2's from my Canon 100D/SL1 correctly (but could read the files from the 400D/XTi).

 

This one reads both perfectly, thanks.

0

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now