- if($fromcmd) print "Image [". $photo ."] ". $details['name'] ." Thumbnails:";
-
- /* if the file hasn't changed there is no need to regen the thumb */
- if($file_md5 == $this->getMD5($photo)) {
- if($fromcmd) print " file has not changed - skipping\n";
- continue;
- }
-
- /* set the new/changed MD5 sum for the current photo */
- $this->setMD5($photo, $file_md5);
+ /* if the file hasn't changed there is no need to regen the thumb */
+ if(!$force && $file_md5 == $this->getMD5($idx)) {
+ if($fromcmd) print " file has not changed - skipping\n";
+ return;
+ }