Browse Source

PNG image size optimization

pull/653/head
Ray 7 years ago
parent
commit
abfbc42df7
75 changed files with 1 additions and 2 deletions
  1. BIN
      examples/shapes/shapes_colors_palette.png
  2. BIN
      examples/text/resources/custom_alagard.png
  3. BIN
      examples/text/resources/custom_jupiter_crash.png
  4. BIN
      examples/text/resources/custom_mecha.png
  5. BIN
      examples/text/resources/fonts/alagard.png
  6. BIN
      examples/text/resources/fonts/alpha_beta.png
  7. BIN
      examples/text/resources/fonts/jupiter_crash.png
  8. BIN
      examples/text/resources/fonts/mecha.png
  9. BIN
      examples/text/resources/fonts/pixantiqua.png
  10. BIN
      examples/text/resources/fonts/pixelplay.png
  11. BIN
      examples/text/resources/fonts/romulus.png
  12. BIN
      examples/text/resources/fonts/setback.png
  13. BIN
      examples/textures/resources/custom_jupiter_crash.png
  14. BIN
      examples/textures/resources/scarfy.png
  15. BIN
      games/drturtle/resources/fish.png
  16. BIN
      games/drturtle/resources/gamera.png
  17. BIN
      games/drturtle/resources/gframe.png
  18. BIN
      games/drturtle/resources/komika.png
  19. BIN
      games/drturtle/resources/mountains.png
  20. BIN
      games/drturtle/resources/orca.png
  21. BIN
      games/drturtle/resources/sea.png
  22. BIN
      games/drturtle/resources/shark.png
  23. BIN
      games/drturtle/resources/sky.png
  24. BIN
      games/drturtle/resources/swhale.png
  25. BIN
      games/drturtle/resources/title.png
  26. BIN
      games/drturtle/resources/turtle.png
  27. BIN
      games/light_my_ritual/resources/font_arcadian.png
  28. BIN
      games/light_my_ritual/resources/textures/back_title.png
  29. BIN
      games/light_my_ritual/resources/textures/background.png
  30. BIN
      games/light_my_ritual/resources/textures/circle_level_i_off.png
  31. BIN
      games/light_my_ritual/resources/textures/circle_level_i_on.png
  32. BIN
      games/light_my_ritual/resources/textures/circle_level_ii_off.png
  33. BIN
      games/light_my_ritual/resources/textures/circle_level_ii_on.png
  34. BIN
      games/light_my_ritual/resources/textures/circle_level_iii_off.png
  35. BIN
      games/light_my_ritual/resources/textures/circle_level_iii_on.png
  36. BIN
      games/light_my_ritual/resources/textures/enemy.png
  37. BIN
      games/light_my_ritual/resources/textures/foreground_level_i.png
  38. BIN
      games/light_my_ritual/resources/textures/foreground_level_ii.png
  39. BIN
      games/light_my_ritual/resources/textures/foreground_level_iii.png
  40. BIN
      games/light_my_ritual/resources/textures/light.png
  41. BIN
      games/light_my_ritual/resources/textures/light_glow.png
  42. BIN
      games/light_my_ritual/resources/textures/light_ray.png
  43. BIN
      games/light_my_ritual/resources/textures/msg_ritual.png
  44. BIN
      games/light_my_ritual/resources/textures/player.png
  45. BIN
      games/light_my_ritual/resources/textures/time_over.png
  46. BIN
      games/light_my_ritual/resources/textures/title.png
  47. BIN
      games/skully_escape/resources/textures/background_aisle01.png
  48. BIN
      games/skully_escape/resources/textures/doors.png
  49. BIN
      games/skully_escape/resources/textures/monster_chair_left.png
  50. BIN
      games/skully_escape/resources/textures/monster_chair_right.png
  51. BIN
      games/skully_escape/resources/textures/monster_lamp_left.png
  52. BIN
      games/skully_escape/resources/textures/monster_lamp_right.png
  53. BIN
      games/skully_escape/resources/textures/monster_picture.png
  54. BIN
      games/skully_escape/resources/textures/monster_window.png
  55. BIN
      games/skully_escape/resources/textures/skully.png
  56. BIN
      games/transmission/resources/textures/ending_background.png
  57. BIN
      games/transmission/resources/textures/message_background.png
  58. BIN
      games/transmission/resources/textures/message_vignette.png
  59. BIN
      games/transmission/resources/textures/mission_background.png
  60. BIN
      games/transmission/resources/textures/mission_backline.png
  61. BIN
      games/transmission/resources/textures/title_background.png
  62. BIN
      games/transmission/resources/textures/title_ribbon.png
  63. BIN
      games/transmission/resources/textures/words_base.png
  64. BIN
      games/wave_collector/resources/textures/background.png
  65. BIN
      games/wave_collector/resources/textures/background_gameplay.png
  66. BIN
      games/wave_collector/resources/textures/background_title.png
  67. BIN
      games/wave_collector/resources/textures/icon_synchro.png
  68. BIN
      games/wave_collector/resources/textures/icon_warp.png
  69. BIN
      games/wave_collector/resources/textures/lose.png
  70. BIN
      games/wave_collector/resources/textures/player.png
  71. BIN
      games/wave_collector/resources/textures/sample_big.png
  72. BIN
      games/wave_collector/resources/textures/sample_small.png
  73. BIN
      games/wave_collector/resources/textures/win.png
  74. +1
    -2
      src/core.c
  75. BIN
      templates/advance_game/resources/mecha.png

