Permalink
Browse files

Re-doing encoding of Apple Watch images on lossless quality

  • Loading branch information...
eelco committed Nov 22, 2016
1 parent 6c4df14 commit f8391b4f995e027aec3d417f8e8563745259a8e5
Showing with 2 additions and 2 deletions.
  1. BIN extras/resources.framerjs.com/static/DeviceResources/apple-watch-38mm-black-steel-black-closed.jp2
  2. BIN extras/resources.framerjs.com/static/DeviceResources/apple-watch-38mm-gold-black-leather-closed.jp2
  3. BIN extras/resources.framerjs.com/static/DeviceResources/apple-watch-38mm-gold-midnight-blue-closed.jp2
  4. BIN ...resources.framerjs.com/static/DeviceResources/apple-watch-38mm-rose-gold-black-leather-closed.jp2
  5. BIN extras/resources.framerjs.com/static/DeviceResources/apple-watch-38mm-rose-gold-lavender-closed.jp2
  6. BIN extras/resources.framerjs.com/static/DeviceResources/apple-watch-38mm-sport-aluminum-blue-closed.jp2
  7. BIN extras/resources.framerjs.com/static/DeviceResources/apple-watch-38mm-sport-aluminum-fog-closed.jp2
  8. BIN ...framerjs.com/static/DeviceResources/apple-watch-38mm-sport-aluminum-gold-antique-white-closed.jp2
  9. BIN ...as/resources.framerjs.com/static/DeviceResources/apple-watch-38mm-sport-aluminum-green-closed.jp2
  10. BIN extras/resources.framerjs.com/static/DeviceResources/apple-watch-38mm-sport-aluminum-red-closed.jp2
  11. BIN ...es.framerjs.com/static/DeviceResources/apple-watch-38mm-sport-aluminum-rose-gold-stone-closed.jp2
  12. BIN ...s/resources.framerjs.com/static/DeviceResources/apple-watch-38mm-sport-aluminum-walnut-closed.jp2
  13. BIN ...as/resources.framerjs.com/static/DeviceResources/apple-watch-38mm-sport-aluminum-white-closed.jp2
  14. BIN .../resources.framerjs.com/static/DeviceResources/apple-watch-38mm-sport-space-gray-black-closed.jp2
  15. BIN ...ces.framerjs.com/static/DeviceResources/apple-watch-38mm-stainless-steel-black-leather-closed.jp2
  16. BIN extras/resources.framerjs.com/static/DeviceResources/apple-watch-42mm-black-steel-black-closed.jp2
  17. BIN extras/resources.framerjs.com/static/DeviceResources/apple-watch-42mm-gold-black-leather-closed.jp2
  18. BIN extras/resources.framerjs.com/static/DeviceResources/apple-watch-42mm-gold-midnight-blue-closed.jp2
  19. BIN ...resources.framerjs.com/static/DeviceResources/apple-watch-42mm-rose-gold-black-leather-closed.jp2
  20. BIN extras/resources.framerjs.com/static/DeviceResources/apple-watch-42mm-rose-gold-lavender-closed.jp2
  21. BIN extras/resources.framerjs.com/static/DeviceResources/apple-watch-42mm-sport-aluminum-blue-closed.jp2
  22. BIN extras/resources.framerjs.com/static/DeviceResources/apple-watch-42mm-sport-aluminum-fog-closed.jp2
  23. BIN ...framerjs.com/static/DeviceResources/apple-watch-42mm-sport-aluminum-gold-antique-white-closed.jp2
  24. BIN ...as/resources.framerjs.com/static/DeviceResources/apple-watch-42mm-sport-aluminum-green-closed.jp2
  25. BIN extras/resources.framerjs.com/static/DeviceResources/apple-watch-42mm-sport-aluminum-red-closed.jp2
  26. BIN ...es.framerjs.com/static/DeviceResources/apple-watch-42mm-sport-aluminum-rose-gold-stone-closed.jp2
  27. BIN ...s/resources.framerjs.com/static/DeviceResources/apple-watch-42mm-sport-aluminum-walnut-closed.jp2
  28. BIN ...as/resources.framerjs.com/static/DeviceResources/apple-watch-42mm-sport-aluminum-white-closed.jp2
  29. BIN .../resources.framerjs.com/static/DeviceResources/apple-watch-42mm-sport-space-gray-black-closed.jp2
  30. BIN ...ces.framerjs.com/static/DeviceResources/apple-watch-42mm-stainless-steel-black-leather-closed.jp2
  31. BIN extras/resources.framerjs.com/static/DeviceResources/apple-watch-edition.jp2
  32. BIN ...amerjs.com/static/DeviceResources/apple-watch-nike-plus-38mm-silver-aluminum-flat-silver-volt.jp2
  33. BIN ...merjs.com/static/DeviceResources/apple-watch-nike-plus-38mm-silver-aluminum-flat-silver-white.jp2
  34. BIN ...rjs.com/static/DeviceResources/apple-watch-nike-plus-38mm-space-gray-aluminum-black-cool-gray.jp2
  35. BIN ...framerjs.com/static/DeviceResources/apple-watch-nike-plus-38mm-space-gray-aluminum-black-volt.jp2
  36. BIN ...amerjs.com/static/DeviceResources/apple-watch-nike-plus-42mm-silver-aluminum-flat-silver-volt.jp2
  37. BIN ...merjs.com/static/DeviceResources/apple-watch-nike-plus-42mm-silver-aluminum-flat-silver-white.jp2
  38. BIN ...rjs.com/static/DeviceResources/apple-watch-nike-plus-42mm-space-gray-aluminum-black-cool-gray.jp2
  39. BIN ...framerjs.com/static/DeviceResources/apple-watch-nike-plus-42mm-space-gray-aluminum-black-volt.jp2
  40. BIN extras/resources.framerjs.com/static/DeviceResources/apple-watch-series-2-38mm-black-steel-black.jp2
  41. BIN extras/resources.framerjs.com/static/DeviceResources/apple-watch-series-2-38mm-edition.jp2
  42. BIN ...ramerjs.com/static/DeviceResources/apple-watch-series-2-38mm-rose-gold-aluminum-midnight-blue.jp2
  43. BIN ...resources.framerjs.com/static/DeviceResources/apple-watch-series-2-38mm-silver-aluminum-cocoa.jp2
  44. BIN ...ources.framerjs.com/static/DeviceResources/apple-watch-series-2-38mm-silver-aluminum-concrete.jp2
  45. BIN ...rces.framerjs.com/static/DeviceResources/apple-watch-series-2-38mm-silver-aluminum-ocean-blue.jp2
  46. BIN ...s/resources.framerjs.com/static/DeviceResources/apple-watch-series-2-38mm-silver-aluminum-red.jp2
  47. BIN ...urces.framerjs.com/static/DeviceResources/apple-watch-series-2-38mm-silver-aluminum-turquoise.jp2
  48. BIN ...resources.framerjs.com/static/DeviceResources/apple-watch-series-2-38mm-silver-aluminum-white.jp2
  49. BIN ...esources.framerjs.com/static/DeviceResources/apple-watch-series-2-38mm-silver-aluminum-yellow.jp2
  50. BIN ...urces.framerjs.com/static/DeviceResources/apple-watch-series-2-38mm-space-gray-aluminum-black.jp2
  51. BIN ...resources.framerjs.com/static/DeviceResources/apple-watch-series-2-38mm-sport-aluminum-walnut.jp2
  52. BIN extras/resources.framerjs.com/static/DeviceResources/apple-watch-series-2-38mm-steel-white.jp2
  53. BIN extras/resources.framerjs.com/static/DeviceResources/apple-watch-series-2-42mm-edition.jp2
  54. BIN ...s/resources.framerjs.com/static/DeviceResources/apple-watch-series-2-42mm-gold-aluminum-cocoa.jp2
  55. BIN ...ramerjs.com/static/DeviceResources/apple-watch-series-2-42mm-rose-gold-aluminum-midnight-blue.jp2
  56. BIN ...ources.framerjs.com/static/DeviceResources/apple-watch-series-2-42mm-silver-aluminum-concrete.jp2
  57. BIN ...resources.framerjs.com/static/DeviceResources/apple-watch-series-2-42mm-silver-aluminum-green.jp2
  58. BIN ...rces.framerjs.com/static/DeviceResources/apple-watch-series-2-42mm-silver-aluminum-light-pink.jp2
  59. BIN ...rces.framerjs.com/static/DeviceResources/apple-watch-series-2-42mm-silver-aluminum-ocean-blue.jp2
  60. BIN ...urces.framerjs.com/static/DeviceResources/apple-watch-series-2-42mm-silver-aluminum-pink-sand.jp2
  61. BIN ...s/resources.framerjs.com/static/DeviceResources/apple-watch-series-2-42mm-silver-aluminum-red.jp2
  62. BIN ...urces.framerjs.com/static/DeviceResources/apple-watch-series-2-42mm-silver-aluminum-turquoise.jp2
  63. BIN ...resources.framerjs.com/static/DeviceResources/apple-watch-series-2-42mm-silver-aluminum-white.jp2
  64. BIN ...esources.framerjs.com/static/DeviceResources/apple-watch-series-2-42mm-silver-aluminum-yellow.jp2
  65. BIN ...sources.framerjs.com/static/DeviceResources/apple-watch-series-2-42mm-space-black-steel-black.jp2
  66. BIN ...urces.framerjs.com/static/DeviceResources/apple-watch-series-2-42mm-space-gray-aluminum-black.jp2
  67. BIN extras/resources.framerjs.com/static/DeviceResources/apple-watch-series-2-42mm-steel-white.jp2
  68. BIN extras/resources.framerjs.com/static/DeviceResources/apple-watch-sport.jp2
  69. BIN extras/resources.framerjs.com/static/DeviceResources/apple-watch.jp2
  70. +2 −2 scripts/resources-optimize.py
@@ -10,7 +10,7 @@
"""
path = os.path.join("extras", "resources.framerjs.com", "static", "DeviceResources")
jp2_quality = 16
jp2_quality = 100
webp_quality = 90
@@ -19,7 +19,7 @@
os.chdir(path)
for fileName in os.listdir("."):
if fileName.endswith(".png"):
if fileName.startswith("apple-watch") and fileName.endswith(".png"):
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")))

0 comments on commit f8391b4

Please sign in to comment.