Questions tagged [dng]

Digital Negative (DNG) is an open raw image format owned by Adobe used for digital photography

Digital Negative (DNG) is an open raw image format owned by Adobe used for digital photography

71 questions
0
votes
0 answers

Reducing size of a DNG file

I am trying to reduce the file size of a generated DNG file. void compressImage(String path) { Bitmap scaledBitmap = null; BitmapFactory.Options options = new BitmapFactory.Options(); options.inJustDecodeBounds = true; Bitmap bmp =…
danny
  • 1
  • 2
0
votes
1 answer

Thumbnail image from DNG file is inappropriate using imagemagick or exif tool

I have a DNG image and a cropped monochromatic version of the image. Both are generating the same file as the thumbnail when I run any of the below commands: magick.exe C:\sample1crop.dng -resize 500x375 C:\crop-T.JPG or magick.exe…
0
votes
1 answer

Linker error building Adobe DNG SDK on MacOS 11

I am working on a project that uses Adobe's DNG SDK 1.6 library, and it is supposed to work on Windows and MacOS. The library has instructions on how to build it for both platforms, but I had to figure out an error that came up on Windows with…
HericDenis
  • 1,364
  • 12
  • 28
0
votes
0 answers

struct.error: unpack requires a buffer of 4380480 bytes (RAW to DNG) using Python

I need to convert a RAW file to DNG using Python and I keep getting a struct.error... This error is uncommon as far I can see on the internet — I am processing RAW image frames — and my error is "struct.error: unpack requires a buffer of 4380480…
krivinus
  • 17
  • 1
0
votes
0 answers

Process DNG image and save it back as DNG

Is there any way in python to save an image in DNG format? I open a DNG image, do somne processing on it an would like to save it again as DNG. There is for example rawpy but this just open a DNG file and I cannot save it back as DNG with this…
craaaft
  • 211
  • 1
  • 8
0
votes
0 answers

strange corruption in rawpy.imread

I intended to read a DNG formatted image with the code rawpy.imread(path), however it returned me with a error message, saying unknown file: data corrupted at xxxxxxx (7-digit number). Following this error, I found the program is still able to…
Mingzhe
  • 31
  • 5
0
votes
0 answers

Get an error writing Linear DNG via Libtiff .NET

I am trying to create a linear DNG file based on JPG using Lossy JPEG (34892) compression (which was introduced in DNG 1.4.0.0). After running the method below I got an error "Error: File format is invalid (JPEG dimensions do not match tile)" from…
dimonser
  • 675
  • 6
  • 12
0
votes
1 answer

How to open LinearDNG in ObjectiveC/C++?

I've trying to open LinearDNG file in my MacOS app. As far as I've investigated, that's not possible with CoreImage. So, the questions: Is it possible to open LinearDNG file as 16-bit/8-bit RGBA data with CoreImage? Is it possible to open LinearDNG…
olha
  • 2,132
  • 1
  • 18
  • 39
0
votes
0 answers

Saving CFA array data as DNG

I'm looking for a simple method (preferably C/C++/Python or even a shell command) to save RAW CFA data from array to a DNG file. Something that would be like the following example in android…
Tal Klinger
  • 51
  • 1
  • 4
0
votes
1 answer

Save CIFilter as RAW image

So CIFilter takes in a RAW DNG image. Is there a way I can output the image back as a RAW? I'm trying to blend RAW images loaded in as CIFilter's and then output them as a RAW back. It's a simple interpolation of the buffer's RAW values. Yes I…
JoeVictor
  • 1,806
  • 1
  • 17
  • 38
0
votes
0 answers

Image I/O Error: "addImageFromSource:2179: image 0 of source is nil"

I am trying to remove metadata from DNG images using the following function: fileprivate func removeMetadataFromPhotoData(data: Data) -> NSMutableData? { guard let source = CGImageSourceCreateWithData(data as CFData, nil) else {return nil} …
HemOdd
  • 697
  • 1
  • 7
  • 23
0
votes
1 answer

Read DNG file in Matlab

I am trying to read dng files from iphoneX. I read the link https://blogs.mathworks.com/steve/2011/03/08/tips-for-reading-a-camera-raw-file-into-matlab/ But the error message is 'Reference to non-existent field…
Jiaju Orange Yue
  • 117
  • 1
  • 1
  • 6
0
votes
1 answer

Reading CFA of a DNG image in matlab generates all-zero image

I wrote the matlab code as https://blogs.mathworks.com/steve/2011/03/08/tips-for-reading-a-camera-raw-file-into-matlab/ mentioned to read the Color Filter Array of my DNG file, the code is as…
passiflora
  • 332
  • 1
  • 9
0
votes
0 answers

Change RAW photos data directly

I am using Python and RawPy to read and postprocess *.dng or *.arw RAW files. But how do I modify the RAW's contents? I mean RawPy has .raw_image_visible Numpy matrix, which I can extract and modify, but can not reassign it back cause it is…
0
votes
1 answer

Python 'rawpy._rawpy.RawPy' object has no attribute 'imread' after second pass

I try to process a series of DNG raw picture files and it all works well for the first pass (first fils). When I try to read the second DNG file during the second pass through the for-next loop, I receive the error message 'rawpy._rawpy.RawPy'…
noste99
  • 375
  • 3
  • 14