BIN
examples/shapes/shapes_colors_palette.png View File

Before After
Width: 800  |  Height: 450  |  Size: 5.1 KiB Width: 800  |  Height: 450  |  Size: 6.4 KiB

BIN
examples/text/resources/custom_alagard.png View File

Before After
Width: 512  |  Height: 284  |  Size: 37 KiB Width: 512  |  Height: 284  |  Size: 44 KiB

BIN
examples/text/resources/custom_jupiter_crash.png View File

Before After
Width: 426  |  Height: 284  |  Size: 23 KiB Width: 426  |  Height: 284  |  Size: 28 KiB

BIN
examples/text/resources/custom_mecha.png View File

Before After
Width: 446  |  Height: 284  |  Size: 26 KiB Width: 446  |  Height: 284  |  Size: 32 KiB

BIN
examples/text/resources/fonts/alagard.png View File

Before After
Width: 128  |  Height: 128  |  Size: 4.3 KiB Width: 128  |  Height: 128  |  Size: 3.5 KiB

BIN
examples/text/resources/fonts/alpha_beta.png View File

Before After
Width: 128  |  Height: 128  |  Size: 2.4 KiB Width: 128  |  Height: 128  |  Size: 2.4 KiB

BIN
examples/text/resources/fonts/jupiter_crash.png View File

Before After
Width: 128  |  Height: 128  |  Size: 3.4 KiB Width: 128  |  Height: 128  |  Size: 2.9 KiB

BIN
examples/text/resources/fonts/mecha.png View File

Before After
Width: 128  |  Height: 128  |  Size: 2.3 KiB Width: 128  |  Height: 128  |  Size: 2.3 KiB

BIN
examples/text/resources/fonts/pixantiqua.png View File

Before After
Width: 128  |  Height: 128  |  Size: 2.9 KiB Width: 128  |  Height: 128  |  Size: 2.7 KiB

BIN
examples/text/resources/fonts/pixelplay.png View File

Before After
Width: 128  |  Height: 128  |  Size: 2.8 KiB Width: 128  |  Height: 128  |  Size: 2.8 KiB

BIN
examples/text/resources/fonts/romulus.png View File

Before After
Width: 128  |  Height: 128  |  Size: 2.9 KiB Width: 128  |  Height: 128  |  Size: 2.6 KiB

BIN
examples/text/resources/fonts/setback.png View File

Before After
Width: 128  |  Height: 128  |  Size: 2.5 KiB Width: 128  |  Height: 128  |  Size: 2.5 KiB

BIN
examples/textures/resources/custom_jupiter_crash.png View File

Before After
Width: 426  |  Height: 284  |  Size: 23 KiB Width: 426  |  Height: 284  |  Size: 28 KiB

BIN
examples/textures/resources/scarfy.png View File

Before After
Width: 768  |  Height: 128  |  Size: 32 KiB Width: 768  |  Height: 128  |  Size: 10 KiB

BIN
games/drturtle/resources/fish.png View File

Before After
Width: 128  |  Height: 128  |  Size: 25 KiB Width: 128  |  Height: 128  |  Size: 12 KiB

