Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Custom Thumbnail and Optimized Image Generation for Raw Files
Nick_Vaughan
#1 Posted : Monday, 21 June 2010 2:09:15 AM(UTC)
Rank: Newbie

Joined: 20/06/2010(UTC)
Posts: 2
Location: UK

Hi,

Apologies if this has been asked elsewhere.....I have searched but could not find anything. Grateful if you could direct me to any relevant responses.

As a hobby exercise I would like to add additional support for Raw image format's generated by Cameras. Specifically I am interested in Nikon's raw format (.NEF), but I can't see any reason not to do it in a generic way if possible.

When I add the MIME type it already handles NEFs, but the thumbnails and optimized images are not very good, as they are based on the embedded JPEG, which is really designed for the camera's preview screen.

Therefore I was going to modify the code to pick up raw files and handle them differently.....my current thinking is to modify one or more of the following from TIS.GSP.Business:

Image.cs
ImageHelper.cs
ImageOptimizedCreator.cs
ImageOriginalCreator.cs
ImageThumbNailCreator.cs

Does anyone have any advice on this? Anyone tried this or similar before? Is this a good approach? Is there a better/easier way? Have I missed something really obvious? Any other bits I will need to do. My thinking is that if these files still create JPEGs of the same name then everything should be fine.

Thanks

Nick
Roger Martin
#2 Posted : Monday, 21 June 2010 3:23:48 AM(UTC)
Roger Martin

Rank: Administration

Joined: 3/08/2007(UTC)
Posts: 3,301
Location: Fort Atkinson, WI

Those are the right files to modify, but I am curious what API you will use to open the NEF file. I don't think anything in the .NET Framework will do it. Do you have a 3rd party DLL you plan to use?
Roger Martin
Creator and Lead Developer of Gallery Server Pro
Nick_Vaughan
#3 Posted : Monday, 21 June 2010 3:51:42 AM(UTC)
Rank: Newbie

Joined: 20/06/2010(UTC)
Posts: 2
Location: UK

Am a bit torn about this.......The clunky (but reliable) way to do it is to kick off dcraw as a process. There is a wrapper for dcraw called msdcraw.dll, but I need to try it out.

I'll keep you posted.

If you have any other ideas, am happy to receive them
Rss Feed  Atom Feed
Users browsing this topic
Guest
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.