Where are photo station's thumbnails stored?

Don't miss a thing. Post your questions and discussion about other uncategorized NAS features here.
Locked
gleep52
Starting out
Posts: 45
Joined: Thu Feb 11, 2010 3:02 pm

Where are photo station's thumbnails stored?

Post by gleep52 »

At some point, I have a folder created under every folder with photos titled: .@__thumb

Is this folder created by the photo station? Or is this folder created by some other application I have installed? I use btsync to sync all my photos (photographer 1tb+ pictures) between 4 different locations including two offsite PCs. The .@__thumb folder is killing me for a multitude of reasons, especially when using lightroom or picasa...

Can anyone shed some light on this .@__thumb folder?

Thanks in advance!
User avatar
pwilson
Guru
Posts: 22533
Joined: Fri Mar 06, 2009 11:20 am
Location: Victoria, BC, Canada (UTC-08:00)

Re: Where are photo station's thumbnails stored?

Post by pwilson »

gleep52 wrote:At some point, I have a folder created under every folder with photos titled: .@__thumb

Is this folder created by the photo station? Or is this folder created by some other application I have installed? I use btsync to sync all my photos (photographer 1tb+ pictures) between 4 different locations including two offsite PCs. The .@__thumb folder is killing me for a multitude of reasons, especially when using lightroom or picasa...

Can anyone shed some light on this .@__thumb folder?

Thanks in advance!
Thumbnails are stored in the .@__thumb folders littered all over your storage volumes.

Patrick M. Wilson
Victoria, BC Canada
QNAP TS-470 Pro w/ 4 * Western Digital WD30EFRX WD Reds (RAID5) - - Single 8.1TB Storage Pool FW: QTS 4.2.0 Build 20151023 - Kali Linux v1.06 (64bit)
Forums: View My Profile - Search My Posts - View My Photo - View My Location - Top Community Posters
QNAP: Turbo NAS User Manual - QNAP Wiki - QNAP Tutorials - QNAP FAQs

Please review: When you're asking a question, please include the following.
User avatar
schumaku
Guru
Posts: 43579
Joined: Mon Jan 21, 2008 4:41 pm
Location: Kloten (Zurich), Switzerland -- Skype: schumaku
Contact:

Re: Where are photo station's thumbnails stored?

Post by schumaku »

Best solution might be to lt the NAS use these shared folders / subfolders for the Multimedia Library for Photo Station, File Station*, Video Station _or_ take the folders out of the Multimedia Library processing for Lightroom, Picasa, ... simply to much different apps trying to deal with the photos and attempting to make things easy.

For File Station, you have to disable the thumbnail creation globally - otherwise File Station will also trigger the creation.
gleep52
Starting out
Posts: 45
Joined: Thu Feb 11, 2010 3:02 pm

Re: Where are photo station's thumbnails stored?

Post by gleep52 »

Is there a way I can remove all these .@__thumb folders easily? I have hundreds, maybe thousands of subdirectories. I've turned off the photo app on the qnap. How can I "undo" it's folder and thumbnail creations?
User avatar
pwilson
Guru
Posts: 22533
Joined: Fri Mar 06, 2009 11:20 am
Location: Victoria, BC, Canada (UTC-08:00)

Re: Where are photo station's thumbnails stored?

Post by pwilson »

gleep52 wrote:Is there a way I can remove all these .@__thumb folders easily? I have hundreds, maybe thousands of subdirectories. I've turned off the photo app on the qnap. How can I "undo" it's folder and thumbnail creations?
I suppose you could spend numerous hours deleting files via File Station. Unfortunately QNAP does not provide "xargs" at all, and only provides the substandard Busybox version of "find", so doing this from the command line is difficult via SSH unless you install "findutils" via either QNAPware or depreciated Optware.

QNAPware:

Code: Select all

