coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 upload => Topic started by: pponting on April 07, 2006, 04:01:32 AM

Title: Wrong thumbnail for image
Post by: pponting on April 07, 2006, 04:01:32 AM
I have uploaded 1,000's of images using XP publish and after looking in my galleries, there are numerous thumbnails that when clicked, show a different image.
I have deleted my cache and cookies, even tried on a seperate machine that has never accessed my gallery. I am guessing it is possible because there were multiple uploads happening at the same time and all this is happening on a local LAN. (not a web based gallery, internal only)

Is there any way to get CPG to re-index/re-create all thumbnails and intermediate images from the full images without having to upload them all again?

I have tried the admin tools (Update Thumbs and resize photo's) but this does not seem to actually update the thumbnails?

I have searched the forum and most results seem to point to cache or cookie problems, howerver I have cleared them all and as mentioned above have tried a fresh machine to no avail.

Thanks
Title: Re: Wrong thumbnail for image
Post by: Joachim Müller on April 07, 2006, 07:37:44 AM
post a link to a thumbnail page that behaves as you described.
Title: Re: Wrong thumbnail for image
Post by: pponting on April 07, 2006, 10:34:04 AM
Quote from: GauGau on April 07, 2006, 07:37:44 AM
post a link to a thumbnail page that behaves as you described.

The gallery is on an internal server with no external access so I am unable to post a link.
Basically, the thumbnail shows a picture of one thing but the intermediate show an image of another thing. I noticed this first after doing a search for all AVI files, most of the search returned thumbnails of normal JPG photo's but clicking on them shows the actual AVI so it looks like the worng thumb is linked to the uploaded file.
Title: Re: Wrong thumbnail for image
Post by: Joachim Müller on April 07, 2006, 10:58:40 AM
what coppermine version do you have? Make sure to have cpg1.4.4. If your version is lower, then upgrade.
Title: Re: Wrong thumbnail for image
Post by: pponting on April 07, 2006, 11:26:11 AM
Yes, it  is cpg1.4.4
Title: Re: Wrong thumbnail for image
Post by: Joachim Müller on April 07, 2006, 04:22:40 PM
hm, hard to recommend anything if we can't see what actually happens. Do you have any mods/plugins applied that might interfere?
Title: Re: Wrong thumbnail for image
Post by: pponting on April 07, 2006, 06:26:46 PM
No mods or plugins, just a vanilla install of cpg1.4.4.
When I uploaded the images with XP Publis, I had multiple uploads uploading files from the same machine to the same album. As it is on a local LAN, the uploads were very quick and I can't help wondering if maybe images somehow got cross referenced with other uploads.

Is there any easy way to rebuild the thumbs without re-uploading?
Title: Re: Wrong thumbnail for image
Post by: Nibbler on April 07, 2006, 06:30:01 PM
Yes, you can use admin tools to do that.
Title: Re: Wrong thumbnail for image
Post by: pponting on April 07, 2006, 07:43:03 PM
If I rebuild a thumbnail for an AVI that has managed to get a thumb from a JPG associated with it, what will happen? Will it resort to the default icon used for an AVI or will it use the thumb that was already in place?
Title: Re: Wrong thumbnail for image
Post by: pponting on April 07, 2006, 07:51:38 PM
Just tried it. It gives an error soaying it can't rebuild the thumbnail for xyz.AVI and just reuese the thumbnail that was already in place.

Is there any way of getting rid of the thumbs manually and then recreating them? would it be safe to do it by FTP?
Title: Re: Wrong thumbnail for image
Post by: Nibbler on April 07, 2006, 07:54:54 PM
That should be fine.
Title: Re: Wrong thumbnail for image
Post by: pponting on April 08, 2006, 12:35:25 AM
Just had a thought. I have files with the same name but different extension.

I have an AVI called 010723_001.AVI and a JPG called 010723_001.JPG (same name, different extension) and they are both in the same album (therefore stored in the same folder) could this give the problems I am having?

I am guessing that as the AVI did not create a thumbnail during upload (as it is an AVI) but due to the mechanics behind cpg, the thumb for the JPG will be displayed for the AVI as the name is the same.
Title: Re: Wrong thumbnail for image
Post by: Nibbler on April 08, 2006, 12:57:41 AM
Yes, that's how custom thumbnails work normally.
Title: Re: Wrong thumbnail for image
Post by: pponting on April 08, 2006, 01:01:52 AM
Gotcha. So the best thing to do is ensure that no two files have the same name even if the extension is different otherwise the thumb can appear corrupt as mine are.
I have deleted all my albums as it is on a local LAN I can recreate them quite quickly (only about 5,000 images), I am going to sort them prior to uploading and ensure there are no duplicates etc then go for the mass upload again tomorrow.

Cheers