Browse Source

just a bit more

David Rose 24 years ago
parent
commit
c813279928

+ 5 - 3
pandaapp/src/indexify/indexImage.cxx

@@ -466,9 +466,11 @@ generate_reduced_html(ostream &html, Photo *photo, int photo_index, int pi,
     << " height=" << photo->_reduced_y_size << " alt=\"" << photo->get_name()
     << "\"></a></p>\n";
 
-  html
-    << "<p><a href=\"" << full << "\">View full size image ("
-    << photo->_full_x_size << " x " << photo->_full_y_size << ")</a></p>";
+  if (!omit_full_links) {
+    html
+      << "<p><a href=\"" << full << "\">View full size image ("
+      << photo->_full_x_size << " x " << photo->_full_y_size << ")</a></p>";
+  }
 
   generate_nav_buttons(html, prev_photo_filename, next_photo_filename,
                        up_href);

+ 1 - 0
pandaapp/src/indexify/indexParameters.cxx

@@ -47,6 +47,7 @@ bool format_rose = false;
 bool dummy_mode = false;
 bool draw_frames = false;
 bool omit_roll_headers = false;
+bool omit_full_links = false;
 bool caption_frame_numbers = false;
 
 

+ 3 - 0
pandaapp/src/indexify/indexParameters.h

@@ -93,6 +93,9 @@ extern bool draw_frames;
 // it exists.
 extern bool omit_roll_headers;
 
+// True to omit links to the full-size source images.
+extern bool omit_full_links;
+
 // True to caption photos with just a frame number instead of the
 // whole image basename.  This only works if the photo image filenames
 // consist of the roll directory name concatenated with a frame number.

+ 6 - 1
pandaapp/src/indexify/indexify.cxx

@@ -131,11 +131,16 @@ Indexify() {
      &Indexify::dispatch_none, &_generate_icons);
 
   add_option
-    ("omitrh", "", 0,
+    ("omit-rh", "", 0,
      "Omits roll headers introducing each roll directory, including any "
      "headers defined in roll.cm files.",
      &Indexify::dispatch_none, &omit_roll_headers);
 
+  add_option
+    ("omit-full", "", 0,
+     "Omits links to the full-size images.",
+     &Indexify::dispatch_none, &omit_full_links);
+
   add_option
     ("caption", "size[,spacing]", 0,
      "Specifies the font size in pixels of the thumbnail captions.  If the "