]> git.sesse.net Git - pr0n/blobdiff - perl/Sesse/pr0n/Common.pm
Fix a warning about uninitialized values.
[pr0n] / perl / Sesse / pr0n / Common.pm
index 9f9a72f3c86d0823b0f2623fd8aa90587025e33c..00fa9e9b0c42213676fc70707955ba8a9a696988 100644 (file)
@@ -497,7 +497,7 @@ sub read_original_image {
        # ImageMagick can handle NEF files, but it does it by calling dcraw as a delegate.
        # The delegate support is rather broken and causes very odd stuff to happen when
        # more than one thread does this at the same time. Thus, we simply do it ourselves.
-       if ($filename =~ /\.nef$/i) {
+       if ($filename =~ /\.(nef|cr2)$/i) {
                # this would suffice if ImageMagick gets to fix their handling
                # $physical_fname = "NEF:$physical_fname";