|
||||
| ||||
|
|
#1 |
|
Hall Of Famer
Join Date: Dec 2001
Location: Douglasville, GA
Posts: 2,735
|
Cato History & Online Leagues?
I have a couple of questions.
I have been asked to run the Cato Utility History program for one of the leagues I'm in and one problem that I see is going to be the size of the files. Using Logos and Player Photos is going to make this pretty big to host on the server space we have. Can you change the logos and player photos to Jpegs and they still show up? Is there any tips or advice out there to reduce the size without limiting the amount of info it can produce? |
|
|
|
|
|
#2 |
|
Minors (Single A)
Join Date: Apr 2002
Location: Atlanta
Posts: 68
|
I host the histories of two online leagues, one with 5 years of history and 24 teams, the other with 7 years and 26 teams.
They currently take 104Meg and 128Meg respectively. I've got team logos, but no player photos. Logos don't take up more than 600K in one league, and about 100K in the other, so I wouldn't worry too much about them. Cato's utility allows you to specify the extension to be used for player photos and logos, so there should not be a problem if you wanted to use jpgs. It's all going to depend on the size of the images. The facepacks I've downloaded in the past ran about 14 Megs/1000 .bmp files, so I guess you're only talking another 28 Megs for 2000 players. Not great, but not necessarily a deal killer. I'd rather have the space for more seasons, but that's just me. Also, if you want to reduce size, you can consider not generating the yearly player split pages. -- Evan |
|
|
|
|
|
#3 |
|
All Star Reserve
Join Date: Feb 2002
Location: Edmonton, Alberta (but still wishing I was in Halifax, Nova Scotia, Canada)
Posts: 834
|
Why not just leave out the logos/player photos? Or atleast the player photos.
|
|
|
|
|
|
#4 |
|
Hall Of Famer
Join Date: Dec 2001
Location: Douglasville, GA
Posts: 2,735
|
Thats what I did...but I believe the commish wants to get them in...I'm thinking that perhaps we don't have enough server space to have them on the site....after a few seasons anyway.
|
|
|
|
|
|
#5 |
|
All Star Reserve
Join Date: Apr 2002
Location: Atlanta, GA
Posts: 650
|
If the player photos are already on the site as part of the OOTP HTML output, you could generate the Cato output, then mass edit the player pages to point to the already-existing player photos on the website.
For example, let's say a player page in the Cato output points to \images\photos\Babe_Ruth.jpg. Babe_Ruth.jpg already exists on the website, at address http://www.leaguesite/photos/Babe_Ruth.jpg. Edit all of your player pages (a good text editing program like UltraEdit can do this in one move with Replace In Files) to replace this string: \images\photos\ with this string: http://www.leaguesite/photos/ Just a thought - the size of the photo pack might not be that big to warrant going through the hassle. |
|
|
|
|
|
#6 |
|
Hall Of Famer
Join Date: Dec 2001
Location: Douglasville, GA
Posts: 2,735
|
I'll check out the text editor. I had thought that might have been possible but was figuring that it would entail editing each page by hand....which would be a ton of work.
|
|
|
|
|
|
#7 |
|
All Star Reserve
Join Date: Apr 2002
Location: Atlanta, GA
Posts: 650
|
Anything that'll do a replace X with Y function on multiple files at a time is a good tool to use in conjunction with the Cato output, for fine-tuning.
|
|
|
|
|
|
#8 |
|
Hall Of Famer
Join Date: Apr 2002
Location: Ft Smith Ark. USA
Posts: 2,681
|
That’s a good solution, just point to the already-uploaded photos.
|
|
|
|
![]() |
| Bookmarks |
|
|