Skip to content

Commit

Permalink
Use lossless JPEG2000 files for the new Apple Watches
Browse files Browse the repository at this point in the history
  • Loading branch information
eelco committed Sep 29, 2016
1 parent 9b99341 commit e339750
Show file tree
Hide file tree
Showing 37 changed files with 3 additions and 3 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.
6 changes: 3 additions & 3 deletions scripts/resources-optimize.py
Expand Up @@ -14,12 +14,12 @@
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") and (fileName.startswith("apple-watch-series") or fileName.startswith("apple-watch-nike")):
if 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")))
Expand Down

0 comments on commit e339750

Please sign in to comment.