Post new topic Reply to topic

Page 1 of 1

Topic

Q'uatermass

Joined: 10 May 2006

Posts: 50

Location: somewhere in the backcorner of the low countries

Reply with quote

Post Posted: Tue Mar 02, 2010 6:29 pm — Post subject: How to save your KI pics

I'm not sure if this is the right place, it might be also the tech section. But anyway ..... As far as I can remember in the past you could save your images on your PC. Either they were put directly into a seperate folder, called KI Images, or you had to copy and paste them there. But so far I have not find a way to do it again. Is there anyone who can give me a few guidelines how to keep them so that my KI is not always full?

Keikoku

Joined: 19 Feb 2010

Posts: 115

Location: England

Reply with quote

Post Posted: Tue Mar 02, 2010 6:39 pm — Post subject: Re: How to save your KI pics

Q'uatermass wrote:

I'm not sure if this is the right place, it might be also the tech section. But anyway ..... As far as I can remember in the past you could save your images on your PC. Either they were put directly into a seperate folder, called KI Images, or you had to copy and paste them there. But so far I have not find a way to do it again. Is there anyone who can give me a few guidelines how to keep them so that my KI is not always full?


Every image is saved to the "My Documents\Uru Live\KIimages" folder. The files aren't deleted if you delete the image from the KI. However, you can't restore images to the KI from files.

Tai'lahr

Joined: 15 Mar 2007

Posts: 3200

Location: Revelations' Hood, est. 26 Feb 2007

Reply with quote

Post Posted: Tue Mar 02, 2010 8:17 pm — Post subject:

However, they are unviewable in their current state, so you'll need to convert them using a program like Irfanview.


_________________
OpenUru.org Minkata Test Shard is
OU-Minkata Shard Testers Guide (in laymen's terms)

astro

Joined: 03 Dec 2006

Posts: 933

Location: Denmark

Reply with quote

Post Posted: Tue Mar 02, 2010 9:05 pm — Post subject:

For instance, you can convert many KI images to normal JPG images (or other formats) in one go with Photoshop Elements, menu File > Process Multiple Files.


_________________
Astro, KI# 00374079

CyclinGuy

Joined: 27 Jul 2007

Posts: 117

Location: London

Reply with quote

Post Posted: Tue Mar 02, 2010 9:47 pm — Post subject:

If you don't have access to fancy graphics editing software, you can make a ki image into a normal jpeg by carefully removing the first four bytes of the KIimage file. You'll need a file editor that will load in a binary file, I use Linux, so I use Okteta hex editor, but with care, you can use Notepad in Windows.

Jpeg files usually start with a bye sequence (in hex) of FF D8 FF E0, which looks a bit like y0ya when displayed as ASCII characters, but with a couple of dots over each y and a grave accent over the a. If you examine a Ki image in Notepad or Okteta, you'll see that this sequence appears starting at the fifth byte in the file, ie after four bytes which have some significance to URU, but none to your photo display software, which is why they won't normally load the image. If you delete these four bytes, and save the result under a new filename (do NOT save over the original KIimage file! Wink ) remember to end the filename with .jpeg. Now you can use this new file in any software that can handle a normal jpeg.

If this all sounds a bit technical, you'd probably better use photoshop elements recommended above or have someone else do it for you. Cool


_________________
MOUL Again:
CyclinGuy Ki# 355992
Skydiver CyclinGuy Ki# 673838

MOUL:
CyclinGuy KI# 8385203
Skydiver CyclinGuy KI# 10298312

IanWatson

Joined: 05 Jul 2006

Posts: 263

Location: 9201, 604577, 1837

Reply with quote

Post Posted: Tue Mar 02, 2010 9:47 pm — Post subject:

KI Image Fixer does the trick with minimum fuss.


_________________
DLF - Ian A. Watson

MOULa KI: 00084841 - MOUL KI: 00179642

Keikoku

Joined: 19 Feb 2010

Posts: 115

Location: England

Reply with quote

Post Posted: Tue Mar 02, 2010 10:30 pm — Post subject:

Tai'lahr wrote:

However, they are unviewable in their current state, so you'll need to convert them using a program like Irfanview.


I hadn't noticed that, mainly because IrfanView is my default image viewer.

Hmm; it appears that the first four bytes are the size of the image data (not including the extra four bytes) in little-endian format. I'm guessing that's how they're stored internally, and someone forgot to strip the size when writing the images to disk.

If you have Unix tools (e.g. from Cygwin or MSys), you can strip the prefix bytes with.

Code:

tail -c +5 KIimage0001.jpg > KIimage0001.fixed.jpg


Or if you have Python, this will fix every .jpg file in the directory which hasn't already been fixed:

Code:

import os
for name in os.listdir('.'):
    if not name.lower().endswith('.jpg'):
        continue
    f = open(name, 'rb')
    s = f.read()
    f.close()
    if s[0:4] == '\xff\xd8\xff\xe0':
        continue
    if s[4:8] != '\xff\xd8\xff\xe0':
        continue
    f = open(name, 'wb')
    f.write(s[4:])
    f.close()

Rusty_Russell

Joined: 25 May 2006

Posts: 9836

Location: Luton, UK

Reply with quote

Post Posted: Wed Mar 03, 2010 1:27 pm — Post subject:

Quote:

I'm guessing that's how they're stored internally, and someone forgot to strip the size when writing the images to disk.

It's a known bug. The KI pics share the format / routine with the avatar pics (that you take in your wardrobe) which needs the information.

(Remove the four bytes from those and the game hangs at startup).

All times are GMT

Jump to:

Post new topic Reply to topic

Page 1 of 1

You can…

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum