Comments (8)
New version is out, let me know if you still have troubles
from rawpy.
How weird! Which OS and Python version do you run?
from rawpy.
macOS 10.12.3
Python 2.7.13
rawpy 0.8.0
(if it's important) numpy 1.12.0
from rawpy.
One more question: are you sure that the image is not just very dark? The maximum value you get via np.max(rgb)
is 6381, so it can't be all zeroes. The combination of 1,1 gamma without auto brightening may lead to dark images if the RAW image doesn't have much signal. What happens if you just do a postprocess()
without any arguments?
from rawpy.
Output is similar with no arguments passed to postprocess()
. The max
changes to 255. The image is still black. Opening the postprocessed image in, say, Photoshop, and cranking up the brightness / contrast shows no sign of any image or vignetting.
raw_image is [[243 260 241 ..., 253 243 253]
[264 191 258 ..., 189 256 189]
[243 260 245 ..., 251 241 251]
...,
[243 181 239 ..., 179 229 179]
[223 241 225 ..., 231 225 231]
[241 183 247 ..., 177 231 177]]
rgb max is 255
rgb is [[[0 0 0]
[0 0 0]
[0 0 0]
...,
[0 0 0]
[0 0 0]
[0 0 0]]
[[0 0 0]
[0 0 0]
[0 0 0]
...,
[0 0 0]
[0 0 0]
[0 0 0]]
[[0 0 0]
[0 0 0]
[0 0 0]
...,
[0 0 0]
[0 0 0]
[0 0 0]]
...,
[[0 0 0]
[0 0 0]
[0 0 0]
...,
[0 0 0]
[0 0 0]
[0 0 0]]
[[0 0 0]
[0 0 0]
[0 0 0]
...,
[0 0 0]
[0 0 0]
[0 0 0]]
[[0 0 0]
[0 0 0]
[0 0 0]
...,
[0 0 0]
[0 0 0]
[0 0 0]]]
Here's what Preview.app shows for the image:
https://drive.google.com/file/d/0B_-3PXrqwAXBc0NkekZEdk9MYk0/view?usp=sharing
(GitHub, Imgur, imgbb, countless other image hosting services are down due to S3's outage, sorry for the Google link)
from rawpy.
Would you be able to provide the .nef file? You can send an email to me (see profile) if you like.
from rawpy.
No problem: https://drive.google.com/open?id=0B_-3PXrqwAXBUGE4eTlCYkJRUEU
from rawpy.
I found the issue. Due to a build script mistake the macOS package was built using an old LibRaw version (0.16, see rawpy.libraw_version
, whereas it should be 0.18), and that apparently can't read your NEF file. I tried it on Windows with libraw 0.18 and it works. I'll do some tests and release a new version later today. Then all should be fine. Thanks for reporting, nasty bug you uncovered!
EDIT: Travis CI is affected from the Amazon AWS outage so I can't do proper testing currently (don't own a Mac), will probably take another day for the release.
from rawpy.
Related Issues (20)
- applying custom output profile HOT 1
- Canon CR3 file - raw_image_visible returning wrong image size? HOT 1
- AttributeError: module 'rawpy' has no attribute '_rawpy' HOT 2
- Repair bad pixels doesn't work if "cv2" isn't installed HOT 3
- Issues with X-H2 RAW files. HOT 11
- Adobe DNG SDK support HOT 1
- No source on pipy HOT 2
- “Image too big” thrown when file does not exist HOT 2
- Adobe DNG GainMap support HOT 5
- Support for Python 3.12 (was: ERROR: Could not find a version that satisfies the requirement rawpy) HOT 1
- Cannot read thumbnail of NEF file HOT 1
- Mimic Adobe Photoshop Open-Save quality HOT 1
- Setting manual raw_pattern HOT 10
- Support arm64 MacOS HOT 1
- new API to get wb factors from gray box HOT 2
- How to process bayer10? HOT 1
- How could I do some transform in raw domain and transform it into rgb domain? HOT 1
- Support for StripOffsets and StripByteCounts in DNG tags HOT 1
- Questions about support for the Z9
- Include Libraw snapshot releases? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rawpy.