Signed-off-by: Andreas Unterkircher <unki@netshadow.at>
phpfspot (1.7)
- * feature, F-Spot photo versioning
+ * feature, F-Spot photo versioning, #67
+ * bug, display warning when requesting invalid image size, #74
- -- Andreas Unterkircher <unki@netshadow.at> Fri, 18 Aug 2008 06:09:00 +0200
+ -- Andreas Unterkircher <unki@netshadow.at> Fri, 20 Sep 2008 06:09:00 +0200
phpfspot (1.6)
} // get_photo_version_name()
+ /**
+ */
+ public function is_valid_width($image_width)
+ {
+ if(in_array($image_width,
+ Array($this->cfg->thumb_width,
+ $this->cfg->photo_width,
+ $this->cfg->mini_width,
+ 30)))
+
+ return true;
+
+ return false;
+
+ } // is_valid_width()
+
} // class PHPFSPOT
?>
/* show thumbnail */
else {
+ if(!$this->parent->is_valid_width($width)) {
+ $this->parent->showTextImage("Requested width ". $width ."px is not valid!");
+ return;
+ }
/* check for an entry if we already handled this photo before. If not,
create a thumbnail for it.
*/