Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1225)

Unified Diff: Source/devtools/scripts/convert_svg_images_to_png.py

Issue 345713004: DevTools: update responsive design icon. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/devtools/front_end/inspector.css ('k') | Source/devtools/scripts/optimize_png_images.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/devtools/scripts/convert_svg_images_to_png.py
diff --git a/Source/devtools/scripts/convert_svg_images_to_png.py b/Source/devtools/scripts/convert_svg_images_to_png.py
index 52511f7e57f2dd3eb0d2fcb33b7cab788cad16fa..0d85a326569714a5ecf4df6bdb7c77f7ddc7f0f6 100755
--- a/Source/devtools/scripts/convert_svg_images_to_png.py
+++ b/Source/devtools/scripts/convert_svg_images_to_png.py
@@ -29,7 +29,6 @@
import devtools_file_hashes
import hashlib
-import optimize_svg_file
import os
import os.path
import re
@@ -50,16 +49,6 @@ def check_installed(app_name):
sys.exit(1)
-def optimize_svg(svg_file_path):
- errors = []
- optimize_svg_file.optimize_svg(svg_file_path, errors)
- if len(errors) != 0:
- print "Failed to optimize '%s'" % (svg_file_path)
- for error in errors:
- print "ERROR: %s" % (error)
- return True
- return False
-
check_installed("inkscape")
scripts_path = os.path.dirname(os.path.abspath(__file__))
@@ -73,10 +62,6 @@ hashes_file_path = image_sources_path + "/" + hashes_file_name
file_names = os.listdir(image_sources_path)
svg_file_paths = [image_sources_path + "/" + file_name for file_name in file_names if file_name.endswith(".svg")]
-svg_optimization_failures = [optimize_svg(svg_file_path) for svg_file_path in svg_file_paths]
-if any(svg_optimization_failures):
- sys.exit(1)
-
svg_file_paths_to_convert = devtools_file_hashes.files_with_invalid_hashes(hashes_file_path, svg_file_paths)
svg_file_names = [re.sub(".svg$", "", re.sub(".*/", "", file_path)) for file_path in svg_file_paths_to_convert]
« no previous file with comments | « Source/devtools/front_end/inspector.css ('k') | Source/devtools/scripts/optimize_png_images.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698