Index: image.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/image/image.module,v
retrieving revision 1.138
diff -u -r1.138 image.module
--- image.module	31 Dec 2004 11:00:50 -0000	1.138
+++ image.module	17 Jan 2005 11:52:31 -0000
@@ -108,10 +108,10 @@
   $output .= form_textfield(t("Default max image size"), "image_default_max_weight", variable_get("image_default_max_weight", "200"), 6, 255, t("KBytes."));
   $output .= form_textfield(t("Default max image resolution"), "image_default_max_size", variable_get("image_default_max_size", "1024x768"), 10, 255, t("Example: 800x600."));
 
-  $output .= form_textfield(t("List of valid resolutions"), "image_default_resolutions", variable_get("image_default_resolutions", "640x480,800x600,1024x768,1600x1200"), 60, 255, t("This is a list of resolutions that the image can be displayed at as well as its original size"));
+  $output .= form_textfield(t("List of valid resolutions"), "image_default_resolutions", variable_get("image_default_resolutions", "original,640x480,800x600,1024x768,1600x1200"), 60, 255, t("This is a list of resolutions that the image can be displayed at as well as its original size"));
   // build array of resolutions
   $resolutions = array();
-  foreach (explode(",", variable_get("image_default_resolutions", "640x480,800x600,1024x768,1600x1200")) as $v) {
+  foreach (explode(",", variable_get("image_default_resolutions", "original,640x480,800x600,1024x768,1600x1200")) as $v) {
     if ($v) {
       $resolution[$v] = $v;
     }
@@ -217,7 +217,7 @@
   // Add links to an image node.
 
   if ($type == "node" && $node->type == "image") {
-    foreach(explode(",", variable_get("image_default_resolutions", "640x480,800x600,1024x768,1600x1200")) as $v) {
+    foreach(explode(",", variable_get("image_default_resolutions", "original,640x480,800x600,1024x768,1600x1200")) as $v) {
       if ($v) {
         $max_dim = split("x", $v);
         if ($node->width > $max_dim[0] || $node->height > $max_dim[1]) {
@@ -938,7 +938,7 @@
   if ($_GET['res']) {
 
     list($w, $h) = explode("x", $_GET['res']);
-    $valid_res = explode(",", variable_get("image_default_resolutions", "640x480,800x600,1024x768,1600x1200"));
+    $valid_res = explode(",", variable_get("image_default_resolutions", "original,640x480,800x600,1024x768,1600x1200"));
 
     // See if the original size if sufficent for this resolution. If so, no need to go through
     // the generate loop.
@@ -1427,7 +1427,7 @@
     if ($_GET["res"]) {
       $res = $_GET["res"];
       if ($res != "original") {
-        $valid_res = explode(",", variable_get("image_default_resolutions", "640x480,800x600,1024x768,1600x1200"));
+        $valid_res = explode(",", variable_get("image_default_resolutions", "original,640x480,800x600,1024x768,1600x1200"));
         if (!in_array($res, $valid_res)) {
           $res = variable_get("image_default_resolution", "640x480");
         }
