Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Images loading without full resolution (Julia)

I have a .NEF file on my Desktop titled "my_image.nef". If I look at the details of the image, I see a resolution of 4256x2832:

enter image description here

When I try to open this with Julia, I get a two-dimensional array of size 120x160.

enter image description here

How do I get a full-resolution array to load? Why is it loading a much smaller version of the original image?

like image 569
AaronJPung Avatar asked Nov 17 '25 04:11

AaronJPung


1 Answers

I'm not an expert on various RAW file formats, but it's probably loading the thumbnail preview. There's good reason to hope this may be fairly easily resolvable: like many RAW formats, it appears to be a variation on TIFF, and Julia's TiffImages package is an amazingly good TIFF library. It's possible you'd have to create a "wrapper package" specifically for RAW or NEF, but it's might end up being a fairly short exercise in piecing together the correct series of calls to TiffImages internals. I encourage you to file an issue at TiffImages to discuss it.

like image 159
tholy Avatar answered Nov 18 '25 21:11

tholy