Jump to content
The Dark Mod Forums

Gimpy's Application


New Horizon

Recommended Posts

Yeah well when you think about it, TGA is a really DUMB format for displaying on the web :)

 

The solution could only involve some sort of automated batch process that generates JPG thumbnails of all the TGA files, and any new ones added. Wether that happens automatically when you add them, or someone has to run the update on the new ones, is another story.

Link to comment
Share on other sites

found it! :D

its just not in the common lists. image/x-targa

 

the only reason im doing tga is because its in the format you use, right?

you dont really need tumbnails if your description is good enough, i will have a search function.

 

I'll have a look to see if PHP can convert tga's to another web-friendly format.

Link to comment
Share on other sites

I found a way of converting tga files into jpg's.

ive never used this function before but it looks do-able.

 

im going to need an actual tga file your using in-game so i can see if it converts correcty (not upside down and back to front....)

Link to comment
Share on other sites

There is an appliction on linux which can convert and process all kind of images. That's why I added the path option on the type setting. To either specify a path to a default thumbnail or to an application that will create the thumbnail. I guess we should name the thumbnail the same as the file itself with the extension replaced by thn (or something). On unix this is pretty easy to do anyway, because in worst case I can provide a script wrapper that returns that creates the thumbnail by calling the appropriate script.

Gerhard

Link to comment
Share on other sites

great, if php cant handle it then we have a few alternative forms of conversion.

hell, if we really need too running php from the command line for image batch conversions every 30 seconds or so would work...

Link to comment
Share on other sites

You don't need to run it every 30 seconds. Just once when an image is uploaded.

 

My idea was like this (just examples):

 

Create a type TGA Image.

Specify the extension.

Specify the application that will create the thumb.

 

Create a type WAV file.

Specify the extension.

Specify the the default thumb.

 

Create as many types as we need...

 

That reminds me. It must be possible to upload a custom thumb, because of the models. We can not create a thumbnail of a model, so we have to provide the appropriate image. Or we can ignore models and just store the images instead, which wouldn't matter since we don't want to store the actual files anyway as they are already in CVS.

 

Now when you want to upload a file it looks for the extension (ignoring the case because Unix is case senstive) and provides the appropriate type (or the user has to select it). Then when it is uploaded the application is called which will create the thumb and store it in the database. If it is the default thumbnail it doesn't need to create it, instead it just inserts the path to the default in the DB instead of the real thumbnail.

 

Pretty straigthforward IMO.

Gerhard

Link to comment
Share on other sites

as i said, ive already got the option to upload a separate thumbnail in bmp or jpeg format.

Im just trying to make the web application intelligent enough to convert the uploaded texture into a jpeg thumbnail IF there was no thumbnail uploaded with it.

Link to comment
Share on other sites

  • 2 weeks later...

ok, just a quick update. (im going on holiday today, just for a week)

 

i got my server and webhosting, like I said.

 

once i get back, i will upload what ive been able to do for you to this address:

 

http://darklibrary.nanoweb.net.au

 

if you visit that page now, all you'll get is what ive had the time to do lately. most of that stuff wont work anyway as mysql isnt setup yet.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recent Status Updates

    • OrbWeaver

      Does anyone actually use the Normalise button in the Surface inspector? Even after looking at the code I'm not quite sure what it's for.
      · 6 replies
    • Ansome

      Turns out my 15th anniversary mission idea has already been done once or twice before! I've been beaten to the punch once again, but I suppose that's to be expected when there's over 170 FMs out there, eh? I'm not complaining though, I love learning new tricks and taking inspiration from past FMs. Best of luck on your own fan missions!
      · 4 replies
    • The Black Arrow

      I wanna play Doom 3, but fhDoom has much better features than dhewm3, yet fhDoom is old, outdated and probably not supported. Damn!
      Makes me think that TDM engine for Doom 3 itself would actually be perfect.
      · 6 replies
    • Petike the Taffer

      Maybe a bit of advice ? In the FM series I'm preparing, the two main characters have the given names Toby and Agnes (it's the protagonist and deuteragonist, respectively), I've been toying with the idea of giving them family names as well, since many of the FM series have named protagonists who have surnames. Toby's from a family who were usually farriers, though he eventually wound up working as a cobbler (this serves as a daylight "front" for his night time thieving). Would it make sense if the man's popularly accepted family name was Farrier ? It's an existing, though less common English surname, and it directly refers to the profession practiced by his relatives. Your suggestions ?
      · 9 replies
    • nbohr1more

      Looks like the "Reverse April Fools" releases were too well hidden. Darkfate still hasn't acknowledge all the new releases. Did you play any of the new April Fools missions?
      · 5 replies
×
×
  • Create New...