BIN
games/drturtle/resources/gamera.png View File

Before After
Width: 256  |  Height: 192  |  Size: 75 KiB Width: 256  |  Height: 192  |  Size: 79 KiB

BIN
games/drturtle/resources/gframe.png View File

Before After
Width: 1280  |  Height: 720  |  Size: 905 KiB Width: 1280  |  Height: 720  |  Size: 1.4 MiB

BIN
games/drturtle/resources/komika.png View File

Before After
Width: 522  |  Height: 320  |  Size: 63 KiB Width: 522  |  Height: 320  |  Size: 70 KiB

BIN
games/drturtle/resources/mountains.png View File

Before After
Width: 1280  |  Height: 107  |  Size: 193 KiB Width: 1280  |  Height: 107  |  Size: 232 KiB

BIN
games/drturtle/resources/orca.png View File

Before After
Width: 256  |  Height: 128  |  Size: 42 KiB Width: 256  |  Height: 128  |  Size: 31 KiB

BIN
games/drturtle/resources/sea.png View File

Before After
Width: 1280  |  Height: 720  |  Size: 584 KiB Width: 1280  |  Height: 720  |  Size: 744 KiB

BIN
games/drturtle/resources/shark.png View File

Before After
Width: 256  |  Height: 128  |  Size: 38 KiB Width: 256  |  Height: 128  |  Size: 31 KiB

BIN
games/drturtle/resources/sky.png View File

Before After
Width: 1280  |  Height: 80  |  Size: 118 KiB Width: 1280  |  Height: 80  |  Size: 132 KiB

BIN
games/drturtle/resources/swhale.png View File

Before After
Width: 256  |  Height: 128  |  Size: 54 KiB Width: 256  |  Height: 128  |  Size: 44 KiB

BIN
games/drturtle/resources/title.png View File

Before After
Width: 540  |  Height: 300  |  Size: 45 KiB Width: 540  |  Height: 300  |  Size: 40 KiB

BIN
games/drturtle/resources/turtle.png View File

Before After
Width: 128  |  Height: 128  |  Size: 25 KiB Width: 128  |  Height: 128  |  Size: 14 KiB

BIN
games/light_my_ritual/resources/font_arcadian.png View File

Before After
Width: 512  |  Height: 512  |  Size: 95 KiB Width: 512  |  Height: 512  |  Size: 96 KiB

BIN
games/light_my_ritual/resources/textures/back_title.png View File

Before After
Width: 512  |  Height: 720  |  Size: 179 KiB Width: 512  |  Height: 720  |  Size: 249 KiB

BIN
games/light_my_ritual/resources/textures/background.png View File

Before After
Width: 1280  |  Height: 720  |  Size: 1.2 MiB Width: 1280  |  Height: 720  |  Size: 1.4 MiB

BIN
games/light_my_ritual/resources/textures/circle_level_i_off.png View File

Before After
Width: 320  |  Height: 320  |  Size: 15 KiB Width: 320  |  Height: 320  |  Size: 16 KiB

BIN
games/light_my_ritual/resources/textures/circle_level_i_on.png View File

Before After
Width: 320  |  Height: 320  |  Size: 50 KiB Width: 320  |  Height: 320  |  Size: 49 KiB

BIN
games/light_my_ritual/resources/textures/circle_level_ii_off.png View File

Before After
Width: 512  |  Height: 512  |  Size: 27 KiB Width: 512  |  Height: 512  |  Size: 31 KiB

BIN
games/light_my_ritual/resources/textures/circle_level_ii_on.png View File

Before After
Width: 512  |  Height: 512  |  Size: 104 KiB Width: 512  |  Height: 512  |  Size: 106 KiB

BIN
games/light_my_ritual/resources/textures/circle_level_iii_off.png View File

Before After
Width: 720  |  Height: 720  |  Size: 37 KiB Width: 720  |  Height: 720  |  Size: 47 KiB

BIN
games/light_my_ritual/resources/textures/circle_level_iii_on.png View File

Before After
Width: 720  |  Height: 720  |  Size: 156 KiB Width: 720  |  Height: 720  |  Size: 159 KiB

BIN
games/light_my_ritual/resources/textures/enemy.png View File

Before After
Width: 64  |  Height: 64  |  Size: 2.7 KiB Width: 64  |  Height: 64  |  Size: 2.5 KiB

