Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Patch to use my fork of node-exif & handle invalid JSON without memor…

…y leakage
  • Loading branch information...
commit ff9f172313a3d8fe33e628bcf388b95b05035fe2 1 parent f223b8b
@cianclarke authored
Showing with 6 additions and 4 deletions.
  1. +1 −0  exif.js
  2. +2 −2 package.json
  3. +3 −2 views/photo.ejs
View
1  exif.js
@@ -15,6 +15,7 @@ var exif = function(staticPath, photo, callback){
if (error){
console.log('[exif.js] error in ' + staticPath + ': ' + JSON.stringify(error));
+ photo.exif = false;
return callback(null, photo);
}else{
var exifMap = {};
View
4 package.json
@@ -2,7 +2,7 @@
"author": "Cian Clarke <cian@cianclarke.com> (http://www.cianclarke.com)",
"name": "node-gallery",
"description": "NodeJS Photo Gallery using directory structure & exif info to output a gallery",
- "version": "0.2.2",
+ "version": "0.2.3",
"homepage": "http://www.github.com/cianclarke/node-gallery",
"repository": {
"url": ""
@@ -15,7 +15,7 @@
"walk": "*",
"express": "3.0",
"ejs": "*",
- "exif": "git://github.com/gomfunkel/node-exif.git"
+ "exif": "git://github.com/cianclarke/node-exif.git"
},
"scripts": {
"test": "node test/tests.js",
View
5 views/photo.ejs
@@ -20,7 +20,7 @@
<% } %>
-
+<% if (photo.exif){ %>
<section class="info">
<h2>Info</h2>
<table>
@@ -37,4 +37,5 @@
<% } %>
<% } %>
</table>
-</section>
+</section>
+<% } %>
Please sign in to comment.
Something went wrong with that request. Please try again.