convert - thumbnail parameters

Questions about the Synology Photo Station can be placed here.

Re: convert - thumbnail parameters

Postby drtoneill » Thu Jan 12, 2012 8:36 pm

C'mon DanielP. So what's the solution then? Even with the thumb.conf HACK it's still going to take 40+ DAYS to thumbnail my 24,000 unsharp photos?
drtoneill
I'm New!
I'm New!
 
Posts: 6
Joined: Thu Jan 12, 2012 11:18 am

Re: convert - thumbnail parameters

Postby beer-matt » Sun Feb 26, 2012 2:58 pm

benob wrote:In the mean time, on my DS110j, I wrote a wrapper script that removes the option:
...
I hope it helps.
Helps a lot, many thanks! :)

master-sonic wrote:I just found this viewtopic.php?f=39&t=43284&p=167812&hilit=thumbnailing#p167812 in the forums.

Seems his method is a bit easier than writing a wrapper. Haven't tried it out yet, as I found at just after I set up the wrapper method which works fine.

Interesting, I just had a look at thumb.conf & thumb_high.conf, the only difference seems to be that thumb.conf does not have the unsharp option for 640 & 1280 thumbnails, however the unsharp option is still there for 120, 320 & 800 thumbnails. Assuming thumb.conf is used for "Normal Quality" and thumb_high.conf is used for "High Quality" I'm wondering if this is a mistake/oversight i.e. the intention was to remove the unsharp for all thumbnails at "Normal Quality"?

Another option to remove the unsharp option from the thumb.conf file (while logged on as root) is:-
Code: Select all
cd /usr/syno/etc
mv thumb.conf thumb.conf.original
grep -v unsharp thumb.conf.original > thumb.conf

It would be nice to have a built-in "Low Quality" option that would have no unsharp options, and also use -sample rather than -size (effectively the same as using the wrapper script).

I'd also like to see an option of offloading the thumbnail creation process i.e. if photos are uploaded without using the photo uploader still allow a PC to take over thumbnail creation (have an option in an assistant program run on a PC).
beer-matt
I'm New!
I'm New!
 
Posts: 9
Joined: Wed Feb 08, 2012 10:53 pm

Re: convert - thumbnail parameters

Postby kungfuman » Thu Mar 08, 2012 5:58 pm

I've just bought myself a DS110j and noticed after transferring 27,000 photos that the Synology NAS' have this problem. I have now deleted all the photo's from the drive as it will take forever to churn through them and see if there is a workable solution. I 'upgraded' from a Lacie NAS and it didnt have to go through this. If I can;t sort this out soon then I may have to return the NAS as its really not up for the job.
kungfuman
I'm New!
I'm New!
 
Posts: 1
Joined: Wed Mar 07, 2012 12:53 pm

Re: convert - thumbnail parameters

Postby ErikY » Sun May 13, 2012 7:43 pm

Hi,
I also saw the convert-thumb processing bringing my DS212+ on its knees.
I do not care for thumbnails, and ignored the convert process, by creating in my home folder a file convert.sh (chmod +x) that just contains:
exit 0
Hence no thumbnails are created at all.
This speeds up the converting, though it still does only 1200 per hour of my 10k images.
Will have to see later if having no thumbnails is an issue, I intend to access the collection per DLNA (by my Samsung TV...)
Meanwhile the PC is still almost 100% by mostly synoindex that seems to run in multiple threads.
What do you think?
ErikY
I'm New!
I'm New!
 
Posts: 4
Joined: Sun May 13, 2012 7:37 pm

Re: convert - thumbnail parameters

Postby m000240 » Wed May 23, 2012 2:18 am

I need some help. I modified the thumb.conf and thumb_high.conf files to reduce quality and eliminate the 1280 thumbnails. Regardless, the diskstation (DS410) is still taking FOREVER to process thumbnails after updating photostation.

My CPU is being used up by synomkthumbd and synoindexd. I assume that the mkthumb is preventing the indexing feature from completing, because newly added video files aren't available on my DLNA devices. Which is the main problem.

I executed find . -name *:THUMB* | wc -l; and there is no change in the number of files reported so I assume the mkthumb isn't actually making thumbs. Additionally, the little progress bar in the DSM web management GUI has INCREASING number of photos remaining. It adds approximately 1 file every ten minutes. This seems counter intuitive. Please advise.
m000240
I'm New!
I'm New!
 