admin@NASTY2:~/bin# opkg list | grep findutils
findutils - 4.5.14-1 - GNU Find Utilities are the basic directory searching utilities of the GNU OS.
findutils-locate - 4.5.14-1 - locate, updatedb is a part of GNU Find Utilities.
Optware:

Code: Select all

admin@NASTY2:~/bin# ipkg list | grep findutils
findutils - 4.2.32-1 - File finding utilities
findutils-doc - 4.2.32-1 - Documentation for file finding utilities
Please note how out-of-date the Optware version is.

Patrick M. Wilson
Victoria, BC Canada
QNAP TS-470 Pro w/ 4 * Western Digital WD30EFRX WD Reds (RAID5) - - Single 8.1TB Storage Pool FW: QTS 4.2.0 Build 20151023 - Kali Linux v1.06 (64bit)
Forums: View My Profile - Search My Posts - View My Photo - View My Location - Top Community Posters
QNAP: Turbo NAS User Manual - QNAP Wiki - QNAP Tutorials - QNAP FAQs

Please review: When you're asking a question, please include the following.
gleep52
Starting out
Posts: 45
Joined: Thu Feb 11, 2010 3:02 pm

Re: Where are photo station's thumbnails stored?

Post by gleep52 »

I just used a windows machine, mounted the folder I wanted, and ran a quick powershell command.

Code: Select all

remove-item Z:\* -include .@__thumb -recurse -force
Also ran it for some file named ZbThumbnail.info which seemed to be everywhere as well. Anything else I should look for to clean up?
User avatar
pwilson
Guru
Posts: 22533
Joined: Fri Mar 06, 2009 11:20 am
Location: Victoria, BC, Canada (UTC-08:00)

Re: Where are photo station's thumbnails stored?

Post by pwilson »

gleep52 wrote:I just used a windows machine, mounted the folder I wanted, and ran a quick powershell command.

Code: Select all

remove-item Z:\* -include .@__thumb -recurse -force
Also ran it for some file named ZbThumbnail.info which seemed to be everywhere as well. Anything else I should look for to clean up?
That should suffice. I however am not a Windows or Powershell user.

Patrick M. Wilson
Victoria, BC Canada
QNAP TS-470 Pro w/ 4 * Western Digital WD30EFRX WD Reds (RAID5) - - Single 8.1TB Storage Pool FW: QTS 4.2.0 Build 20151023 - Kali Linux v1.06 (64bit)
Forums: View My Profile - Search My Posts - View My Photo - View My Location - Top Community Posters
QNAP: Turbo NAS User Manual - QNAP Wiki - QNAP Tutorials - QNAP FAQs

Please review: When you're asking a question, please include the following.
User avatar
hbokh
New here
Posts: 3
Joined: Sat Aug 08, 2015 8:13 pm
Location: Netherlands
Contact:

Re: Where are photo station's thumbnails stored?

Post by hbokh »

You don't need "xargs" to remove these thumbnails-folders recursively.
Just SSH into the NAS and run this (change the folder mentioned in the first line), using find from "findutils"-package:

Code: Select all

cd /share/Multimedia/Music
find . -type d -name ".@__thumb" -exec rm -rf {} \;
Cheers, Henk ● recovering sysadmin from the Netherlands
QNAP TS-251 ● QTS 4.2.0 ● 2x WD Red WD20EFRX 2TB in RAID1
3rdparty
Starting out
Posts: 34
Joined: Thu Jul 21, 2011 1:22 am

Re: Where are photo station's thumbnails stored?

Post by 3rdparty »

Code: Select all

