]> git.sesse.net Git - pr0n/commitdiff
Add a hack to ensure mipmapping on new uploads is re-enabled.
authorSteinar H. Gunderson <sesse@debian.org>
Wed, 11 Jun 2008 14:55:08 +0000 (16:55 +0200)
committerSteinar H. Gunderson <sesse@debian.org>
Wed, 11 Jun 2008 14:55:08 +0000 (16:55 +0200)
perl/Sesse/pr0n/WebDAV.pm

index 1f834215807f0fd768d6cb2cdc00b74a566ecfd2..f428a4f55fcb1889f7213d65e93508c5339411be 100644 (file)
@@ -491,7 +491,9 @@ EOF
                                # Make cache while we're at it.
                                # Don't do it for the resource forks Mac OS X loves to upload :-(
                                if ($filename !~ /^\.(_|DS_Store)/) {
-                                       Sesse::pr0n::Common::ensure_cached($r, $filename, $newid, undef, undef, 1, 80, 64, 320, 256, -1, -1);
+                                       # FIXME: Ideally we'd want to ensure cache of -1x-1 here as well (for NEFs), but that would
+                                       # preclude mipmapping in its current form.
+                                       Sesse::pr0n::Common::ensure_cached($r, $filename, $newid, undef, undef, 1, 80, 64, 320, 256);
                                }
                                
                                # OK, we got this far, commit