BIN
games/light_my_ritual/resources/textures/foreground_level_i.png View File

Before After
Width: 1280  |  Height: 720  |  Size: 28 KiB Width: 1280  |  Height: 720  |  Size: 56 KiB

BIN
games/light_my_ritual/resources/textures/foreground_level_ii.png View File

Before After
Width: 1280  |  Height: 720  |  Size: 35 KiB Width: 1280  |  Height: 720  |  Size: 78 KiB

BIN
games/light_my_ritual/resources/textures/foreground_level_iii.png View File

Before After
Width: 1280  |  Height: 720  |  Size: 41 KiB Width: 1280  |  Height: 720  |  Size: 100 KiB

BIN
games/light_my_ritual/resources/textures/light.png View File

Before After
Width: 448  |  Height: 64  |  Size: 2.2 KiB Width: 448  |  Height: 64  |  Size: 1.9 KiB

BIN
games/light_my_ritual/resources/textures/light_glow.png View File

Before After
Width: 160  |  Height: 160  |  Size: 8.5 KiB Width: 160  |  Height: 160  |  Size: 16 KiB

BIN
games/light_my_ritual/resources/textures/light_ray.png View File

Before After
Width: 228  |  Height: 512  |  Size: 8.6 KiB Width: 228  |  Height: 512  |  Size: 24 KiB

BIN
games/light_my_ritual/resources/textures/msg_ritual.png View File

Before After
Width: 720  |  Height: 196  |  Size: 111 KiB Width: 720  |  Height: 196  |  Size: 176 KiB

BIN
games/light_my_ritual/resources/textures/player.png View File

Before After
Width: 64  |  Height: 64  |  Size: 2.8 KiB Width: 64  |  Height: 64  |  Size: 2.3 KiB

BIN
games/light_my_ritual/resources/textures/time_over.png View File

Before After
Width: 770  |  Height: 160  |  Size: 113 KiB Width: 770  |  Height: 160  |  Size: 173 KiB

BIN
games/light_my_ritual/resources/textures/title.png View File

Before After
Width: 720  |  Height: 360  |  Size: 208 KiB Width: 720  |  Height: 360  |  Size: 328 KiB

BIN
games/skully_escape/resources/textures/background_aisle01.png View File

Before After
Width: 2048  |  Height: 720  |  Size: 655 KiB Width: 2048  |  Height: 720  |  Size: 660 KiB

BIN
games/skully_escape/resources/textures/doors.png View File

Before After
Width: 735  |  Height: 1130  |  Size: 81 KiB Width: 735  |  Height: 1130  |  Size: 89 KiB

BIN
games/skully_escape/resources/textures/monster_chair_left.png View File

Before After
Width: 680  |  Height: 225  |  Size: 42 KiB Width: 680  |  Height: 225  |  Size: 33 KiB

BIN
games/skully_escape/resources/textures/monster_chair_right.png View File

Before After
Width: 680  |  Height: 225  |  Size: 45 KiB Width: 680  |  Height: 225  |  Size: 32 KiB

BIN
games/skully_escape/resources/textures/monster_lamp_left.png View File

Before After
Width: 1240  |  Height: 380  |  Size: 78 KiB Width: 1240  |  Height: 380  |  Size: 64 KiB

BIN
games/skully_escape/resources/textures/monster_lamp_right.png View File

Before After
Width: 1240  |  Height: 380  |  Size: 145 KiB Width: 1240  |  Height: 380  |  Size: 146 KiB

BIN
games/skully_escape/resources/textures/monster_picture.png View File

Before After
Width: 1032  |  Height: 264  |  Size: 94 KiB Width: 1032  |  Height: 264  |  Size: 63 KiB

BIN
games/skully_escape/resources/textures/monster_window.png View File

Before After
Width: 1592  |  Height: 372  |  Size: 172 KiB Width: 1592  |  Height: 372  |  Size: 122 KiB

BIN
games/skully_escape/resources/textures/skully.png View File

Before After
Width: 700  |  Height: 1590  |  Size: 136 KiB Width: 700  |  Height: 1590  |  Size: 125 KiB

BIN
games/transmission/resources/textures/ending_background.png View File

Before After
Width: 1280  |  Height: 720  |  Size: 241 KiB Width: 1280  |  Height: 720  |  Size: 277 KiB

