sydneysunshine wrote:
Also PiPictures is making duplicates of the thumbs in the main dir and they are showing up on the page as well. In the thumbs dir the main pictures are then appearing also. Have I set a setting incorrectly?
The reason for this is that when you upload photos with the Image Manager, the it generates thumbnails for admin view. Then PiPictures generates thumbnails out of Image Manager thumbnails, which results in the duplicates. I fixed it by updating line 122 to the following:
Code: Select all
if ($entry <>'.' && $entry <>'..' && (!is_dir("$rooturl$one/$entry")) && ($endung == 'jpg') && substr($entry, 0, 6) <> "thumb_")
A better solution, however, would be to use the thumbnails generated by the ImageManager or, if images are uploaded by ftp, create thumbs with the filename and location used by ImageManager. Or maybe even change the ImageManager code instead?
