View Full Version : Exporting for hours
Sealed
06-02-2003, 12:20 PM
While I was creating the template and tested it, all worked fine... until I exported my entire collection. :'(
The export itself is a matter of seconds, however, when I also turn on the thumbnail option.. it will take several hours. Windows reports the program as "Not Responding", when I switch to Explorer and then back, there is nothing but a white screen... in the mean time it seems to work it's ass off ;D
Export happens with sizes of 25px,70px and 175px for the different pages... the covers stored in the dbase are between 800px and 1000px, with the option to save them outside the dbase checked.
Anyone else experienced this???
andrei_c
06-02-2003, 01:00 PM
Export happens with sizes of 25px,70px and 175px for the different pages... the covers stored in the dbase are between 800px and 1000px, with the option to save them outside the dbase checked.
This should be the reason. Image resizing takes most of the time during any export, and since you have 3 different image sizes in your template, each image is resized 3 times... That makes the export so slow.
Someone will take a look at this problem, but I wouldn't expect big improvement :(
Sealed
06-02-2003, 07:41 PM
I don't know how it parses the template exactly... but basicly it goes from top to bottom, when it encounters a tag it does something with it ... lets say.. start-page.. it sees "covers" so it starts generating covers.. then on to the next tag etc etc..
so far no problem here, and it goes rather fast too.. then follows groups pages.. say 3 pages with tiny thumbs...
Now I have a start page with 6 new items (covers at 70px) and 3 group pages (covers at 30px).... in about a minute or two, maybe three
then the album pages (covers at 175px).. here starts the problem... because it does (as it looks) nothing for a long time before it starts putting out the covers.. like half an hour or so...
If I make a simple template like
::start/web
<!---->
<!----><!--[cover(175)/]--><!---->
<!---->
it puts out all the covers immediately at a very decent pace, even if I would repeat that line with the different sizes.
Hopes this helps a bit. Oh, and we are talking about 290 albums here.
anywho... I have created a work-around for it .. ;D
In my previous templates I used a custom tag to store the CDDB number, and this one comes in handy again
At the start of my template it says
<!---->
<!----><!--[cover(30)/]--><!---->
<!----><!--[cover(70)/]--><!---->
<!----><!--[cover(175)/]--><!---->
<!---->
Then everywhere else it says
<img src="covers/<!--[custom1/]-->">
it only puts out the 10 newest covers every time I start an export.. and only need to export the covers once, unless I change the size ofcourse :P
and that brings up another point.... I can export the CDDB number in a text file, but not in a HTML export :'(
or at least not with [CDDB] or [CDDBID] or [CDDB_ID]
well, at least I hope I entertained everyone with my lengthy post ;D
Cherio!
andrei_c
06-04-2003, 02:44 AM
Sealed,
Thanks a lot for the infomation, it is helpful. The image generation will be optimized, especially in the way it handles multiple cover sizes.
Andrei
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.