GTA2 Font Topic - TXT2GTA2 (Version 3 Released!)
- Cuban-Pete
- Immortal
- Posts: 909
- Joined: 29 Jan 2010, 15:03
- GH nick: Cuban-Pete
Re: GTA2 Font Topic - TXT2GTA2 (Version 3 Released!)
Add filesize to bench "page" please.
//or dont you see zip difference in file size and only in used bandwidth?
// is it like gzip?
//or dont you see zip difference in file size and only in used bandwidth?
// is it like gzip?
"Mmmm, your eyes are so beautiful."
Re: GTA2 Font Topic - TXT2GTA2 (Version 3 Released!)
Edit: image test:
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)
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)
Last edited by T.M. on 06 Dec 2011, 17:05, edited 1 time in total.
My GTA2 related projects:
Re: GTA2 Font Topic - TXT2GTA2 (Version 3 Released!)
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.
My GTA2 related projects:
- Cuban-Pete
- Immortal
- Posts: 909
- Joined: 29 Jan 2010, 15:03
- GH nick: Cuban-Pete
Re: GTA2 Font Topic - TXT2GTA2 (Version 3 Released!)
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!
"Mmmm, your eyes are so beautiful."
Re: GTA2 Font Topic - TXT2GTA2 (Version 3 Released!)
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:
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:
My GTA2 related projects:
- Cuban-Pete
- Immortal
- Posts: 909
- Joined: 29 Jan 2010, 15:03
- GH nick: Cuban-Pete
Re: GTA2 Font Topic - TXT2GTA2 (Version 3 Released!)
Render text smooth turned off? Restart?
"Mmmm, your eyes are so beautiful."
Re: GTA2 Font Topic - TXT2GTA2 (Version 3 Released!)
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.
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.
My GTA2 related projects:
- Cuban-Pete
- Immortal
- Posts: 909
- Joined: 29 Jan 2010, 15:03
- GH nick: Cuban-Pete
Re: GTA2 Font Topic - TXT2GTA2 (Version 3 Released!)
Wow, sound like a good adjustment.
6 dec 2011 17:24:20
6 dec 2011 17:24:20
"Mmmm, your eyes are so beautiful."
Re: GTA2 Font Topic - TXT2GTA2 (Version 3 Released!)
how did you get that time btw?
My GTA2 related projects:
- Cuban-Pete
- Immortal
- Posts: 909
- Joined: 29 Jan 2010, 15:03
- GH nick: Cuban-Pete
Re: GTA2 Font Topic - TXT2GTA2 (Version 3 Released!)
not sure if it is correct, but just rmb on image and select image-info -> general info -> altered on: ...
//firefox
//firefox
"Mmmm, your eyes are so beautiful."
Re: GTA2 Font Topic - TXT2GTA2 (Version 3 Released!)
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.
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.
My GTA2 related projects:
Re: GTA2 Font Topic - TXT2GTA2 (Version 3 Released!)
added JPG and GIF support!
PNG:
17580 bytes
1720 bytes
JPG:
14305 bytes
11271 bytes
GIF:
14281 bytes
1580 bytes
just add "&gif" or etc in end of the image url
NOTE: jpg doesnt support transparency
edit: seems like you were correct, gif is smaller :O
PNG:
17580 bytes
1720 bytes
JPG:
14305 bytes
11271 bytes
GIF:
14281 bytes
1580 bytes
just add "&gif" or etc in end of the image url
NOTE: jpg doesnt support transparency
edit: seems like you were correct, gif is smaller :O
Last edited by T.M. on 06 Dec 2011, 17:37, edited 1 time in total.
My GTA2 related projects:
- Cuban-Pete
- Immortal
- Posts: 909
- Joined: 29 Jan 2010, 15:03
- GH nick: Cuban-Pete
Re: GTA2 Font Topic - TXT2GTA2 (Version 3 Released!)
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?
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?
Last edited by Cuban-Pete on 06 Dec 2011, 17:38, edited 1 time in total.
"Mmmm, your eyes are so beautiful."
Re: GTA2 Font Topic - TXT2GTA2 (Version 3 Released!)
seems like gif doesnt support transparency either
edit: wow, 18ms for GIF and 55ms for PNG
edit: i havent done palette tricks yet.,
edit: wow, 18ms for GIF and 55ms for PNG
edit: i havent done palette tricks yet.,
My GTA2 related projects:
Re: GTA2 Font Topic - TXT2GTA2 (Version 3 Released!)
Create PNG: 55.4 ms
Create JPG: 23.7 ms
Create GIF: 18.3 ms
JPG is pretty fast too
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
Create JPG: 23.7 ms
Create GIF: 18.3 ms
JPG is pretty fast too
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
My GTA2 related projects:
Re: GTA2 Font Topic - TXT2GTA2 (Version 3 Released!)
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.
My GTA2 related projects:
- Cuban-Pete
- Immortal
- Posts: 909
- Joined: 29 Jan 2010, 15:03
- GH nick: Cuban-Pete
Re: GTA2 Font Topic - TXT2GTA2 (Version 3 Released!)
I get this:
- Attachments
-
- more colours
- gta2font_normal_c0.png (5.32 KiB) Viewed 23788 times
-
- 256 colours
- gta2font_normal_c0.png (3.4 KiB) Viewed 23788 times
Last edited by Cuban-Pete on 06 Dec 2011, 17:57, edited 1 time in total.
"Mmmm, your eyes are so beautiful."
- Cuban-Pete
- Immortal
- Posts: 909
- Joined: 29 Jan 2010, 15:03
- GH nick: Cuban-Pete
Re: GTA2 Font Topic - TXT2GTA2 (Version 3 Released!)
where is the shiny
"Mmmm, your eyes are so beautiful."
Re: GTA2 Font Topic - TXT2GTA2 (Version 3 Released!)
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?
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?
My GTA2 related projects:
- Cuban-Pete
- Immortal
- Posts: 909
- Joined: 29 Jan 2010, 15:03
- GH nick: Cuban-Pete
Re: GTA2 Font Topic - TXT2GTA2 (Version 3 Released!)
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
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
- Attachments
-
- gta2font_normal_c0.png (3.4 KiB) Viewed 23786 times
"Mmmm, your eyes are so beautiful."