Posts: 2
Joined: Wed Aug 17, 2011 5:13 am

Re: convert - thumbnail parameters

Postby APBilbo » Sun May 27, 2012 10:10 pm

I want to contribute my alternative solution. It's another perl script (use the same procedure to install as the other posted previously by benob here http://forum.synology.com/enu/viewtopic.php?f=17&t=24083#p102578) but use the code below:

This code is provided AS IS and without any waranty. Use it at your own risk. Allways make a backup of the files before changing them.

Code: Select all
#!/usr/bin/perl -w
@new_args = ();
$doLnk = 0;
for $arg(@ARGV) {
        if($arg eq "-size") { $arg = "-sample"; }
        if($arg eq "800x800"){ $doLnk = 1; }
        if($arg eq "1280x1280"){ $doLnk = 1; }
        push @new_args, $arg;
}

if($doLnk){
        exec "ln", ("-sf", $ARGV[$#ARGV-1], $ARGV[$#ARGV]);
}
else{
        exec "/lib/hddapp/usr/syno/bin/convert", @new_args;
}


This code does the following:
- Apply the "size" to "sample" change
- Generate symbolic links for 800x800 and for 1280x1280 sizes.

It theorically will:
- Speed up thumbnail building (as it will only generate the small thumbnails).
- Keep all the photo station functionality working.
- Save a lot of space as big thumbnails are not really generated

The bad thing is that as the big thumbnails (800x800 1280x1280) will not be real thumbnails but symbolic links to the original pictures, so when accesing the picture detail in photo station, the original picture will be downloaded so the transfered data will be bigger.

@synology people, IMO the correct way of managing this problem would be generating the thumbnails on demand when they are accesed through photo station instead of generating them on batch. This way they will only be generated when needed and only in the sizes requested (big pictures will only be generated when you access the picture detail). This will increase user experience of photo station (specially if you can add a progress bar of the thumbnail generation progress) and also save a lot of disk space (as all the pictures will only be generated if they are all accessed down to detail level).

edit: Another thing you should consider is changing the process as it seems that you execute the convert application for each thumbnail you want to generate. This implies reading the file 5 times! (One per thumbnail). Why don't you read the file once and then generate all the 5 thumbnails at a time in a single process... As reading the picture (mines are arround 10MB) is probably the more resource consuming task there it may theorically speed the process up saving almost 80% of the time...
APBilbo
Trainee
Trainee
 
Posts: 12
Joined: Sun May 27, 2012 9:53 pm

Re: convert - thumbnail parameters

Postby APBilbo » Tue May 29, 2012 11:20 am

I've a new version of the workarround. Check it out here:

http://forum.synology.com/enu/viewtopic.php?f=17&t=52060
APBilbo
Trainee
Trainee
 
Posts: 12
Joined: Sun May 27, 2012 9:53 pm

Re: convert - thumbnail parameters

Postby phatassedj » Sat Jul 28, 2012 2:53 am

awesome goodness. Thanks. This worked wonders .
phatassedj
Beginner
Beginner
 
Posts: 20
Joined: Sat Jul 14, 2012 4:57 am

Re: convert - thumbnail parameters

Postby olijey » Fri Nov 30, 2012 2:39 pm

Hi, I appear to have accidentally deleted "/lib/hddapp/usr/syno/bin/convert" on my d211j

Can someone please tell me what this executable should contain?
olijey
I'm New!
I'm New!
 
Posts: 1
Joined: Fri Nov 30, 2012 2:36 pm

Re: convert - thumbnail parameters

Postby klen » Mon Dec 03, 2012 12:42 am

This is the original convert program that the NAS is using to create the thumbnails.
It is going to be difficult to get that back, you have to get the version for your exact model and firmware
DS-412+
DSM 4.2-3202
DS-107+
DSM 2.3-1157
klen
Sharp
Sharp
 
Posts: 159
Joined: Wed Oct 21, 2009 3:05 pm

Re: convert - thumbnail parameters

Postby lordt_nelson » Fri Dec 14, 2012 3:18 pm

Hi

Please help - this is killing me

I am total new to this. Where do I put the code. Can it be done from a windows machine or do I need a Linux system ?
lordt_nelson
I'm New!
I'm New!
 
Posts: 3
Joined: Fri Dec 14, 2012 3:08 pm

Previous

Return to Photo Station

Who is online

Users browsing this forum: No registered users and 2 guests