Skip to content
Permalink
Browse files

Add optimized resources

  • Loading branch information
eelco committed Sep 29, 2016
1 parent ae6d992 commit 9b99341729ee9c9898c95f24e615c5c02677962f
Showing with 4 additions and 4 deletions.
  1. BIN ...amerjs.com/static/DeviceResources/apple-watch-nike-plus-38mm-silver-aluminum-flat-silver-volt.jp2
  2. BIN ...amerjs.com/static/DeviceResources/apple-watch-nike-plus-38mm-silver-aluminum-flat-silver-volt.png
  3. BIN ...merjs.com/static/DeviceResources/apple-watch-nike-plus-38mm-silver-aluminum-flat-silver-volt.webp
  4. BIN ...merjs.com/static/DeviceResources/apple-watch-nike-plus-38mm-silver-aluminum-flat-silver-white.jp2
  5. BIN ...merjs.com/static/DeviceResources/apple-watch-nike-plus-38mm-silver-aluminum-flat-silver-white.png
  6. BIN ...erjs.com/static/DeviceResources/apple-watch-nike-plus-38mm-silver-aluminum-flat-silver-white.webp
  7. BIN ...rjs.com/static/DeviceResources/apple-watch-nike-plus-38mm-space-gray-aluminum-black-cool-gray.jp2
  8. BIN ...rjs.com/static/DeviceResources/apple-watch-nike-plus-38mm-space-gray-aluminum-black-cool-gray.png
  9. BIN ...js.com/static/DeviceResources/apple-watch-nike-plus-38mm-space-gray-aluminum-black-cool-gray.webp
  10. BIN ...framerjs.com/static/DeviceResources/apple-watch-nike-plus-38mm-space-gray-aluminum-black-volt.jp2
  11. BIN ...framerjs.com/static/DeviceResources/apple-watch-nike-plus-38mm-space-gray-aluminum-black-volt.png
  12. BIN ...ramerjs.com/static/DeviceResources/apple-watch-nike-plus-38mm-space-gray-aluminum-black-volt.webp
  13. BIN ...amerjs.com/static/DeviceResources/apple-watch-nike-plus-42mm-silver-aluminum-flat-silver-volt.jp2
  14. BIN ...amerjs.com/static/DeviceResources/apple-watch-nike-plus-42mm-silver-aluminum-flat-silver-volt.png
  15. BIN ...merjs.com/static/DeviceResources/apple-watch-nike-plus-42mm-silver-aluminum-flat-silver-volt.webp
  16. BIN ...merjs.com/static/DeviceResources/apple-watch-nike-plus-42mm-silver-aluminum-flat-silver-white.jp2
  17. BIN ...merjs.com/static/DeviceResources/apple-watch-nike-plus-42mm-silver-aluminum-flat-silver-white.png
  18. BIN ...erjs.com/static/DeviceResources/apple-watch-nike-plus-42mm-silver-aluminum-flat-silver-white.webp
  19. BIN ...rjs.com/static/DeviceResources/apple-watch-nike-plus-42mm-space-gray-aluminum-black-cool-gray.jp2
  20. BIN ...rjs.com/static/DeviceResources/apple-watch-nike-plus-42mm-space-gray-aluminum-black-cool-gray.png
  21. BIN ...js.com/static/DeviceResources/apple-watch-nike-plus-42mm-space-gray-aluminum-black-cool-gray.webp
  22. BIN ...framerjs.com/static/DeviceResources/apple-watch-nike-plus-42mm-space-gray-aluminum-black-volt.jp2
  23. BIN ...framerjs.com/static/DeviceResources/apple-watch-nike-plus-42mm-space-gray-aluminum-black-volt.png
  24. BIN ...ramerjs.com/static/DeviceResources/apple-watch-nike-plus-42mm-space-gray-aluminum-black-volt.webp
  25. BIN extras/resources.framerjs.com/static/DeviceResources/apple-watch-series-2-38mm-black-steel-black.jp2
  26. BIN extras/resources.framerjs.com/static/DeviceResources/apple-watch-series-2-38mm-black-steel-black.png
  27. BIN ...as/resources.framerjs.com/static/DeviceResources/apple-watch-series-2-38mm-black-steel-black.webp
  28. BIN extras/resources.framerjs.com/static/DeviceResources/apple-watch-series-2-38mm-edition.jp2
  29. BIN extras/resources.framerjs.com/static/DeviceResources/apple-watch-series-2-38mm-edition.png
  30. BIN extras/resources.framerjs.com/static/DeviceResources/apple-watch-series-2-38mm-edition.webp
  31. BIN ...ramerjs.com/static/DeviceResources/apple-watch-series-2-38mm-rose-gold-aluminum-midnight-blue.jp2
  32. BIN ...ramerjs.com/static/DeviceResources/apple-watch-series-2-38mm-rose-gold-aluminum-midnight-blue.png
  33. BIN ...amerjs.com/static/DeviceResources/apple-watch-series-2-38mm-rose-gold-aluminum-midnight-blue.webp
  34. BIN ...resources.framerjs.com/static/DeviceResources/apple-watch-series-2-38mm-silver-aluminum-cocoa.jp2
  35. BIN ...resources.framerjs.com/static/DeviceResources/apple-watch-series-2-38mm-silver-aluminum-cocoa.png
  36. BIN ...esources.framerjs.com/static/DeviceResources/apple-watch-series-2-38mm-silver-aluminum-cocoa.webp
  37. BIN ...ources.framerjs.com/static/DeviceResources/apple-watch-series-2-38mm-silver-aluminum-concrete.jp2
  38. BIN ...ources.framerjs.com/static/DeviceResources/apple-watch-series-2-38mm-silver-aluminum-concrete.png
  39. BIN ...urces.framerjs.com/static/DeviceResources/apple-watch-series-2-38mm-silver-aluminum-concrete.webp
  40. BIN ...rces.framerjs.com/static/DeviceResources/apple-watch-series-2-38mm-silver-aluminum-ocean-blue.jp2
  41. BIN ...rces.framerjs.com/static/DeviceResources/apple-watch-series-2-38mm-silver-aluminum-ocean-blue.png
  42. BIN ...ces.framerjs.com/static/DeviceResources/apple-watch-series-2-38mm-silver-aluminum-ocean-blue.webp
  43. BIN ...s/resources.framerjs.com/static/DeviceResources/apple-watch-series-2-38mm-silver-aluminum-red.jp2
  44. BIN ...s/resources.framerjs.com/static/DeviceResources/apple-watch-series-2-38mm-silver-aluminum-red.png
  45. BIN .../resources.framerjs.com/static/DeviceResources/apple-watch-series-2-38mm-silver-aluminum-red.webp
  46. BIN ...urces.framerjs.com/static/DeviceResources/apple-watch-series-2-38mm-silver-aluminum-turquoise.jp2
  47. BIN ...urces.framerjs.com/static/DeviceResources/apple-watch-series-2-38mm-silver-aluminum-turquoise.png
  48. BIN ...rces.framerjs.com/static/DeviceResources/apple-watch-series-2-38mm-silver-aluminum-turquoise.webp
  49. BIN ...resources.framerjs.com/static/DeviceResources/apple-watch-series-2-38mm-silver-aluminum-white.jp2
  50. BIN ...resources.framerjs.com/static/DeviceResources/apple-watch-series-2-38mm-silver-aluminum-white.png
  51. BIN ...esources.framerjs.com/static/DeviceResources/apple-watch-series-2-38mm-silver-aluminum-white.webp
  52. BIN ...esources.framerjs.com/static/DeviceResources/apple-watch-series-2-38mm-silver-aluminum-yellow.jp2
  53. BIN ...esources.framerjs.com/static/DeviceResources/apple-watch-series-2-38mm-silver-aluminum-yellow.png
  54. BIN ...sources.framerjs.com/static/DeviceResources/apple-watch-series-2-38mm-silver-aluminum-yellow.webp
  55. BIN ...urces.framerjs.com/static/DeviceResources/apple-watch-series-2-38mm-space-gray-aluminum-black.jp2
  56. BIN ...urces.framerjs.com/static/DeviceResources/apple-watch-series-2-38mm-space-gray-aluminum-black.png
  57. BIN ...rces.framerjs.com/static/DeviceResources/apple-watch-series-2-38mm-space-gray-aluminum-black.webp
  58. BIN ...resources.framerjs.com/static/DeviceResources/apple-watch-series-2-38mm-sport-aluminum-walnut.jp2
  59. BIN ...resources.framerjs.com/static/DeviceResources/apple-watch-series-2-38mm-sport-aluminum-walnut.png
  60. BIN ...esources.framerjs.com/static/DeviceResources/apple-watch-series-2-38mm-sport-aluminum-walnut.webp
  61. BIN extras/resources.framerjs.com/static/DeviceResources/apple-watch-series-2-38mm-steel-white.jp2
  62. BIN extras/resources.framerjs.com/static/DeviceResources/apple-watch-series-2-38mm-steel-white.png
  63. BIN extras/resources.framerjs.com/static/DeviceResources/apple-watch-series-2-38mm-steel-white.webp
  64. BIN extras/resources.framerjs.com/static/DeviceResources/apple-watch-series-2-42mm-edition.jp2
  65. BIN extras/resources.framerjs.com/static/DeviceResources/apple-watch-series-2-42mm-edition.png
  66. BIN extras/resources.framerjs.com/static/DeviceResources/apple-watch-series-2-42mm-edition.webp
  67. BIN ...s/resources.framerjs.com/static/DeviceResources/apple-watch-series-2-42mm-gold-aluminum-cocoa.jp2
  68. BIN ...s/resources.framerjs.com/static/DeviceResources/apple-watch-series-2-42mm-gold-aluminum-cocoa.png
  69. BIN .../resources.framerjs.com/static/DeviceResources/apple-watch-series-2-42mm-gold-aluminum-cocoa.webp
  70. BIN ...ramerjs.com/static/DeviceResources/apple-watch-series-2-42mm-rose-gold-aluminum-midnight-blue.jp2
  71. BIN ...ramerjs.com/static/DeviceResources/apple-watch-series-2-42mm-rose-gold-aluminum-midnight-blue.png
  72. BIN ...amerjs.com/static/DeviceResources/apple-watch-series-2-42mm-rose-gold-aluminum-midnight-blue.webp
  73. BIN ...ources.framerjs.com/static/DeviceResources/apple-watch-series-2-42mm-silver-aluminum-concrete.jp2
  74. BIN ...ources.framerjs.com/static/DeviceResources/apple-watch-series-2-42mm-silver-aluminum-concrete.png
  75. BIN ...urces.framerjs.com/static/DeviceResources/apple-watch-series-2-42mm-silver-aluminum-concrete.webp
  76. BIN ...resources.framerjs.com/static/DeviceResources/apple-watch-series-2-42mm-silver-aluminum-green.jp2
  77. BIN ...resources.framerjs.com/static/DeviceResources/apple-watch-series-2-42mm-silver-aluminum-green.png
  78. BIN ...esources.framerjs.com/static/DeviceResources/apple-watch-series-2-42mm-silver-aluminum-green.webp
  79. BIN ...rces.framerjs.com/static/DeviceResources/apple-watch-series-2-42mm-silver-aluminum-light-pink.jp2
  80. BIN ...rces.framerjs.com/static/DeviceResources/apple-watch-series-2-42mm-silver-aluminum-light-pink.png
  81. BIN ...ces.framerjs.com/static/DeviceResources/apple-watch-series-2-42mm-silver-aluminum-light-pink.webp
  82. BIN ...rces.framerjs.com/static/DeviceResources/apple-watch-series-2-42mm-silver-aluminum-ocean-blue.jp2
  83. BIN ...rces.framerjs.com/static/DeviceResources/apple-watch-series-2-42mm-silver-aluminum-ocean-blue.png
  84. BIN ...ces.framerjs.com/static/DeviceResources/apple-watch-series-2-42mm-silver-aluminum-ocean-blue.webp
  85. BIN ...urces.framerjs.com/static/DeviceResources/apple-watch-series-2-42mm-silver-aluminum-pink-sand.jp2
  86. BIN ...urces.framerjs.com/static/DeviceResources/apple-watch-series-2-42mm-silver-aluminum-pink-sand.png
  87. BIN ...rces.framerjs.com/static/DeviceResources/apple-watch-series-2-42mm-silver-aluminum-pink-sand.webp
  88. BIN ...s/resources.framerjs.com/static/DeviceResources/apple-watch-series-2-42mm-silver-aluminum-red.jp2
  89. BIN ...s/resources.framerjs.com/static/DeviceResources/apple-watch-series-2-42mm-silver-aluminum-red.png
  90. BIN .../resources.framerjs.com/static/DeviceResources/apple-watch-series-2-42mm-silver-aluminum-red.webp
  91. BIN ...urces.framerjs.com/static/DeviceResources/apple-watch-series-2-42mm-silver-aluminum-turquoise.jp2
  92. BIN ...urces.framerjs.com/static/DeviceResources/apple-watch-series-2-42mm-silver-aluminum-turquoise.png
  93. BIN ...rces.framerjs.com/static/DeviceResources/apple-watch-series-2-42mm-silver-aluminum-turquoise.webp
  94. BIN ...resources.framerjs.com/static/DeviceResources/apple-watch-series-2-42mm-silver-aluminum-white.jp2
  95. BIN ...resources.framerjs.com/static/DeviceResources/apple-watch-series-2-42mm-silver-aluminum-white.png
  96. BIN ...esources.framerjs.com/static/DeviceResources/apple-watch-series-2-42mm-silver-aluminum-white.webp
  97. BIN ...esources.framerjs.com/static/DeviceResources/apple-watch-series-2-42mm-silver-aluminum-yellow.jp2
  98. BIN ...esources.framerjs.com/static/DeviceResources/apple-watch-series-2-42mm-silver-aluminum-yellow.png
  99. BIN ...sources.framerjs.com/static/DeviceResources/apple-watch-series-2-42mm-silver-aluminum-yellow.webp
  100. BIN ...sources.framerjs.com/static/DeviceResources/apple-watch-series-2-42mm-space-black-steel-black.jp2
  101. BIN ...sources.framerjs.com/static/DeviceResources/apple-watch-series-2-42mm-space-black-steel-black.png
  102. BIN ...ources.framerjs.com/static/DeviceResources/apple-watch-series-2-42mm-space-black-steel-black.webp
  103. BIN ...urces.framerjs.com/static/DeviceResources/apple-watch-series-2-42mm-space-gray-aluminum-black.jp2
  104. BIN ...urces.framerjs.com/static/DeviceResources/apple-watch-series-2-42mm-space-gray-aluminum-black.png
  105. BIN ...rces.framerjs.com/static/DeviceResources/apple-watch-series-2-42mm-space-gray-aluminum-black.webp
  106. BIN extras/resources.framerjs.com/static/DeviceResources/apple-watch-series-2-42mm-steel-white.jp2
  107. BIN extras/resources.framerjs.com/static/DeviceResources/apple-watch-series-2-42mm-steel-white.png
  108. BIN extras/resources.framerjs.com/static/DeviceResources/apple-watch-series-2-42mm-steel-white.webp
  109. +4 −4 scripts/resources-optimize.py
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Diff not rendered.
Binary file not shown.
Binary file not shown.
Diff not rendered.
Binary file not shown.
Binary file not shown.
Diff not rendered.
Binary file not shown.
Binary file not shown.
Diff not rendered.
Binary file not shown.
Binary file not shown.
Diff not rendered.
Binary file not shown.
Binary file not shown.
Diff not rendered.
Binary file not shown.
Binary file not shown.
Diff not rendered.
Binary file not shown.
Binary file not shown.
Diff not rendered.
Binary file not shown.
Binary file not shown.
Diff not rendered.
Binary file not shown.
Binary file not shown.
Diff not rendered.
Binary file not shown.
Binary file not shown.
Diff not rendered.
Binary file not shown.
@@ -14,13 +14,13 @@
webp_quality = 90


os.system("rm -Rf '%s'" % path)
os.system("cp -Rf '%s' '%s'" % (os.path.join("extras", "DeviceResources"), path))
#os.system("rm -Rf '%s'" % path)
#os.system("cp -Rf '%s' '%s'" % (os.path.join("extras", "DeviceResources"), path))
os.chdir(path)

for fileName in os.listdir("."):
if fileName.endswith(".png"):
if fileName.endswith(".png") and (fileName.startswith("apple-watch-series") or fileName.startswith("apple-watch-nike")):
print fileName
os.system("sips -s format jp2 %s -s formatOptions %s --out %s" % (fileName, jp2_quality, fileName.replace(".png", ".jp2")))
os.system("cwebp -q %s '%s' -o '%s'" % (webp_quality, fileName, fileName.replace(".png", ".webp")))
os.system("optipng '%s'" % fileName)
os.system("optipng '%s'" % fileName)

0 comments on commit 9b99341

Please sign in to comment.
You can’t perform that action at this time.