BIN
games/transmission/resources/textures/message_background.png View File

Before After
Width: 1280  |  Height: 720  |  Size: 1.1 MiB Width: 1280  |  Height: 720  |  Size: 1.4 MiB

BIN
games/transmission/resources/textures/message_vignette.png View File

Before After
Width: 640  |  Height: 360  |  Size: 157 KiB Width: 640  |  Height: 360  |  Size: 248 KiB

BIN
games/transmission/resources/textures/mission_background.png View File

Before After
Width: 1280  |  Height: 720  |  Size: 796 KiB Width: 1280  |  Height: 720  |  Size: 1.2 MiB

BIN
games/transmission/resources/textures/mission_backline.png View File

Before After
Width: 32  |  Height: 720  |  Size: 1.4 KiB Width: 32  |  Height: 720  |  Size: 1.7 KiB

BIN
games/transmission/resources/textures/title_background.png View File

Before After
Width: 1280  |  Height: 720  |  Size: 1009 KiB Width: 1280  |  Height: 720  |  Size: 1.5 MiB

BIN
games/transmission/resources/textures/title_ribbon.png View File

Before After
Width: 197  |  Height: 85  |  Size: 35 KiB Width: 197  |  Height: 85  |  Size: 26 KiB

BIN
games/transmission/resources/textures/words_base.png View File

Before After
Width: 140  |  Height: 35  |  Size: 7.7 KiB Width: 140  |  Height: 35  |  Size: 8.8 KiB

BIN
games/wave_collector/resources/textures/background.png View File

Before After
Width: 1280  |  Height: 720  |  Size: 821 KiB Width: 1280  |  Height: 720  |  Size: 1.4 MiB

BIN
games/wave_collector/resources/textures/background_gameplay.png View File

Before After
Width: 1280  |  Height: 720  |  Size: 554 KiB Width: 1280  |  Height: 720  |  Size: 954 KiB

BIN
games/wave_collector/resources/textures/background_title.png View File

Before After
Width: 1280  |  Height: 720  |  Size: 593 KiB Width: 1280  |  Height: 720  |  Size: 1004 KiB

BIN
games/wave_collector/resources/textures/icon_synchro.png View File

Before After
Width: 96  |  Height: 96  |  Size: 9.8 KiB Width: 96  |  Height: 96  |  Size: 12 KiB

BIN
games/wave_collector/resources/textures/icon_warp.png View File

Before After
Width: 96  |  Height: 96  |  Size: 12 KiB Width: 96  |  Height: 96  |  Size: 14 KiB

BIN
games/wave_collector/resources/textures/lose.png View File

Before After
Width: 768  |  Height: 256  |  Size: 77 KiB Width: 768  |  Height: 256  |  Size: 102 KiB

BIN
games/wave_collector/resources/textures/player.png View File

Before After
Width: 64  |  Height: 96  |  Size: 12 KiB Width: 64  |  Height: 96  |  Size: 11 KiB

BIN
games/wave_collector/resources/textures/sample_big.png View File

Before After
Width: 64  |  Height: 64  |  Size: 2.9 KiB Width: 64  |  Height: 64  |  Size: 2.8 KiB

BIN
games/wave_collector/resources/textures/sample_small.png View File

Before After
Width: 32  |  Height: 32  |  Size: 1.8 KiB Width: 32  |  Height: 32  |  Size: 1.2 KiB

BIN
games/wave_collector/resources/textures/win.png View File

Before After
Width: 768  |  Height: 256  |  Size: 32 KiB Width: 768  |  Height: 256  |  Size: 35 KiB

+ 1
- 2
src/core.c View File

@ -1375,8 +1375,7 @@ const char *GetDirectoryPath(const char *fileName)
memset(filePath, 0, 256);
lastSlash = strprbrk(fileName, "\\/");
if (!lastSlash)
return NULL;
if (!lastSlash) return NULL;
strncpy(filePath, fileName, strlen(fileName) - (strlen(lastSlash) - 1));
filePath[strlen(fileName) - strlen(lastSlash)] = '\0';

BIN
templates/advance_game/resources/mecha.png View File

Before After
Width: 128  |  Height: 128  |  Size: 2.3 KiB Width: 128  |  Height: 128  |  Size: 2.3 KiB

Loading…
Cancel
Save