Skip to content

Commit

Permalink
Re-doing encoding of Apple Watch images on lossless quality
Browse files Browse the repository at this point in the history
  • Loading branch information
eelco committed Nov 22, 2016
1 parent 6c4df14 commit f8391b4
Show file tree
Hide file tree
Showing 70 changed files with 2 additions and 2 deletions.
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.
4 changes: 2 additions & 2 deletions scripts/resources-optimize.py
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
""" """


path = os.path.join("extras", "resources.framerjs.com", "static", "DeviceResources") path = os.path.join("extras", "resources.framerjs.com", "static", "DeviceResources")
jp2_quality = 16 jp2_quality = 100
webp_quality = 90 webp_quality = 90




Expand All @@ -19,7 +19,7 @@
os.chdir(path) os.chdir(path)


for fileName in os.listdir("."): for fileName in os.listdir("."):
if fileName.endswith(".png"): if fileName.startswith("apple-watch") and fileName.endswith(".png"):
print fileName print fileName
os.system("sips -s format jp2 %s -s formatOptions %s --out %s" % (fileName, jp2_quality, fileName.replace(".png", ".jp2"))) 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("cwebp -q %s '%s' -o '%s'" % (webp_quality, fileName, fileName.replace(".png", ".webp")))
Expand Down

0 comments on commit f8391b4

Please sign in to comment.