Page 15 of 19

Re: GTA2 Font Topic - TXT2GTA2 (Version 3 Released!)

Posted: 06 Dec 2011, 15:45
by Cuban-Pete
Add filesize to bench "page" please.

//or dont you see zip difference in file size and only in used bandwidth? :roll:
// is it like gzip?

Re: GTA2 Font Topic - TXT2GTA2 (Version 3 Released!)

Posted: 06 Dec 2011, 15:55
by T.M.
Edit: image test:
Image

the zip is used for text parameter to compress the URL smaller.

I added the filesize now:
http://epicgta2.omnitude.net/gta2text/g ... 3D&z&debug

Edit: added better compression (previous compressed text parameter images may not work)

Re: GTA2 Font Topic - TXT2GTA2 (Version 3 Released!)

Posted: 06 Dec 2011, 16:06
by T.M.
playing with headers now; added proper filename when you save image to disk (firefox didnt recognize it as a png file, was annoying to type .png myself there!) its using ymdHis date format so its easy to sort your pictures you saved and makes them all unique names.

Re: GTA2 Font Topic - TXT2GTA2 (Version 3 Released!)

Posted: 06 Dec 2011, 16:08
by Cuban-Pete
Hey that is a good idea. I don't know what exactly you did, but when I now right click on the image in firefox to view it, I get a dialog if I want to download it. This way we only need to add a small "download" button and link to the image and presto! :)

Re: GTA2 Font Topic - TXT2GTA2 (Version 3 Released!)

Posted: 06 Dec 2011, 16:10
by T.M.
WAIT... when you click that image link, it asks to download? :| im not sure if thats a good idea.

lets test:
http://epicgta2.omnitude.net/gta2text/g ... F7fwM%3D&z

Edit: crap, you are right... i dont like it lol

Edit2: fixed it, wont ask for DL anymore, but i could add it as an option on the page? still, i think its pretty useless since you can always right click on any image and press "save image as".

edit3: wtf is wrong with firefox font? WAWAWAWAWAWAWAWAWAWAWAWAWAWAWAWAWA
looks like:
wtffont.png
wtffont.png (318 Bytes) Viewed 29806 times

Re: GTA2 Font Topic - TXT2GTA2 (Version 3 Released!)

Posted: 06 Dec 2011, 16:14
by Cuban-Pete
Render text smooth turned off? Restart?

Re: GTA2 Font Topic - TXT2GTA2 (Version 3 Released!)

Posted: 06 Dec 2011, 16:26
by T.M.
i dont think i changed my settings, but i hate smooth text anyways, im not gonna enable it lol. (makes me feel like something is wrong with my eyes when everything is blurred).

I added timestamps for the images now; its fully automated: if i modify the gta2text.php, then the timestamp will change and thus all images must be reloaded again.

Re: GTA2 Font Topic - TXT2GTA2 (Version 3 Released!)

Posted: 06 Dec 2011, 16:30
by Cuban-Pete
Wow, sound like a good adjustment.

6 dec 2011 17:24:20

:)

Re: GTA2 Font Topic - TXT2GTA2 (Version 3 Released!)

Posted: 06 Dec 2011, 16:51
by T.M.
how did you get that time btw?

Re: GTA2 Font Topic - TXT2GTA2 (Version 3 Released!)

Posted: 06 Dec 2011, 16:55
by Cuban-Pete
not sure if it is correct, but just rmb on image and select image-info -> general info -> altered on: ...

//firefox

Re: GTA2 Font Topic - TXT2GTA2 (Version 3 Released!)

Posted: 06 Dec 2011, 17:02
by T.M.
wtfux? i can only see my current clock time there lol.

ps: i think the changing filename makes the cache not work properly, testing if it does.

Edit: yup, i was right. the timestamp on the image filename messed up cache; when i closed firefox, it didnt load the images from cache anymore! but now i use a hash of the parameters, so the filename never changes for same image. better for saving too; you know if you already saved the file if you try to save it twice.

Re: GTA2 Font Topic - TXT2GTA2 (Version 3 Released!)

Posted: 06 Dec 2011, 17:33
by T.M.
added JPG and GIF support!

PNG:
Image 17580 bytes
Image 1720 bytes
JPG:
Image 14305 bytes
Image 11271 bytes
GIF:
Image 14281 bytes
Image 1580 bytes

just add "&gif" or etc in end of the image url 8-)

NOTE: jpg doesnt support transparency :lol:

edit: seems like you were correct, gif is smaller :O

Re: GTA2 Font Topic - TXT2GTA2 (Version 3 Released!)

Posted: 06 Dec 2011, 17:37
by Cuban-Pete
jpg is bull. it is for photo's not for these graphics.

gif is faster in loading and smaller filesize, but it is minimal.

compare: http://epicgta2.omnitude.net/gta2text/g ... 3D&z&debug

to: http://epicgta2.omnitude.net/gta2text/g ... &debug&gif

//did you do palette trick with png already?

Re: GTA2 Font Topic - TXT2GTA2 (Version 3 Released!)

Posted: 06 Dec 2011, 17:38
by T.M.
seems like gif doesnt support transparency either :(

edit: wow, 18ms for GIF and 55ms for PNG :shock:

edit: i havent done palette tricks yet.,

Re: GTA2 Font Topic - TXT2GTA2 (Version 3 Released!)

Posted: 06 Dec 2011, 17:41
by T.M.
Create PNG: 55.4 ms
Create JPG: 23.7 ms
Create GIF: 18.3 ms

JPG is pretty fast too :o

trying to get GIF transparency working now...

edit: i think i can make PNG smaller in filesize than GIF if i use 256 palette for the PNG image too.

edit: i tested png gave 1262 bytes with 16 colors, and gif 1580 bytes with 256 colors, weirdly enough: PNG with 256 color made smaller PNG than with 16 color PNG was, only 1133 bytes :shock:

Re: GTA2 Font Topic - TXT2GTA2 (Version 3 Released!)

Posted: 06 Dec 2011, 17:50
by T.M.
can you make me 256 colored transparent PNG for the file "gta2font_normal_c0.png" ? i'll test if it boosts the rendering speed when theres less colors to draw.

Re: GTA2 Font Topic - TXT2GTA2 (Version 3 Released!)

Posted: 06 Dec 2011, 17:55
by Cuban-Pete
I get this:

Re: GTA2 Font Topic - TXT2GTA2 (Version 3 Released!)

Posted: 06 Dec 2011, 17:56
by Cuban-Pete
where is the shiny :(

Re: GTA2 Font Topic - TXT2GTA2 (Version 3 Released!)

Posted: 06 Dec 2011, 18:01
by T.M.
sc folder is shiny. thanks for the PNG btw. atm im trying to make that damn gif transparent argh... so hard.

edit: your png isnt 256 colored? i see lot less colors. (256 colored PNG should be smaller in filesize) also, can you make the bg to white+transparent?

Re: GTA2 Font Topic - TXT2GTA2 (Version 3 Released!)

Posted: 06 Dec 2011, 18:17
by Cuban-Pete
3.4 KB vs 5.32 KB

I did a use index colours in GIMP before saving.

now also added save trans background color, but I have no idea which color it is... gimp does not tell me