|
Post by Steve on Jun 9, 2005 20:06:21 GMT
I see. I use the 'Replace' feature within Wordpad to do a lot of editing, but it sometimes still leaves me having to renumber manually. My head really is empty this evening so I won't try explaining how I use the Replace feature right now. I imagine you already make use of something like that though, yes?
|
|
|
Post by Steve on Jun 9, 2005 20:13:07 GMT
Actually, Spymaster, yes there is a way to almost automate the whole process, using:
1. The batch converter feature in Irfanview 2. The batch rename in Irfanview 3. The 'Replace' feature in Wordpad, UltraEdit, or similar
It would only require using a fixed numbering system but it would work. You might have spotted what I mean just from what I've said there, but I'll explain later or tomorrow when hopefully my head will be less vacant.
|
|
|
Post by SpyMaster on Jun 9, 2005 20:18:44 GMT
Ok thanks Steve. I have to go to bed now anyways so I look forward to your explanation and I hope that your head becomes less vacant soon.
On another note I was just doing it manually and made a fatal error. I edited a new page in the existing page notepad, clicked save and lost my first page. Life is not fun when you do that I've done it before and it sucks. I'm going to go to bed now before I get really mad.
|
|
|
Post by Steve on Jun 9, 2005 20:22:28 GMT
Ouch Okay Spymaster, I'll reply tomorrow.
|
|
|
Post by Steve on Jun 10, 2005 5:20:07 GMT
Just a note on image hosting, Spymaster. Well, Alice too because we'll need to consider our next image host sooner than I thought.
I checked yesterday and the storage limit at Photobucket is 25MB. Our average jpeg size is 35KB.
25MB divided by 35KB = 714 pics.
We are averaging around 100 pics per episode, so probably after ep.5 or ep.6 is uploaded, we will be looking for our next host. That will leave Alice with some surplus space in her Photobucket account for other purposes.
---------------------------------
P.S. Just so you can plan ahead, Spymaster, and in case you're not sure how to do that calculation:
1MB = 1,000,000 Bytes 1KB = 1,000 Bytes
therefore:
Storage capacity divided by average filesize = number of files which can be stored, so:
25,000,000 (Bytes) divided by 35,000 (Bytes) = 714 (files)
|
|
|
Post by Steve on Jun 10, 2005 5:43:39 GMT
I just duplicated that scenario in Notepad, Spymaster - editing the page then accidentally clicking Save instead of Save As.
If you then proceed to close the page then that's the end of it and the original page is lost, but if you realise straight away what you have done then you can still recover from it, using these steps:
1. Leaving your current Notepad page open (we'll call it page 1b - the lost page is page 1a), proceed to open a new instance of Notepad (we'll call it page 2, and see note below). 2. Select All on your original Notepad page 1b - then Copy and Paste into your new Notepad page 2, and Save As filename 3. Return to your original Notepad page 1b, right-click and select Undo - this will undo everything since the previous save and the original page 1a will be restored.
Note: Open the new instance of Notepad via File - Programs - Accessories - Notepad, rather than clicking File - New from within Notepad itself, as this latter action will force the open page to close, meaning you can no longer recover data from it. This also will only work if you opened the page, did all the editing and then clicked Save once at the very end - if you have been hitting Save every few lines (as you should) then you will only be able to undo as far back as the last save or the last correction.
|
|
|
Post by SpyMaster on Jun 10, 2005 17:25:32 GMT
Right so I'm stupid on two counts. One I didn't know you could do that with the undo button. Two I hadn't been saving every few lines and had waited till the end. Oh I feel stupid. Never mind. Thanks Steve I didn't know how to do the calculation either.
|
|
|
Post by Steve on Jun 10, 2005 17:39:24 GMT
My system for the streamlined html editing will definitely work, Spymaster, but it's going to take me a while to write it down. As soon as it's written I'll post it though and I think you will find it a big help.
|
|
|
Post by SpyMaster on Jun 10, 2005 17:47:11 GMT
My system for the streamlined html editing will definitely work, Spymaster, but it's going to take me a while to write it down. As soon as it's written I'll post it though and I think you will find it a big help. Thanks Steve I'll owe you again. What is it now? More than I can count that's for sure.
|
|
|
Post by SpyMaster on Jun 11, 2005 17:14:39 GMT
Steve a warning. Don't use ripway. I uploaded all 639 of my screencaps there and then the next day my account ran out of bandwith which naturally annoyed the people I'd uploaded them for. I'm searching for another hosting service that's as reliable and as brilliant as photobucket - yet to find one. Let me know if you do.
Spy_Master
|
|
|
Post by Steve on Jun 11, 2005 19:50:13 GMT
Oh dear! I haven't even been considering bandwidth, because for the moment there just won't be too many people visiting the screencaps site so it shouldn't be an issue (hopefully). I have the Photobucket bandwidth limit stored in a folder here, I'll have a look. Yep, it's 1,500 MB (1.5GB) per month. We're averaging 35KB per jpeg, so: 1,500,000,000 divided by 35,000 = 42,857 pic downloads per month. It will be a long time before we exceed that. Thanks for the info on Ripway though, Spymaster, I'll have a look at their bandwidth restrictions later. I assume it must be a whole lot less than Photobucket.
|
|
|
Post by Steve on Jun 11, 2005 20:09:35 GMT
This will inevitably take a while to explain, Spymaster, but I'll keep it as brief as possible. You were saying you were uploading up to 200 pics per episode, so I'll describe the system for that amount, but the same system can be used for more or less pics per ep, just by changing the details. The first step is to decide how many thumbnails you want per page - I will assume 20 but you can change that to suit. Step one would be to decide on a fixed system for naming and numbering the pics. I would suggest something like s1e1_001 where s1 indicates series1, and e1 indicates episode1. The underscore serves to separate the episode count digits from the pic count digits - for 200 pics that would run from 001 to 200. So a typical pic filename might end up as s4e3_167.jpgIf you're working on more than one show, which you probably are, then you might prefix that with a programme name indicator. For Without a Trace, for example, you might add the prefix wat, thus: wat_s4e3_167.jpgI would avoid using spaces, because they can convert to %20 and make everything untidy so I'd use underscores instead, and I'd avoid capital letters too but that's only personal preference. Step two would be to create an html template for a single page of 20 pics. You can use url url url url<p> to place them four, or however many, to a line, or we've used tables on the new site, which allows us to put a text descriptor underneath each pic - you're welcome to have a look at the source code and modify it to suit if it's anything close to what you would be looking for. Just change the logo image and the background image and it would be ready to go. It's completely irrelevant how you achieve the desired layout though - the important thing is to use that numbering system. Save that page of code as template_01.txt or similar, and when it's finished, the URLs it contains will look something like this:
<a href="http://i4.photobucket.com/albums/y117/username/without_a_trace/wat_s1e1_001.jpg"><img SRC="http://i4.photobucket.com/albums/y117/username/without_a_trace/wat_s1e1_001.jpg"
<a href="http://i4.photobucket.com/albums/y117/username/without_a_trace/wat_s1e1_002.jpg"><img SRC="http://i4.photobucket.com/albums/y117/username/without_a_trace/wat_s1e1_002.jpg"
<a href="http://i4.photobucket.com/albums/y117/username/without_a_trace/wat_s1e1_003.jpg"><img SRC="http://i4.photobucket.com/albums/y117/username/without_a_trace/wat_s1e1_003.jpg"
etc. up to:
<a href="http://i4.photobucket.com/albums/y117/username/without_a_trace/wat_s1e1_020.jpg"><img SRC="http://i4.photobucket.com/albums/y117/username/without_a_trace/wat_s1e1_020.jpg"
Step 3 - from here on, start using WordPad, because Notepad has no 'Replace' facility - which is about to become very important. WordPad should be found at Start - Programs - Accessories - WordPad. If not then add it from your Windows CD, or download Ultra Edit or similar - any freebie text editor which has a Replace feature. Copy the code from template_01.txt into a blank document and Save As template_02.txtNow edit the pic numbers manually so they run from 021 up to 040 - that will only take a few minutes, and click Save when it's finished. Step 4 - Copy the code into a blank document - edit the pic numbers so they run from 041 up to 060 and Save As template_03.txtSoon you will have a set of 10 templates, like this:
template_01.txt template_02.txt template_03.txtetc. up to: template_10.txtcontaining pic URLs running from:
wat_s1e1_001.jpgup to wat_s1e1_200.jpgThat's the html side of things taken care of for WaT, series1, ep1, pics 001 to 200, and you can create a set of 10 html files at your host server, simply by copying that code in, and calling them whatever - it might be an idea to use a similar naming system, like so:
www.freeserver.com/username/wat_s1e1p01.html
up to www.freeserver.com/username/wat_s1e1p10.htmlwhere p01 to p10 indicate the page numbers. (I'll put the next step in a separate post).
|
|
|
Post by Steve on Jun 11, 2005 20:12:41 GMT
Now let's say it's the following week and it's time to create the pages for series1, ep2. Just open template_01.txt in WordPad, click on Edit - Replace, and put this in the boxes: Then click on Replace All and your code editing is finished. Save As filename=whatever, then do the same for the other nine templates, which will take you no time at all and the code editing for that entire ep will be finished and you can copy the code into the new html pages at the server, which will be:
www.freeserver.com/username/wat_s1e2p01.htmlup to www.freeserver.com/username/wat_s1e2p10.html(continued in separate post).
|
|
|
Post by Steve on Jun 11, 2005 20:15:38 GMT
Now let's say you want to work on some pages for The Royal, instead of WaT.
No problem - just open template 01 in WordPad - click on Edit - Replace, and replace:
without_a_trace
with
the_royal
That will edit the folder name within all the URLs, and then replace:
wat_
with
tr_
and then edit the series and episode identifiers as required, e.g., replace:
s1e1
with
s4e6
and that will edit all the jpeg file names. Save As filename=whatever, then do the same for the other nine templates, and you will have created the code for 10 new TR pages in no time at all.
Note: If you're using separate folders to store the pics at the server, think carefully before naming them. Don't, for example, call the folder 'wat' and then use 'wat' within the jpeg filename also, because if you replace the term 'wat' it will replace both the folder name and the filename - it would be good to be able to control those separately, so that's why I named the folder 'without_a_trace' and the filename 'wat' - so they can be edited separately in case it's ever required.
(continued in separate post).
|
|
|
Post by Steve on Jun 11, 2005 20:19:42 GMT
That naming system will allow you to quickly and easily create complete html pages for any programme, any episode, any page. Using the same naming convention for all pics is a key factor in all of this - this allows you to edit quickly using the Replace feature. IrfanView can do batch renaming while it is doing the bitmap-to-jpeg conversion, and here are the steps to follow when doing your conversions, including a batch rename at the same time. 1. Put your bitmaps - all 200 or however many - into a folder on your PC and then open Irfanview 2. Open the batch converter - select all 200 files and then Add All3. Select the output folder but do not convert yet - instead go to next step 4. Use the Sort feature to put them into the desired order - sort by Name, or Date-Ascending, etc. 5. Click on Batch Conversion - Rename Result Files6. Click on Set Rename Options7. Use a naming system similar to the example in the image below, in which s1e1 denotes Series 1, Episode 1. The underscore separates the episode ID digit from the file count number, as the three hash symbols ### will become digits in the final renamed files. I've also set it to count from 001 instead of 1 but that step isn't really necessary. What is important is to be consistent, and whatever number of digits you use - be it a count starting from 1 or 01 or 001 - always use the same system. Similarly with the name itself - i.e. s1e1 - always use the same system. 8. Click on Start and the files will be both converted and renamed, giving you a set of files like this:
wat_s1e1_001.jpg wat_s1e1_002.jpg wat_s1e1_003.jpg wat_s1e1_004.jpg wat_s1e1_005.jpg etc.Rename Settings:
|
|