cd /share/Multimedia/Music
find . -type d -name ".@__thumb" -exec rm -rf {} \;
I tried that but it doesn't want to accept the expression. Incidentally I'm using it to remove the "@eaDir" folder that my Synology NAS had created (I've copied that data over to my new QNAP TS-453mini).

This is what I'm trying via SSH on QNAP once in my photos directory:

Code: Select all

find . -type d -name “@eaDir“ -exec rm -rf {} \;
User avatar
Trexx
Ask me anything
Posts: 5393
Joined: Sat Oct 01, 2011 7:50 am
Location: Minnesota

Re: Where are photo station's thumbnails stored?

Post by Trexx »

Did you install the QNAPware FindUtils package prior to trying to run the command above?
Paul

Model: TS-877-1600 FW: 4.5.3.x
QTS (SSD): [RAID-1] 2 x 1TB WD Blue m.2's
Data (HDD): [RAID-5] 6 x 3TB HGST DeskStar
VMs (SSD): [RAID-1] 2 x1TB SK Hynix Gold
Ext. (HDD): TR-004 [Raid-5] 4 x 4TB HGST Ultastor
RAM: Kingston HyperX Fury 64GB DDR4-2666
UPS: CP AVR1350

Model:TVS-673 32GB & TS-228a Offline[/color]
-----------------------------------------------------------------------------------------------------------------------------------------
2018 Plex NAS Compatibility Guide | QNAP Plex FAQ | Moogle's QNAP Faq
3rdparty
Starting out
Posts: 34
Joined: Thu Jul 21, 2011 1:22 am

Re: Where are photo station's thumbnails stored?

Post by 3rdparty »

Trexx wrote:Did you install the QNAPware FindUtils package prior to trying to run the command above?
I just installed QNAPware qpkg. Do I have to do anything else to install FindUtils separately? Running the command again causes the SSH session to pause (like its processing) and then return to prompt, but folders are still there.
User avatar
Trexx
Ask me anything
Posts: 5393
Joined: Sat Oct 01, 2011 7:50 am
Location: Minnesota

Re: Where are photo station's thumbnails stored?

Post by Trexx »

Code: Select all

opkg install findutils
Paul

Model: TS-877-1600 FW: 4.5.3.x
QTS (SSD): [RAID-1] 2 x 1TB WD Blue m.2's
Data (HDD): [RAID-5] 6 x 3TB HGST DeskStar
VMs (SSD): [RAID-1] 2 x1TB SK Hynix Gold
Ext. (HDD): TR-004 [Raid-5] 4 x 4TB HGST Ultastor
RAM: Kingston HyperX Fury 64GB DDR4-2666
UPS: CP AVR1350

Model:TVS-673 32GB & TS-228a Offline[/color]
-----------------------------------------------------------------------------------------------------------------------------------------
2018 Plex NAS Compatibility Guide | QNAP Plex FAQ | Moogle's QNAP Faq
athinaok
Starting out
Posts: 12
Joined: Fri Apr 27, 2018 6:53 pm

Re: Where are photo station's thumbnails stored?

Post by athinaok »

Copy paste this code to a file named rmthumbnails.py .
Plase file where you want to start scan and remove files and folders.

Code: Select all

import os, shutil

for root, dirs, files in os.walk('.', topdown=False):
        print "Root: %s" % root
        for dir in dirs:
                if dir == '.@__thumb':
                        delpath = os.path.join(root, dir)
                        print "Removing %s" % delpath
                        shutil.rmtree(delpath)
        for file in files:
                if file == '.hightlight':
                        delpath = os.path.join(root, file)
                        print "Removing %s" % delpath
                        os.remove(delpath)
                elif file == 'Picasa.ini':
                        delpath = os.path.join(root, file)
                        print "Removing %s" % delpath
                        os.remove(delpath)
                elif file == 'Thumbs.db':
                        delpath = os.path.join(root, file)
                        print "Removing %s" % delpath
                        
                        
Run code from ssh with command python rmthumbnails.py

Code taken from qnap forum
viewtopic.php?f=50&t=3100
User avatar
OneCD
Guru
Posts: 12146
Joined: Sun Aug 21, 2016 10:48 am
Location: "... there, behind that sofa!"

Re: Where are photo station's thumbnails stored?

Post by OneCD »

* topic locked to prevent further necroposting *

ImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImage
Locked

Return to “Miscellaneous”